[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: routing table problem after power failure (sarge)



Corné Jannemans wrote:

maybe it (dhcp-client) is still started someway during the bootproces?


No, I don't think so, since dhcp-clients are only started if specified in the interfaces file (like 'iface ethx inet dhcp' instead of '... static').

this is my /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface

iface eth0 inet static
       address 10.0.0.1
       netmask 255.0.0.0
       network 10.0.0.0
       broadcast 10.255.255.255
       dns-nameservers 194.159.73.135 194.159.73.136 194.159.73.137
       #dns-search thuis
       gateway 10.0.0.250
# dns-* options are implemented by the resolvconf package, if installed


I commented out the dns-nameservers line and rebooted. Again, /etc/resolv.conf was empty, no dnslookups could be made (pinging internet ok).

You did fill it with the correct data first, did you?

When i removed the resolvconf, i did not purge it.

That's OK, purging should not be necessary.

What to do next?

When you do 'ls -l /etc/resolv.conf', what time/date does it show? Does it indicate that the file gets overwritten during the boot process?

If all else fails, perhaps you could set up a cronjob that overwrites resolv.conf with the correct data each minute or so... Or perhaps you can try removing the write bit from the file's permission to prevent it from being overwritten.

--
"Codito ergo sum"
Roel Schroeven



Reply to: