LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2019, 05:54 AM   #1
Dain_Bramage
LQ Newbie
 
Registered: Mar 2019
Posts: 24

Rep: Reputation: Disabled
Update to latest root hints file on bind9


I am running Ubuntu 18.04.2 and BIND 9.11.3.

I came across this site here which has the latest root hints file. I thought it would be a good idea to update mine as it was 3 years old. So I opened it in nano deleted its contents then cut and pasted the updated file in and exited.

Then I ran "named-checkzone root /etc/bind/db.root" and got

Quote:
/etc/bind/db.root:17: ignoring out-of-zone data (.)
/etc/bind/db.root:18: ignoring out-of-zone data (A.ROOT-SERVERS.NET)
/etc/bind/db.root:19: ignoring out-of-zone data (A.ROOT-SERVERS.NET)
/etc/bind/db.root:23: ignoring out-of-zone data (.)
/etc/bind/db.root:24: ignoring out-of-zone data (B.ROOT-SERVERS.NET)
/etc/bind/db.root:25: ignoring out-of-zone data (B.ROOT-SERVERS.NET)
/etc/bind/db.root:29: ignoring out-of-zone data (.)
/etc/bind/db.root:30: ignoring out-of-zone data (C.ROOT-SERVERS.NET)
/etc/bind/db.root:31: ignoring out-of-zone data (C.ROOT-SERVERS.NET)
/etc/bind/db.root:35: ignoring out-of-zone data (.)
/etc/bind/db.root:36: ignoring out-of-zone data (D.ROOT-SERVERS.NET)
/etc/bind/db.root:37: ignoring out-of-zone data (D.ROOT-SERVERS.NET)
/etc/bind/db.root:41: ignoring out-of-zone data (.)
/etc/bind/db.root:42: ignoring out-of-zone data (E.ROOT-SERVERS.NET)
/etc/bind/db.root:43: ignoring out-of-zone data (E.ROOT-SERVERS.NET)
/etc/bind/db.root:47: ignoring out-of-zone data (.)
/etc/bind/db.root:48: ignoring out-of-zone data (F.ROOT-SERVERS.NET)
/etc/bind/db.root:49: ignoring out-of-zone data (F.ROOT-SERVERS.NET)
/etc/bind/db.root:53: ignoring out-of-zone data (.)
/etc/bind/db.root:54: ignoring out-of-zone data (G.ROOT-SERVERS.NET)
/etc/bind/db.root:55: ignoring out-of-zone data (G.ROOT-SERVERS.NET)
/etc/bind/db.root:59: ignoring out-of-zone data (.)
/etc/bind/db.root:60: ignoring out-of-zone data (H.ROOT-SERVERS.NET)
/etc/bind/db.root:61: ignoring out-of-zone data (H.ROOT-SERVERS.NET)
/etc/bind/db.root:65: ignoring out-of-zone data (.)
/etc/bind/db.root:66: ignoring out-of-zone data (I.ROOT-SERVERS.NET)
/etc/bind/db.root:67: ignoring out-of-zone data (I.ROOT-SERVERS.NET)
/etc/bind/db.root:71: ignoring out-of-zone data (.)
/etc/bind/db.root:72: ignoring out-of-zone data (J.ROOT-SERVERS.NET)
/etc/bind/db.root:73: ignoring out-of-zone data (J.ROOT-SERVERS.NET)
/etc/bind/db.root:77: ignoring out-of-zone data (.)
/etc/bind/db.root:78: ignoring out-of-zone data (K.ROOT-SERVERS.NET)
/etc/bind/db.root:79: ignoring out-of-zone data (K.ROOT-SERVERS.NET)
/etc/bind/db.root:83: ignoring out-of-zone data (.)
/etc/bind/db.root:84: ignoring out-of-zone data (L.ROOT-SERVERS.NET)
/etc/bind/db.root:85: ignoring out-of-zone data (L.ROOT-SERVERS.NET)
/etc/bind/db.root:89: ignoring out-of-zone data (.)
/etc/bind/db.root:90: ignoring out-of-zone data (M.ROOT-SERVERS.NET)
/etc/bind/db.root:91: ignoring out-of-zone data (M.ROOT-SERVERS.NET)
zone root/IN: has 0 SOA records
zone root/IN: has no NS records
zone root/IN: not loaded due to errors.
Unfortunately I did not have the foresight to make a backup of the original file, I did not anticipate this at all.

I see a new file has appeared in /etc/bind/ called ".db.root.swp". If I try an open it I get

Quote:
Could not display ".db.root.swp".

There is no application installed for "STL 3D model (binary)" files
Not sure what that's about.

Any assistance with retrieving this situation would be much appreciated.
 
Old 07-07-2019, 07:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,526

Rep: Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781
Hi,

Don't bother.
The root hints file is a special zonefile for the hint zone (i.e. the "." zone), containing just the root servers, so that your dns knows where to start looking for domain-name resolution.

If you keep it updated and you have the following entry in named.conf, you'll be fine
Code:
zone "." in{
  type hint;
  file "db.root";
};
Regards
 
Old 07-07-2019, 07:54 AM   #3
Dain_Bramage
LQ Newbie
 
Registered: Mar 2019
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

Thank you for your reply. Yes I have the following entry in "named.conf.default-zones" which is referenced by the "include" statement in "named.conf".

Code:
zone "." {
	type hint;
	file "/etc/bind/db.root";
};

However I am unsure what you mean by "if you keep it updated" - that's what I thought I was doing? Will this error disappear by itself?
 
Old 07-07-2019, 08:46 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,526

Rep: Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781
Quote:
However I am unsure what you mean by "if you keep it updated" - that's what I thought I was doing? Will this error disappear by itself?
There is no error.
You cannot test the hints file using named-checkzone because it's not a real zonefile. It's actually a list of the root servers.

Once in a while you can get a fresh copy, because root servers may be added/deleted, or change their IP address. It's not mandatory though, because bind contains also a builtin list of root servers, so it can find a way to resolve stuff.


Regards
 
Old 07-07-2019, 07:19 PM   #5
Dain_Bramage
LQ Newbie
 
Registered: Mar 2019
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi Bathory,

Thank you for your reply.

Do you know what the ".db.root.swp" file is? Is it ok to delete it?

There is one called ".rndc.key.swap" also.

Last edited by Dain_Bramage; 07-07-2019 at 07:23 PM.
 
Old 07-08-2019, 12:46 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,526

Rep: Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781Reputation: 1781
Quote:
Do you know what the ".db.root.swp" file is? Is it ok to delete it?

There is one called ".rndc.key.swap" also.
I guess that these are temporary files created by vi/vim when you're editing the files in question (db.root, rndc.key).
Use the file command to verify and if that's the case, you can safely delete them, e.g.:
Code:
file .db.root.swp
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Where is the named hints file in CentOS? Red Squirrel Linux - Server 4 06-09-2016 02:17 PM
Root hints in Ubuntu grigory Linux - Server 5 10-26-2015 09:02 AM
[SOLVED] Perl-5.16.2: File hints/linux.sh is read-only; trying to patch anyway. potterius Linux From Scratch 8 05-05-2013 08:48 AM
root hints not found in dns packets Linux - Server 3 02-12-2008 02:00 AM
"Changes&Hints" file hard to understand... jrch Slackware 2 02-14-2007 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration