Systemd/src/nss-resolve
Lennart Poettering 78c6a153c4 resolved: rework synthesizing logic
With this change we'll now also generate synthesized RRs for the local
LLMNR hostname (first label of system hostname), the local mDNS hostname
(first label of system hostname suffixed with .local), the "gateway"
hostname and all the reverse PTRs. This hence takes over part of what
nss-myhostname already implemented.

Local hostnames resolve to the set of local IP addresses. Since the
addresses are possibly on different interfaces it is necessary to change
the internal DnsAnswer object to track per-RR interface indexes, and to
change the bus API to always return the interface per-address rather than
per-reply. This change also patches  the existing clients for resolved
accordingly (nss-resolve + systemd-resolve-host).

This also changes the routing logic for queries slightly: we now ensure
that the local hostname is never resolved via LLMNR, thus making it
trustable on the local system.
2015-08-21 12:41:08 +02:00
..
Makefile resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00
nss-resolve.c resolved: rework synthesizing logic 2015-08-21 12:41:08 +02:00
nss-resolve.sym resolved: add small NSS module that uses resolved to resolve DNS names 2014-07-16 03:31:30 +02:00