The auto line in this entry states that the interface eth0 will be automatically enabled when the system starts. The iface line in this entry identifies the beginning of the interface definition for eth0, which is a TCP/IP (inet) device with static configuration. The next three lines define the IP address, netmask, and gateway for that Ethernet interface.
If your network interfaces use static IP addresses, your system will not obtain general network configuration information such as DNS server addresses from a DHCP server. You should, therefore, manually create and populate the file /etc/resolv.conf that your system uses to identify its name servers. A sample /etc/ resolv.conf file that uses open DNS servers from OpenDNS.org is the following:
Was this article helpful?