Setting up DNS

The Domain Name Service (DNS) allows an easy-to-remember name (for example server1) to be assigned to a remote machine so that it is unnecessary to remember the 32-bit IP address (for example 192.168.1.2). Configuring DNS is worthwhile if other machines on the network will be accessed.

To use DNS, the file /etc/resolv.conf (note the spelling) must be created. As a minimum, a few lines which specify the local domain name and the IP addresses of the name servers are required, for example:

domain bri.st.com
nameserver 164.129.8.1
nameserver 164.129.8.2

The simplest way to set this up is just to copy the file /etc/resolv.conf from the host machine to the etc/ directory on the target, for example:

host# cd /export/rootfs/<user>
host# cp -pf /etc/resolv.conf ./etc

Note the "." in "./etc".