Re:Cloudflare 1.1.1.1 DNS resolving issues
by LinuxBender on Wednesday October 04, 2023 @11:13AM
(#37766370)
Edit: my bad you said you talk to the root servers directly. Not sure how to delete comments
It's still a valid question. You are right, one has to bootstrap the root servers. There are a few ways to do this. Assuming one had working DNS server at some point in the past they can
dig @e.root-servers.net +nocookie +tries=4 +retry=4 +time=8 . ns | grep -Ev "^;|^$" > /etc/unbound/named_hints.tmp # sanity check this
and then do sanity checks on the output prior to loading it as hints in Unbound DNS. The 3K or so root servers are Anycast IP addresses and rarely change so this file will not be stagnant for a very long time thus making thumb drives a valid way to store and transfer this file.
Re:Cloudflare 1.1.1.1 DNS resolving issues
by icedchai on Wednesday October 04, 2023 @10:20PM
(#37774208)
Why not use the root.hints file available for this purpose? https://www.iana.org/domains/root/files
Generally it is already included with most DNS servers, such as BIND.
Re:Cloudflare 1.1.1.1 DNS resolving issues
by LinuxBender on Wednesday October 04, 2023 @10:32PM
(#37774268)
That is useful for the initial bootstrapping but should be updated or at least validated a few times a year. If package maintainers are updating it a few times a year that works too.
Is there some other option where you talk directly to the top level DNS root and the nameservers directly??
Edit: my bad you said you talk to the root servers directly. Not sure how to delete comments