Blame view

doc/README.dns 1.98 KB
1a32bf418   Robin Getz   Add DNS support
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  Domain Name System
  -------------------------------------------
  
  The Domain Name System (DNS) is a hierarchical naming system for computers,
  services, or any resource participating in the Internet. It associates various
  information with domain names assigned to each of the participants. Most
  importantly, it translates domain names meaningful to humans into the numerical
  (binary) identifiers associated with networking equipment for the purpose of
  locating and addressing these devices world-wide. An often used analogy to
  explain the Domain Name System is that it serves as the "phone book" for the
  Internet by translating human-friendly computer hostnames into IP addresses.
  For example, www.example.com translates to 208.77.188.166.
  
  For more information on DNS - http://en.wikipedia.org/wiki/Domain_Name_System
1a32bf418   Robin Getz   Add DNS support
15
16
17
18
  U-Boot and DNS
  ------------------------------------------
  
  CONFIG_CMD_DNS - controls if the 'dns' command is compiled in. If it is, it
28958b8be   Wolfgang Denk   Coding Style clea...
19
20
  		 will send name lookups to the dns server (env var 'dnsip')
  		 Turning this option on will about abou 1k to U-Boot's size.
1a32bf418   Robin Getz   Add DNS support
21

28958b8be   Wolfgang Denk   Coding Style clea...
22
  		 Example:
1a32bf418   Robin Getz   Add DNS support
23
24
25
26
27
28
  
  bfin> print dnsip
  dnsip=192.168.0.1
  
  bfin> dns www.google.com
  66.102.1.104
28958b8be   Wolfgang Denk   Coding Style clea...
29
30
31
32
  		 By default, dns does nothing except print the IP number on
  		 the default console - which by itself, would be pretty
  		 useless. Adding a third argument to the dns command will
  		 use that as the environment variable to be set.
1a32bf418   Robin Getz   Add DNS support
33

28958b8be   Wolfgang Denk   Coding Style clea...
34
  		 Example:
1a32bf418   Robin Getz   Add DNS support
35
36
37
38
39
40
41
42
43
44
  
  bfin> print googleip
  ## Error: "googleip" not defined
  bfin> dns www.google.com googleip
  64.233.161.104
  bfin> print googleip
  googleip=64.233.161.104
  bfin> ping ${googleip}
  Using Blackfin EMAC device
  host 64.233.161.104 is alive
28958b8be   Wolfgang Denk   Coding Style clea...
45
46
  		 In this way, you can lookup, and set many more meaningful
  		 things.
1a32bf418   Robin Getz   Add DNS support
47
48
49
50
51
52
  
  bfin> sntp
  ntpserverip not set
  bfin> dns pool.ntp.org ntpserverip
  72.18.205.156
  bfin> sntp
28958b8be   Wolfgang Denk   Coding Style clea...
53
  Date: 2009-07-18 Time:	4:06:57
1a32bf418   Robin Getz   Add DNS support
54

28958b8be   Wolfgang Denk   Coding Style clea...
55
56
57
58
59
  		 For some helpful things that can be related to DNS in U-Boot,
  		 look at the top level README for these config options:
  		    CONFIG_CMD_DHCP
  		    CONFIG_BOOTP_DNS
  		    CONFIG_BOOTP_DNS2