<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DNS Entries are Gone on Reboot in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728603#M43113</link>
    <description>Environment&lt;BR /&gt;==========&lt;BR /&gt;HP 580 box&lt;BR /&gt;OS: OEL 5.3&lt;BR /&gt;Linux: 64 bit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@at1oebsap101 etc]# uname -a&lt;BR /&gt;Linux at1oebsap101.mycompany.com 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Issue:&lt;BR /&gt;=====&lt;BR /&gt;&lt;BR /&gt;Every time I reboot my server DNS Entries from following file gets removed&lt;BR /&gt;&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;and after reboot "resolv.conf" comes up with just normal template , like following and my NAMESERVER or DNS entries get wiped off.&lt;BR /&gt;&lt;BR /&gt;==================&lt;BR /&gt;[root@afsoqatdb102 etc]# cat /etc/resolv.conf&lt;BR /&gt;# Generated by NetworkManager&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# No nameservers found; try putting DNS servers into your&lt;BR /&gt;# ifcfg files in /etc/sysconfig/network-scripts like so:&lt;BR /&gt;#&lt;BR /&gt;# DNS1=xxx.xxx.xxx.xxx&lt;BR /&gt;# DNS2=xxx.xxx.xxx.xxx&lt;BR /&gt;# DOMAIN=lab.foo.com bar.foo.com&lt;BR /&gt;&lt;BR /&gt;=================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Nothing in /var/log/messages or kernel log for resolv.conf.&lt;BR /&gt;&lt;BR /&gt;Any help would be highly appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 20 Dec 2010 15:07:32 GMT</pubDate>
    <dc:creator>ramizkhan</dc:creator>
    <dc:date>2010-12-20T15:07:32Z</dc:date>
    <item>
      <title>DNS Entries are Gone on Reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728603#M43113</link>
      <description>Environment&lt;BR /&gt;==========&lt;BR /&gt;HP 580 box&lt;BR /&gt;OS: OEL 5.3&lt;BR /&gt;Linux: 64 bit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@at1oebsap101 etc]# uname -a&lt;BR /&gt;Linux at1oebsap101.mycompany.com 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Issue:&lt;BR /&gt;=====&lt;BR /&gt;&lt;BR /&gt;Every time I reboot my server DNS Entries from following file gets removed&lt;BR /&gt;&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;and after reboot "resolv.conf" comes up with just normal template , like following and my NAMESERVER or DNS entries get wiped off.&lt;BR /&gt;&lt;BR /&gt;==================&lt;BR /&gt;[root@afsoqatdb102 etc]# cat /etc/resolv.conf&lt;BR /&gt;# Generated by NetworkManager&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# No nameservers found; try putting DNS servers into your&lt;BR /&gt;# ifcfg files in /etc/sysconfig/network-scripts like so:&lt;BR /&gt;#&lt;BR /&gt;# DNS1=xxx.xxx.xxx.xxx&lt;BR /&gt;# DNS2=xxx.xxx.xxx.xxx&lt;BR /&gt;# DOMAIN=lab.foo.com bar.foo.com&lt;BR /&gt;&lt;BR /&gt;=================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Nothing in /var/log/messages or kernel log for resolv.conf.&lt;BR /&gt;&lt;BR /&gt;Any help would be highly appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Dec 2010 15:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728603#M43113</guid>
      <dc:creator>ramizkhan</dc:creator>
      <dc:date>2010-12-20T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Entries are Gone on Reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728604#M43114</link>
      <description>This is just a guess.&lt;BR /&gt;&lt;BR /&gt;is your server getting its IP address via DHCP ?  if so I would suspect that the DHCP server is not providing DNS entries.&lt;BR /&gt;&lt;BR /&gt;either configure static IP and resolv.conf or find the issue on your DHCP server.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Dec 2010 15:17:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728604#M43114</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2010-12-20T15:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Entries are Gone on Reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728605#M43115</link>
      <description>Actually, I just find out the issue &lt;BR /&gt;&lt;BR /&gt;There are 2 solutions for this basically in &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-bond0&lt;BR /&gt;&lt;BR /&gt;file has PEERDNS=YES needs to be chaned to PEERDNS=NO &lt;BR /&gt;&lt;BR /&gt;also , if we go here&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/networking/profiles/default&lt;BR /&gt;&lt;BR /&gt;network manager keeps the default values of &lt;BR /&gt;host&lt;BR /&gt;bond or your ethernet values make change there &lt;BR /&gt;&lt;BR /&gt;third solution is this&lt;BR /&gt;&lt;BR /&gt;[root@afsoqatdb102 default]# chkconfig --list NetworkManager&lt;BR /&gt;NetworkManager  0:off   1:off   2:off   3:off   4:off   5:on    6:off&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;look above Networkmanager is ON for run leverl 5 , we need to change it OFF , because every time server reboots Network manager is changing the resolv.conf &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Dec 2010 15:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728605#M43115</guid>
      <dc:creator>ramizkhan</dc:creator>
      <dc:date>2010-12-20T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Entries are Gone on Reboot</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728606#M43116</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you do not want DHCP server to change your DNS nameserver entry in /etc/resolv.conf then please check the below files:&lt;BR /&gt;&lt;BR /&gt;You can check the configuration files for the interfaces&lt;BR /&gt;&lt;BR /&gt;#cat /etc/sysconfig/network-scripts/ifcfg-ethx  ===&amp;gt; check for an entry PEERDNS=no&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;# Broadcom Corporation NetXtreme BCM5714 Gigabit Ethernet&lt;BR /&gt;DEVICE=eth0&lt;BR /&gt;BOOTPROTO=static&lt;BR /&gt;HWADDR=00:15:60:0F:58:4D&lt;BR /&gt;ONBOOT=yes&lt;BR /&gt;IPADDR=10.154.35.234&lt;BR /&gt;NETMASK=255.255.255.192&lt;BR /&gt;GATEWAY=10.154.35.254&lt;BR /&gt;PEERDNS=no&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;PEERDNS=yes|no&lt;BR /&gt;      modify /etc/resolv.conf if peer uses msdns extension (PPP only) or&lt;BR /&gt;      DNS{1,2} are set, or if using dhclient. default to "yes".&lt;BR /&gt; DNS{1,2}=&lt;IP address=""&gt;&lt;BR /&gt;      provide DNS addresses that are dropped into the resolv.conf&lt;BR /&gt;      file if PEERDNS is not set to "no".&lt;BR /&gt;&lt;BR /&gt;Please read /usr/share/doc/initscripts-*/sysconfig.txt    ==&amp;gt; for more information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/IP&gt;</description>
      <pubDate>Mon, 20 Dec 2010 15:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns-entries-are-gone-on-reboot/m-p/4728606#M43116</guid>
      <dc:creator>Chhaya_Z</dc:creator>
      <dc:date>2010-12-20T15:42:23Z</dc:date>
    </item>
  </channel>
</rss>

