I ran into the problem in Ubuntu 20 that .local DNS entries from the internal network were not resolved.
nslookup company.local
could not be resolved eventhough the local DNS servers were entered correctly:
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
addresses:
- 192.168.2.108/24
gateway4: 192.168.2.1
nameservers:
addresses: [192.182.2.102, 192.168.2.101]
after a lot of headache, I found out that you also have to add search: [company.local] to make it work:
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
addresses:
- 192.168.2.108/24
gateway4: 192.168.2.1
nameservers:
search: [company.local]
addresses: [192.182.2.102, 192.168.2.101]
Afterwards don't forget sudo netplan --debug apply
!