From IT Mission Linux Tips, Hacks, Tutorials, Howtos -

Main: Linux-TCP-IP-Network-Configuration-Files

Linux TCP/IP Network Configuration Files:


	List DNS servers for internet domain name resolution.


	Lists hosts to be resolved locally (not by DNS).


	List order of host name search. Typically look at local files, then NIS server, then DNS server.


[root@fedora ~]# hostname -f

[root@fedora ~]# cat /etc/sysconfig/network

[root@fedora ~]# cat /etc/resolv.conf
# Generated by NetworkManager

[root@fedora ~]# grep dns /etc/nsswitch.conf
#	dns			Use DNS (Domain Name Service)
#hosts:     db files nisplus nis dns
hosts:      files dns myhostname
[root@fedora ~]# 

Red Hat/Fedora/CentOS: /etc/sysconfig/network

	Specify network configuration. eg. Static IP, DHCP, NIS, etc.

Red Hat/Fedora/CentOS: /etc/sysconfig/network-scripts/ifcfg-device

	Specify TCP network information. 

Ubuntu/Debian: /etc/network/interfaces

	Specify network configuration and devices. eg. Static IP and info, DHCP, etc.

Retrieved from
Page last modified on August 21, 2012, at 05:26 AM