]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-query.c
resolved: locally synthesize replies for "localhost"
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2015 11:17:05 +0000 (13:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2015 11:17:05 +0000 (13:17 +0200)
commit2a1037af15dfcfdaea5888fee310c357b8be199d
tree2497b777e5b5d9a61d40687294c40baa4bcc7e9c
parentc5974b33e7fa3b777e72181d0fc0d1d22fdab2cd
resolved: locally synthesize replies for "localhost"

Let's make sure that clients querying resolved via the bus for A, AAAA
or PTR records for "localhost" get a synthesized, local reply, so that
we do not hit the network.

This makes part of nss-myhostname redundant, if used in conjunction.
However, given that nss-resolve shall be optional we need to keep this
code in both places for now.
src/resolve/resolved-dns-query.c