Systemd/src/resolve
Lennart Poettering ae6a4bbf31 resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects
Previously we'd only store the DnsPacket in the DnsTransaction, and the
DnsQuery would then take the DnsPacket's DnsAnswer and return it. With
this change we already pull the DnsAnswer out inside the transaction.

We still store the DnsPacket in the transaction, if we have it, since we
still need to determine from which peer a response originates, to
implement caching properly. However, the DnsQuery logic doesn't care
anymore for the packet, it now only looks at answers and rcodes from the
successfuly candidate.

This also has the benefit of unifying how we propagate incoming packets,
data from the local zone or the local cache.
2015-11-27 00:03:39 +01:00
..
.gitignore resolve: add more record types and convert to gperf table 2014-08-03 22:02:32 -04:00
Makefile resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
dns-type.c treewide: fix typos 2015-07-29 12:29:46 +02:00
dns-type.h resolved: rr - ignore pseudo types in NSEC(3) bitmaps 2015-07-23 18:06:50 +02:00
org.freedesktop.resolve1.conf resolved: add legacy dbus service and policy files 2014-07-16 03:41:39 +02:00
org.freedesktop.resolve1.service resolved: add legacy dbus service and policy files 2014-07-16 03:41:39 +02:00
resolved-bus.c Merge pull request #2031 from poettering/resolved-search-domains 2015-11-26 23:58:45 +01:00
resolved-bus.h resolved: rename resolved.h to resolved-manager.h 2014-08-01 16:14:59 +02:00
resolved-conf.c resolved: unify DnsServer handling code between Link and Manager 2015-11-25 21:58:38 +01:00
resolved-conf.h resolved: add a generic DnsSearchDomain concept 2015-11-25 21:58:38 +01:00
resolved-def.h resolved: change query flag definitions 2015-11-27 00:03:39 +01:00
resolved-dns-answer.c resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-answer.h resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-cache.c resolved: implement client-side DNAME resolution 2015-11-24 00:20:39 +01:00
resolved-dns-cache.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
resolved-dns-packet.c Merge pull request #2031 from poettering/resolved-search-domains 2015-11-26 23:58:45 +01:00
resolved-dns-packet.h resolved: accept TXT records with non-UTF8 strings 2015-11-23 21:31:28 +01:00
resolved-dns-query.c resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects 2015-11-27 00:03:39 +01:00
resolved-dns-query.h resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects 2015-11-27 00:03:39 +01:00
resolved-dns-question.c resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-question.h resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-rr.c dns-domain: simplify dns_name_is_root() and dns_name_is_single_label() 2015-11-25 22:00:07 +01:00
resolved-dns-rr.h resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-scope.c dns-domain: simplify dns_name_is_root() and dns_name_is_single_label() 2015-11-25 22:00:07 +01:00
resolved-dns-scope.h dns-domain: simplify dns_name_is_root() and dns_name_is_single_label() 2015-11-25 22:00:07 +01:00
resolved-dns-search-domain.c dns-domain: simplify dns_name_is_root() and dns_name_is_single_label() 2015-11-25 22:00:07 +01:00
resolved-dns-search-domain.h resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-server.c resolved: enforce a maximum limit on both dns servers and search domains 2015-11-25 21:58:38 +01:00
resolved-dns-server.h resolved: unify DnsServer handling code between Link and Manager 2015-11-25 21:58:38 +01:00
resolved-dns-stream.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
resolved-dns-stream.h remove unused includes 2015-02-23 23:53:42 +01:00
resolved-dns-transaction.c resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects 2015-11-27 00:03:39 +01:00
resolved-dns-transaction.h resolved: store just the DnsAnswer instead of a DnsPacket as answer in DnsTransaction objects 2015-11-27 00:03:39 +01:00
resolved-dns-zone.c resolved: fully support DNS search domains 2015-11-25 21:59:16 +01:00
resolved-dns-zone.h Merge pull request #1947 from phomes/sort-includes2 2015-11-19 23:32:30 +01:00
resolved-gperf.gperf resolved: add a generic DnsSearchDomain concept 2015-11-25 21:58:38 +01:00
resolved-link.c resolved: unify DnsServer handling code between Link and Manager 2015-11-25 21:58:38 +01:00
resolved-link.h resolved: enforce a maximum limit on both dns servers and search domains 2015-11-25 21:58:38 +01:00
resolved-llmnr.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
resolved-llmnr.h resolved: use a #define for LLMNR port 2015-07-13 11:28:29 -04:00
resolved-manager.c dns-domain: rework dns_label_escape() to not imply memory allocation 2015-11-25 22:00:07 +01:00
resolved-manager.h resolved: split out calls to compile full list of dns servers and search domains 2015-11-25 21:58:38 +01:00
resolved-resolv-conf.c resolved: split out calls to compile full list of dns servers and search domains 2015-11-25 21:58:38 +01:00
resolved-resolv-conf.h resolved: split out all code dealing with /etc/resolv.conf into its own .c file 2015-11-25 21:58:37 +01:00
resolved.c resolved: make sure FallbackDNS= overrides built-in servers, doesn't extend them 2015-11-25 21:58:37 +01:00
resolved.conf.in resolved: add a generic DnsSearchDomain concept 2015-11-25 21:58:38 +01:00