Systemd/src/resolve
Zbigniew Jędrzejewski-Szmek 5248e7e1f1 resolved,nss-myhostname: use _gateway for the gateway
This changes the symbolic name for the default gateway from "gateway" to
"_gateway". A new configuration option -Dcompat-gateway-hostname=true|false
is added. If it is set, the old name is also supported, but the new name
is used as the canonical name in either case. This is intended as a temporary
measure to make the transition easier, and the option should be removed
after a few releases, at which point only the new name will be used.

The old "gateway" name mostly works OK, but hasn't gained widespread acceptance
because of the following (potential) conflicts:
- it is completely legal to have a host called "gateway"
- there is no guarantee that "gateway" will not be registered as a TLD, even
  though this currently seems unlikely. (Even then, there would be no
  conflict except for the case when the top-level domain itself was being resolved.
  The "gateway" or "_gateway" labels have only special meaning when the
  whole name consists of a single label, so resolution of any subdomain
  of the hypothetical gateway. TLD would still work OK. )
Moving to "_gateway" avoids those issues because underscores are not allowed
in host names (RFC 1123, §2.1) and avoids potential conflicts with local or
global names.

v2:
- simplify the logic to hardcode "_gateway" and allow
  -Dcompat-gateway-hostname=true as a temporary measure.
