I have a DNS problem in a KVM guest running Ubuntu 14.04.1 LTS. The host is the same. The host has a bridge network configured since I want to see the guest on my network.
So far, I can see the guest on my network. I can ping it. The guest can ping out without problem. The guest has a static IP configured. I can ping external DNS servers etc.
The problem is that DNS just does not work on the guest. I cannot resolve anything either using nslookup or host commands.
The host does not have any DNS issues.
So I am baffled as to why DNS does not work but networking does.
Here is the host
# 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 iface lo inet loopback # The primary network interface auto em1 iface em1 inet manual auto br0 iface br0 inet static address 192.168.1.150 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.6 netmask 255.255.255.0 dns-nameservers 220.127.116.11 18.104.22.168 bridge_ports em1 bridge_stp off bridge_fd 0 bridge_maxwait 0
Here is the
ifconfig of the guest:
eth0 Link encap:Ethernet HWaddr 00:16:3e:7a:56:f5 inet addr:192.168.1.151 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe7a:56f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:215 errors:0 dropped:17 overruns:0 frame:0 TX packets:58 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17545 (17.5 KB) TX bytes:7237 (7.2 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:52 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4568 (4.5 KB) TX bytes:4568 (4.5 KB)