Monday, June 28, 2010

network configuration Files

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi

Files for network configuration

There are many files for configuring network. These are: /etc/hosts, /etc/host.conf, and /etc/resolv.conf. Many other new configuration files are stored in /etc/sysconfig directory.

/etc/hosts file


If no DNS server is present on the network, this file is still useful in resolving the hostnames. It is very simple file. Each line comprises of an IP address, a fully qualified domain name (FQDN) and optional hostname. Example of one of the entry is shown as below:


192.168.1.72 linuxserver72.mydomain.com linuxserver72


/etc/host.conf


We have two databases of IP addresses and hostnames: 1. DNS servers and 2. /etc/hosts. The searching order is determined by /etc/host.conf file. This file contains only one line, which is as follows:


order hosts,bind


This line tells the Linux system to search for the correct IP address in /etc/hosts file first and then search bind i.e. the DNS server. Here we also can include NIS, in above list.


No comments:

Post a Comment