Tux
Communication
Mailing lists
Documentation
User Manual
Target board info.
Target chip info.
Support
Linux support
Bugzilla
Downloads
STLinux
Updates
Search
Google


The web
stlinux.com
How To Guide
How to configure the distribution
Setting up DNS
ST Logo
Previous   Contents   Next


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".

Previous   Contents   Next
Valid HTML 4.01! Last updated: 2005/09/29 14:43:17
© Copyright STMicroelectronics Limited, 2005
Printer