[clug] How can I make changes in resolv.conf permanent in RHEL6.3

rusking rusking at live.cn
Sat Sep 27 12:29:02 MDT 2014


Hi,everyone. When I added DOMAIN entry to /etc/resolv.conf, after a reboot or
restart the network, the  changes might revert to the original settings,and
the entry of "domain iamtest.com" is missing.
========resolv.conf==========
# Generated by NetworkManager
domain iamtest.com //this entry lost after I reboot the machine or restart
the network.
search iamtest.com
nameserver 192.168.1.110
==========================
Here is the file of /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
PEERDNS=no //even I changed No to Yes,It's not work.
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
DEFROUTE=yes
IPADDR=192.168.1.120
GATEWAY=192.168.1.100
DOMAIN="iamtest.com" //I removed this entry or changed to
"DOMAIN=iamtest.com",It's not ok.
DNS1=192.168.1.200
==========================
The service of dhcpd is stopped. 
Is there a way to  make changes permanently. 
Any help is much appreciated.



--
View this message in context: http://samba.2283325.n4.nabble.com/How-can-I-make-changes-in-resolv-conf-permanent-in-RHEL6-3-tp4673298.html
Sent from the Samba - linux mailing list archive at Nabble.com.


More information about the linux mailing list