Thankyou for all the attention to this and the explanations Dan, but now
I am also confused...

I tend to think that if my desktop is able to successfully lookup the
host on the router (as per
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1817903) then
I should expect that my laptop on the same lan, should also be able to
do so, hence to me it is still a bug...

So to clarify for me, if nothing else:

If the router dns only has the hostname defined, i.e.
phspi05 192.168.2.35

Lookups by the desktop (no NetworkManager, fixed IP) with resolv.conf 
containing:
nameserver 192.168.2.1
nameserver 127.0.0.53

dig phspi05 = success
dig phspi05.phs = fail

Lookups by the laptop (with NetworkManager, dhcp assigned IP) with resolv.conf 
containing:
nameserver 127.0.0.53
search phs

dig phspi05 = fail
dig phspi05.phs = fail

dig phspi05 @192.168.2.1 = success
dig phspi05.phs @192.168.2.1 = fail

If I manually edit resolv.conf on the laptop so that it looks like
nameserver 192.168.2.1
nameserver 127.0.0.53
search phs

dig phspi05 = success

So it seems to me that lookups by systemd-resolved
are failing to lookup the hostname on the local DNS (even if this is by design)

Whatever way I look at it, I have an inconsistency between computers on
the same network.

If the router has the hostname AND domainname defined:
phspi05 192.168.2.35
phspi05.phs 192.168.2.35

then on the desktop
dig phspi05 = success
dig phspi05.phs = success

on laptop
dig phspi05 = fails
dig phspi05.phs = success

I guess I have a workaround to manually edit resolv.conf, and as I don't
reboot that often it is not a big issue, but it doesn't feel right
somehow.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1821491

Title:
  DNS lookup fails for local hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1821491/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to