public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: Reachability of DNS root servers for zone transfers
Date: Mon, 29 Oct 2018 13:25:11 +0000	[thread overview]
Message-ID: <de448d1112f029c8bf4567c9ac5c3d972af281d8.camel@ipfire.org> (raw)
In-Reply-To: <c326cd6b-9b14-4ef8-8309-7b262db06165@link38.eu>

[-- Attachment #1: Type: text/plain, Size: 3374 bytes --]

Hi,

On Sun, 2018-10-28 at 19:43 +0100, Peter Müller wrote:
> Hello *,
> 
> I am currently working on making Unbound mirror essential DNS root
> zones such as ".", "arpa.", "in-addr.arpa." and "ip6.arpa.". Since
> Unbound provides the "auth-zone" flag for some time now, I did not
> think of this as being too difficult.
> 
> However, things use to become difficult while having a closer look
> at them. :-\
> 
> Having IPFire installations with no direct access to the DNS root
> servers turned out to be the biggest issue here. (Besides, not
> all root servers can be used, as some of them do not allow zone
> transfers via AXFR.) I am currently thinking of this procedure:
> 
> (a) If DNS servers are set an known to work, they are used to
> fetch mentioned DNS root zones. In case of failures, Unbound
> falls back to current behaviour. As DNS resolvers usually do not
> allow zone transfers, I expect this to fail in most cases.

The fallback is essential. This cannot render DNS unusable.

> (b) In case no DNSSEC-validating or -aware resolvers are available,
> Unbound falls back into recursor mode, assuming reachability of
> at least one of these servers. In this case, fetching the zones
> is easy.

In hindsight, this was a bad design decision. We assumed here that this will
always work and that is not true. However, the amount of users is still
relatively small.

> (c) In case of permissive operation (no DNSSEC available), root
> zones are not fetched.

Why?

> It turned out Unbound bumps into validation errors sometime, which
> needs some further investigation.
> 
> Can/should we always assume DNS root servers are reachable?
> Any opinions on this?

Not always, but for the vast majority of users, they should be available.

If not, what are the downsides? Also what are the upsides of this?

> Thanks, and best regards,
> Peter Müller
> 
> P.S.: In case anybody wants to test, here is the corresponding
> Unbound configuration snippet (adjust paths if needed):
> 
> > # mirror DNS root zones
> > auth-zone:
> > 	name: "."
> > 	for-downstream: no
> > 	for-upstream: yes
> > 	fallback-enabled: yes
> > 	master: b.root-servers.net
> > 	master: c.root-servers.net
> > 	master: e.root-servers.net
> > 	master: f.root-servers.net
> > 	master: g.root-servers.net
> > 	master: k.root-servers.net
> > 	zonefile: "auth-zones/root"
> > 
> > auth-zone:
> > 	name: "arpa."
> > 	for-downstream: no
> > 	for-upstream: yes
> > 	fallback-enabled: yes
> > 	master: b.root-servers.net
> > 	master: c.root-servers.net
> > 	master: e.root-servers.net
> > 	master: f.root-servers.net
> > 	master: g.root-servers.net
> > 	master: k.root-servers.net
> > 	master: 80.67.169.40
> > 	master: 188.213.49.35
> > 	zonefile: "auth-zones/arpa"
> > 
> > auth-zone:
> > 	name: "in-addr.arpa."
> > 	for-downstream: no
> > 	for-upstream: yes
> > 	fallback-enabled: yes
> > 	master: f.in-addr-servers.arpa.
> > 	zonefile: "auth-zones/in-addr.arpa"
> > 
> > auth-zone:
> > 	name: "ip6.arpa."
> > 	for-downstream: no
> > 	for-upstream: yes
> > 	fallback-enabled: yes
> > 	master: f.ip6-servers.arpa.
> > 	zonefile: "auth-zones/ip6.arpa"
> 
> P.P.S.: See 
> https://unbound.nlnetlabs.nl/pipermail/unbound-users/2018-May/005268.html
> for upstream mailinglist thread.

Just for the fun of it, I have added all zones to
ns{1,2,3}.lightningwirelabs.com and allow AXFR for everyone.

-Michael


  reply	other threads:[~2018-10-29 13:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-28 18:43 Peter Müller
2018-10-29 13:25 ` Michael Tremer [this message]
2018-10-30 14:47   ` Peter Müller
2018-10-30 15:57     ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de448d1112f029c8bf4567c9ac5c3d972af281d8.camel@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox