Singapore Flyer

Wednesday, December 18, 2013

While restarting network service my name servers in /etc/resolv.conf got vanished

While restarting network service my name servers in /etc/resolv.conf got vanished in CentOS

[root@Hostname ~]# /etc/init.d/network restart
Shutting down interface eth0:  Device state: 3 (disconnected)
                                                           [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/3
                                                           [  OK  ]


Solution:
While troubleshooting i noticed the box have "NetworkManager" installed. I removed it

[root@Hostname ~]# yum remove NetworkManager
It helped me to solve that issue.

No comments:

Post a Comment