resolving short local hostnames doesn't work, fqdn are fine

Bug #1674605 reported by Timo Aaltonen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hi, I have a local "dummy" DNS server on my router which registers DHCP clients with the hostnames that they have. But resolving these hostnames doesn't work on zesty unless fqdn is used, otherwise there's a timeout that says:

root@zesty:# host deckard
;; connection timed out; no servers could be reached

but

root@zesty:/mnt# host deckard.tyrell
deckard.tyrell has address 192.168.1.239

Yesterday I had a resolv.conf with "search tyrell" and shortnames worked then, but today it's gone again. Besides right after a reboot it fails like this:

u@zesty:~$ host deckard
Host deckard not found: 2(SERVFAIL)

and after restarting systemd-resolved I get the timeout.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Danilo Bargen (gwrtheyrn) wrote :

I assume I'm affected by the same issue.

I also use my router (Mikrotik) to set up short aliases for hosts.

This works generally:

$ dig +short anton @10.0.0.1
10.0.0.12

In my /etc/resolv.conf, systemd-resolved is enabled:

$ tail -n 1 /etc/resolv.conf
nameserver 127.0.0.53

When running "systemd-resolve --status", I can see that the DNS server is correctly set up for the interface via DHCP:

  Link 4 (wlx0013ef8b0189)
        Current Scopes: DNS
         LLMNR setting: yes
  MulticastDNS setting: no
        DNSSEC setting: no
      DNSSEC supported: no
           DNS Servers: 10.0.0.1

However, it is not being used to resolve the shortnames:

$ dig +short anton @10.0.0.1
10.0.0.12
$ dig +short anton @127.0.0.53
<nothing>
$ dig +short anton
<nothing>

Revision history for this message
Dan Streetman (ddstreet) wrote :

please reopen if this is still an issue

Changed in systemd (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.