dhclient configures /etc/resolv.conf with invalid entry
- by kubal5003
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? )