resolved: when there is no gateway, make sure _gateway results in NXDOMAIN
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Sep 2017 16:01:04 +0000 (18:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Sep 2017 16:01:04 +0000 (18:01 +0200)
commitacf06088d3c64a54c760bd35d5e1b414488d5e77
tree24447edb02f68d7a3478bb79cb2247002da64bd6
parent21a13ab0543e593637cf2a301076666c7ff82a18
resolved: when there is no gateway, make sure _gateway results in NXDOMAIN

Let's ensure that "no gateway" translates to "no domain", instead of an
empty reply. This is in line with what nss-myhostname does in the same
case, hence let's unify behaviour here of nss-myhostname and resolved.
src/resolve/resolved-dns-query.c
src/resolve/resolved-dns-synthesize.c