2017-07-31 14:41:56 -04:00
..
RFCs tree-wide: use mdash instead of a two minuses 2016-04-21 23:00:13 -04:00
dns-type.c build-sys: add check for gperf lookup function signature (#5055) 2017-01-10 08:39:05 +01:00
dns-type.h resolved: explicitly refuse zone transfers using the bus API 2016-06-21 13:20:48 +02:00
dns_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
generate-dns_type-gperf.py Mark python scripts executable 2017-05-07 20:16:47 -04:00
generate-dns_type-list.sed meson: build systemd using meson 2017-04-23 21:47:26 -04:00
meson.build test-resolved-packet: add a simple test for our allocation functions 2017-06-27 13:19:31 -04: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
resolv.conf resolved: respond to local resolver requests on 127.0.0.53:53 2016-06-21 14:15:23 +02:00
resolve-tool.c resolve: add missing space in output message (#5574) 2017-03-12 20:12:03 -04:00
resolved-bus.c resolved: allow resolution of names which libidn2 considers invalid (#6315) 2017-07-11 10:42:21 +02:00
resolved-bus.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved-conf.c resolved: ignore DNSSEC= option when resolved is built without gcrypt (#6084) 2017-06-17 16:22:32 -04:00
resolved-conf.h build-sys: add check for gperf lookup function signature (#5055) 2017-01-10 08:39:05 +01:00
resolved-def.h resolved: include inttypes.h in resolved-def.h given that we use UINT64_C 2016-02-10 14:32:27 +01:00
resolved-dns-answer.c Fix missing space in comments (#5439) 2017-02-24 18:14:02 +01:00
resolved-dns-answer.h resolved: implement sending goodbye mDNS packet 2017-01-19 11:51:21 +02:00
resolved-dns-cache.c Fix missing space in comments (#5439) 2017-02-24 18:14:02 +01:00
resolved-dns-cache.h resolved: when using the ResolveRecord() bus call, adjust TTL for caching time 2016-06-21 13:20:48 +02:00
resolved-dns-dnssec.c resolved: fix NSEC proofs for missing TLDs 2017-02-17 10:25:15 +01:00
resolved-dns-dnssec.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved-dns-packet.c resolve: Try to remove the ambiguity about the mtu parameter of dns_packet_new (#6285) 2017-07-05 22:56:17 -04:00
resolved-dns-packet.h resolve: Try to remove the ambiguity about the mtu parameter of dns_packet_new (#6285) 2017-07-05 22:56:17 -04:00
resolved-dns-query.c resolved: extend various timeouts 2017-02-17 10:25:16 +01:00
resolved-dns-query.h resolved: when following a CNAME initialize authenticated bit by the weakest answer 2017-02-09 16:13:07 +01:00
resolved-dns-question.c resolved: allow resolution of names which libidn2 considers invalid (#6315) 2017-07-11 10:42:21 +02:00
resolved-dns-question.h resolved: add dns_answer_is_empty() and dns_question_is_empty() helpers 2016-06-21 13:20:48 +02:00
resolved-dns-rr.c resolved: add cache-flush bit to answers in mDNS announcements 2017-01-19 11:51:21 +02:00
resolved-dns-rr.h resolved: respond to local resolver requests on 127.0.0.53:53 2016-06-21 14:15:23 +02:00
resolved-dns-scope.c resolved: size the mdns announce answer array properly 2017-02-14 11:13:48 +01:00
resolved-dns-scope.h resolved: let's propagate errors from dns_scope_announce() and elsewhere 2017-02-13 20:44:11 +01:00
resolved-dns-search-domain.c tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
resolved-dns-search-domain.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved-dns-server.c resolved: downgrade log messages about switching DNS servers 2017-07-03 11:20:04 +02:00
resolved-dns-server.h resolved: when the dns server feature level grace period elapses, flush caches 2017-02-17 10:25:15 +01:00
resolved-dns-stream.c tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
resolved-dns-stream.h resolved: directly include some required headers instead of inheriting 2016-08-31 15:33:21 -07:00
resolved-dns-stub.c resolved: propagate AD bit for NXDOMAIN into stub replies 2017-02-17 10:25:15 +01:00
resolved-dns-stub.h resolved: simplify error handling in manager_dns_stub_{udp,tcp}_fd() 2016-10-09 21:22:23 -04:00
resolved-dns-synthesize.c resolved,nss-myhostname: use _gateway for the gateway 2017-07-31 14:41:56 -04:00
resolved-dns-synthesize.h resolved: synthesize RRs for data from /etc/hosts 2016-01-25 17:19:19 +01:00
resolved-dns-transaction.c bus: include sd-{bus,messages}.h the same as other systemd headers 2017-04-21 12:05:55 -04:00
resolved-dns-transaction.h resolved: extend various timeouts 2017-02-17 10:25:16 +01:00
resolved-dns-trust-anchor.c bus: include sd-{bus,messages}.h the same as other systemd headers 2017-04-21 12:05:55 -04:00
resolved-dns-trust-anchor.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved-dns-zone.c resolved: implement mDNS probing and announcement 2017-01-19 11:51:21 +02:00
resolved-dns-zone.h resolved: populate mDNS scopes' zones with RRs for the host 2017-01-19 11:51:21 +02:00
resolved-etc-hosts.c resolved: correctly handle non-address RR types with /etc/hosts lookups (#4808) 2016-12-22 07:58:02 +01:00
resolved-etc-hosts.h resolved: synthesize RRs for data from /etc/hosts 2016-01-25 17:19:19 +01:00
resolved-gperf.gperf resolved: add global config option to control mDNS stack 2017-03-21 13:35:08 +09:00
resolved-link-bus.c resolve: fix strv memleak 2017-01-24 22:27:21 -05:00
resolved-link-bus.h resolved: rename "SearchDomains" property in the Manager interface to "Domains" 2016-02-13 20:33:49 +01:00
resolved-link.c tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
resolved-link.h resolved: count the number of addresses per link 2017-02-13 20:41:09 +01:00
resolved-llmnr.c resolved: detect and warn other running LLMNR stack 2017-03-21 13:35:12 +09:00
resolved-llmnr.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved-manager.c resolved: treat failure to parse config as non-fatal 2017-07-05 00:16:50 -04:00
resolved-manager.h Merge pull request #4832 from rojkov/mdns 2017-02-12 15:38:51 -05:00
resolved-mdns.c resolved: detect and warn other running mDNS stack 2017-03-21 13:34:52 +09:00
resolved-mdns.h resolved: implement mDNS probing and announcement 2017-01-19 11:51:21 +02:00
resolved-resolv-conf.c tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396) 2017-07-21 10:35:45 +02:00
resolved-resolv-conf.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
resolved.c treewide: fix typos (#4802) 2016-12-02 09:20:26 -05:00
resolved.conf.in resolved: add global config option to control mDNS stack 2017-03-21 13:35:08 +09:00
test-dns-packet.c test: drop TEST_DATA_DIR, fold into get_testdata_dir() 2017-02-16 21:45:57 +01:00
test-dnssec-complex.c resolved: support libidn2 in addition to libidn 2017-05-11 14:25:01 -04:00
test-dnssec.c test-dnssec: drop unused variable 2016-04-12 13:51:28 +02:00
test-resolve-tables.c test-resolve-tables: verify that dns type/class length is within limits 2016-02-16 19:55:51 -05:00
test-resolved-packet.c resolve: Try to remove the ambiguity about the mtu parameter of dns_packet_new (#6285) 2017-07-05 22:56:17 -04:00