Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 12, 2006 12:34 am 
Offline
Senior Newbie

Joined: Wed Jul 12, 2006 12:09 am
Posts: 5
I'm running Slackware 10. I run netconfig to set the ip a static address and dns server, and confirm that etc/resolv.conf is updated. When I reboot the linode my resolv.conf has all the name servers removed and only one line for the search domain. Any ideas?


Top
   
 Post subject:
PostPosted: Wed Jul 12, 2006 8:27 am 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
Linode changes resolv.conf on boot, to set default nameservers. If you modify resolv.conf I have no idea what you will get when booting.


Top
   
 Post subject:
PostPosted: Wed Jul 12, 2006 3:38 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
gmt wrote:
Linode changes resolv.conf on boot, to set default nameservers. If you modify resolv.conf I have no idea what you will get when booting.

We do? That's news to me. :)

It's usually dhcpd that's the culprit, or some other init script.

-Chris


Top
   
 Post subject:
PostPosted: Wed Jul 12, 2006 5:15 pm 
Offline
Senior Member

Joined: Sun Jul 20, 2003 8:29 am
Posts: 100
Website: http://www.ipo-australia.com
Location: Tropical Queensland, Australia
The date on /etc/resolv.conf changes every time I reboot, and I certainly didn't configure it.


Top
   
 Post subject:
PostPosted: Wed Jul 12, 2006 6:15 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
On my Linode (running Gentoo), /etc/init.d/domainname has a tinker with /etc/resolv.conf at every boot. My emergency Debian doesn't look as if any changes are made during boot.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Jul 12, 2006 6:54 pm 
Offline
Senior Newbie

Joined: Sat Oct 01, 2005 12:54 am
Posts: 13
*edit* Missed the part about you using static config...

What's your /etc/rc.d/rc.inet1.conf look like?

If you have a line like
Code:
USE_DHCP[0]="yes"
in there, it will still kick in the dhcp client...


------------------ original text follows --------------------
I'm betting it's dhcpcd doing that.

Run it with the -R option.

Read the manpage for dhcpcd.

Fix:
Look for "/sbin/dhcpcd" in /etc/rc.d/rc.inet1

Add the -R switch to the command invocation on interface start (probabaly around line 74)

Code:
          echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 10 -h ${DHCP_HOSTNAME[$1
]} eth${1}" | $LOGGER
          /sbin/dhcpcd -d -t 10 -h ${DHCP_HOSTNAME[$1]} eth${1}
        else
          echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 10 eth${1}" | $LOGGER
          /sbin/dhcpcd -d -t 10 eth${1}
        fi

becomes
Code:
          echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -R -t 10 -h ${DHCP_HOSTNAME[$1
]} eth${1}" | $LOGGER
          /sbin/dhcpcd -d -R -t 10 -h ${DHCP_HOSTNAME[$1]} eth${1}
        else
          echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -R -t 10 eth${1}" | $LOGGER
          /sbin/dhcpcd -d -t 10 eth${1}
        fi

_________________
--Bdragon


Top
   
 Post subject:
PostPosted: Thu Jul 13, 2006 7:24 pm 
Offline
Senior Newbie

Joined: Wed Jul 12, 2006 12:09 am
Posts: 5
What's your /etc/rc.d/rc.inet1.conf look like?

If you have a line like Code:
USE_DHCP[0]="yes"
in there, it will still kick in the dhcp client...


It was USE_DHCP[0]=""

I changed it to USE_DHCP[0]="No" and it fixed it.


Top
   
 Post subject:
PostPosted: Fri Jul 14, 2006 8:45 am 
Offline
Senior Member

Joined: Sun Nov 14, 2004 6:37 pm
Posts: 138
Website: http://oldos.org
WLM: jasonlfaulkner@hotmail.com
Yahoo Messenger: jasonfncsu
AOL: jaylfaulkner
Location: NC, USA
Also be aware that if a package named "resolvconf" is installed, it will eat your /etc/resolv.conf on boot (do an ls -l /etc/resolv.conf and make sure it's NOT a symlink)

_________________
Jay Faulkner
http://oldos.org


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group