I'm having similar problems with DNS resolution in Bionic Ubuntu-Server.
After configuring the netplan file, with the "local" search suffix, name
resolution works, but I see a 5 second delay for any DNS name ending in
.local.
When watching wireshark during the DIG request, the local system makes
about 25 successful DNS queries to the correct dns server, and the
correct response is returned for all 25 queries. This happens in seconds
0 to 1. Then there is a pause of 4 seconds, then an identical query and
response occurs at second 5, then the DIG result is returned, and the
response is cached by systemd-resolvd.
For some reason the DNS resolver is ignoring all 25 of its first
attempts to resolve the name in the first 0-1 seconds. Then it waits for
4 seconds, makes a single query, and this result is accepted and used.
This netplan file is the only configuration change after installation of
Bionic 18.04.2 Server:
$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
ethernets:
eth0:
addresses: [192.168.9.2/24]
gateway4: 192.168.9.254
nameservers:
search: [local]
addresses: [192.168.9.1]
version: 2
** Attachment added: "lots of ignored correct query-responses, then at time=5,
a single accepted query-response is made"
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1765477/+attachment/5242115/+files/wireshark-ignored-responses.PNG
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1765477
Title:
5s delay in AAAA dns resolving; artful and earlier is quick
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1765477/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs