[ALUG] DNS lookups with systemd-resolve (Ubuntu 17.04)

Mark Rogers mark at more-solutions.co.uk
Mon Apr 24 13:14:07 BST 2017

I have a local DNS server, and in it are several hosts, specified both
with and without a domain name.

   $ dig @ myhost
   myhost.    0   IN   A

   $ dig @ myhost.mydomain
   myhost.mydomain    0   IN   A

However, if I don't specify the DNS, the first query (myhost) times
out, where the second (myhost.mydomain) still works fine.

My PC gets its DNS settings via DHCP.

/etc/resolv.conf contains only which as I understand it is

/run/systemd/resolve/resolv.conf contains only (my DNS).

So, in the case of a query for "myhost.mydomain", systemd-resolve is
correctly passing the query on to my DNS. But in the case of "myhost"
it is not (I don't know what it is doing instead).

If I try "ping myhost" I get "Name or service not known". Similarly,
if I try ssh mark at myhost.


Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER

More information about the main mailing list