How to get the systemd resolver to resolve local (i.e. unqalified) names?
Chris Green
cl at isbd.net
Sun Jun 4 11:10:53 UTC 2017
On Sun, Jun 04, 2017 at 06:45:32AM -0400, Tom H wrote:
> On Sun, Jun 4, 2017 at 5:38 AM, Chris Green <cl at isbd.net> wrote:
> > On Sun, Jun 04, 2017 at 11:24:52AM +0200, Xen wrote:
> >>
> >> getent hosts
> >
> > root at t470:/etc/systemd# getent hosts esprimo
> > 192.168.1.3 esprimo.zbmc.eu
> >
> > I.e. using getent works as I want! However:-
> >
> > root at t470:/etc/systemd# host esprimo
> > Host esprimo not found: 2(SERVFAIL)
>
> IIRC, you have
>
> hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
>
Yes, that's right, it's "as installed" xubuntu 17.04.
> 1) if you use
>
> hosts: files dns
>
> does "getent ..." still work?
>
No, it simply returns nothing, no error. 'host esprimo' still returns
SERVFAIL.
> 1) if you use
>
> hosts: files resolve dns
>
> does "host ..." work?
>
No, 'host esprimo' still gives SERVFAIL. However 'getent hosts
esprimo' works.
As I said I am going to add 'search zbmc.eu' to the file
/etc/resolvconf/resolv.cnf.d/head which will fix the problem for the
moment.
I'm quite happy to do further tests if they will help find what the
fundamental issue is.
--
Chris Green
More information about the ubuntu-users
mailing list