Network settings with custom DNS on Ubuntu Desktop 12.04(.5) LTS

So recently i set up a virtual Ubuntu desktop, so i could work with my vsphere web client.
However it took me some effort in using the DNS server on a remote network (connection via host to host VPN)

I kept getting the message that 127.0.0.1 was my primairy dns and i couldnt reach certain url’s which i had setup in my DNS server.

Note:
192.168.0.122 and epicurus are my DNS server.

I did the following to get it working.

First of all set the following in /etc/network/interfaces:

Edit by commenting out dnsmasq in /etc/NetworkManager/NetworkManager.conf

Perform a

do a ifconfig:

And a cat /etc/resolv.conf

Ping tests:

Nslookup:

As you can see there is now a DNS server 192.168.0.122 rather than the 127.0.0.1.
This bug is caused by ubuntu using the DNSMASQ parameter. But as you can see you can bypass this by setting the correct settings.

I got help by:
http://unix.stackexchange.com/questions/59414/understanding-dns-in-ubuntu-12-04

Leave a Reply

Your email address will not be published. Required fields are marked *