В современных дистрибутивах Ubuntu неверно резолвится зона .local. Лечим.
Ubuntu < 18
Правим /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Меняем на:
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
Ubuntu >= 18
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
Правим /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Меняем на:
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4