DNS problem.
Hi everybody,
I discovered the following problem: When my slackbox boots up, it has the wrong nameserver setup. I tried Slackware 11 (2.6.18) on VMWARE with two virtual ethernet cards, the first one is NAT, the second is Host-only. Both are configured to use DHCP in /etc/rc.d/rc.inet1.conf. After startup, only the ip address of the second network card's (Host-only) gateway/dns is entered in /etc/resolv.conf automatically, so i cant resolve internet names like www.google.com. On other Linux Distributions my /etc/resolv.conf has several nameservers, depending on how many netcards i use. My current workaround is to override the /etc/resolv.conf manually with the help of the rc.local script uppon boot by overriding it with the gateway/dns of the NAT's networkcard (the one which can connect to internet). This is really not the "clean" way and im searching for a solution for this issue. I am happy for every tipp and suggestion one will give me to solve this issue. Thank you in advance and with kind regards, lfhelper. :) |
I think that dhcpcd replaces, not updates, /etc/resolv.conf when it obtains an IP address. Maybe use the -R option on the second card to stop that behaviour.
Cheers. |
All times are GMT -5. The time now is 03:50 AM. |