dhclient configures /etc/resolv.conf with invalid entry
Posted
by
kubal5003
on Super User
See other posts from Super User
or by kubal5003
Published on 2012-11-18T22:35:28Z
Indexed on
2012/11/18
23:07 UTC
Read the original article
Hit count: 355
I'm trying to figure out why running dhclient on my interface sets /etc/resolv conf to the ip number of my gateway(router).
This entry is invalid and each and every time causes inability to resolve any address.
I would like to:
- stop dhclient from overwriting the /etc/resolv.conf or
- make dhclient write there the valid dns ip from my router
More on the environment: I'm using virtual Debian Wheezy as a client system on Windows Seven x64. It is run by Virtualbox with networking mode set to bridged (all packets from debian are injected to my network interface on windows).
If I manually configure the /etc/resolv.conf then everything works fine. Doing this on every boot is quite annoying..
PS> I know I can write a script to do it for me, but this is not the solution I want. //edit
- router ip:
192.168.1.100
- /etc/resolv.conf AFTER running dhclient eth0: "
nameserver 192.168.1.100
" - what I would like the /etc/resolv.conf to look like: "
nameserver 89.202.xxxx
" (I don't have to provide the real ip do I? )
© Super User or respective owner