| Linode Forum https://forum.linode.com/ |
|
| resolv.conf is changed when linode is rebooted https://forum.linode.com/viewtopic.php?f=19&t=2368 |
Page 1 of 1 |
| Author: | caveman [ Wed Jul 12, 2006 12:34 am ] |
| Post subject: | resolv.conf is changed when linode is rebooted |
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? |
|
| Author: | gmt [ Wed Jul 12, 2006 8:27 am ] |
| Post subject: | |
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. |
|
| Author: | caker [ Wed Jul 12, 2006 3:38 pm ] |
| Post subject: | |
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 |
|
| Author: | gmt [ Wed Jul 12, 2006 5:15 pm ] |
| Post subject: | |
The date on /etc/resolv.conf changes every time I reboot, and I certainly didn't configure it. |
|
| Author: | pclissold [ Wed Jul 12, 2006 6:15 pm ] |
| Post subject: | |
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. |
|
| Author: | Bdragon [ Wed Jul 12, 2006 6:54 pm ] |
| Post subject: | |
*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[$1becomes Code: echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -d -R -t 10 -h ${DHCP_HOSTNAME[$1
|
|
| Author: | caveman [ Thu Jul 13, 2006 7:24 pm ] |
| Post subject: | |
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. |
|
| Author: | Jay [ Fri Jul 14, 2006 8:45 am ] |
| Post subject: | |
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) |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|