Ubuntu 20.04 server with multiple NICs and KVM server installed on it.
Created a bridge with netplan:
enp0s31f6:
dhcp4: no
addresses: []
bridges:
netbr0:
addresses: [192.168.14.20/24]
dhcp4: no
interfaces:
- enp0s31f6
nameservers:
addresses:
- 192.168.14.1
- 8.8.8.8
- 8.8.4.4
- 1.1.1.1
parameters:
stp: false
forward-delay: 0
enp0s31f6 is connected to the router port (VLAN14).
192.168.14.1 is the router's VLAN14 address.
A VM's NIC is connected to this bridge. VM's IP address is manually set to 192.168.14.25/24 with the gateway 192.168.14.1 and DNS servers to 8.8.8.8,8.8.4.4
I can ping external IP addresses but can't ping www.google.com.
So name resolution obviously is not working.
(Ubuntu 20.04 VM):
nslookup www.google.com
;; connection timed out; no servers could be reached
resolvectl status
Link 2 (enp3s0)
Current Scopes: DNS
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.8
DNS Domain: ~.
On the server:
ping -I 192.168.14.20 www.google.com
works.
When I connect a computer to the router (192.168.14.1), the name resolution works.
I can't figure out what causes this issue.