LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-25-2015, 11:08 PM   #1
grigory
Member
 
Registered: Oct 2015
Posts: 133

Rep: Reputation: Disabled
Root hints in Ubuntu


Hello!

I've checked the /etc/bind/db.root text file and all the root name server IP's are current (I've checked the IP's one by one). So BIND9 reads this file and knows how to find root servers.
The output of dig . ns command shows me this. Why I can't see in the output the actual IP addresses? Is that normal???

;; ANSWER SECTION:
. 13309 IN NS i.root-servers.net.
. 13309 IN NS e.root-servers.net.
. 13309 IN NS g.root-servers.net.
. 13309 IN NS d.root-servers.net.
. 13309 IN NS b.root-servers.net.
. 13309 IN NS a.root-servers.net.
. 13309 IN NS m.root-servers.net.
. 13309 IN NS l.root-servers.net.
. 13309 IN NS k.root-servers.net.
. 13309 IN NS j.root-servers.net.
. 13309 IN NS f.root-servers.net.
. 13309 IN NS c.root-servers.net.
. 13309 IN NS h.root-servers.net.


Then why some people include this in their configuration files?

zone "." {
type hint;
file "root.hints";
};

OR:

zone "." {
type hint;
file "db.root";
};
 
Old 10-26-2015, 03:26 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. in the first place any given root server eg a.root-servers.net will in fact be a cluster so its always up.

2. DNS is a tree structure and you've got to initialise your system with the root of the system. Also, it means that even if you don't have any zonefiles configured, your system can always fall back to the root if absolutely necessary.
In reality it'll probably pick from eg your ISP's DNS servers.

(AFAIK)
 
Old 10-26-2015, 04:45 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@OP
Quote:
The output of dig . ns command shows me this. Why I can't see in the output the actual IP addresses? Is that normal???
No, the default is to also show the root servers IPs in the Additional Section.
Could be that your dig command is aliased with the +noadd option, e.g:
Code:
dig +noadd . ns

; <<>> DiG 9.10.3 <<>> . ns +noadd
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31316
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 24

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;.                              IN      NS

;; ANSWER SECTION:
.                       512229  IN      NS      i.root-servers.net.
.                       512229  IN      NS      b.root-servers.net.
.                       512229  IN      NS      j.root-servers.net.
.                       512229  IN      NS      m.root-servers.net.
.                       512229  IN      NS      c.root-servers.net.
.                       512229  IN      NS      e.root-servers.net.
.                       512229  IN      NS      d.root-servers.net.
.                       512229  IN      NS      l.root-servers.net.
.                       512229  IN      NS      a.root-servers.net.
.                       512229  IN      NS      k.root-servers.net.
.                       512229  IN      NS      h.root-servers.net.
.                       512229  IN      NS      g.root-servers.net.
.                       512229  IN      NS      f.root-servers.net.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Oct 26 11:40:57 EET 2015
;; MSG SIZE  rcvd: 727
Re. the hint zone take a look here

Regards
 
Old 10-26-2015, 06:00 AM   #4
grigory
Member
 
Registered: Oct 2015
Posts: 133

Original Poster
Rep: Reputation: Disabled
Thanks for your replies, but I still don't understand.
I enter dig . ns command without anything special. Same as I did when I saw ISP's output with root servers IP's.
What if I don't bother adding root hints into my BIND configuration. What exactly would I lose? That's another part that your answer didn't make clear to me. Frankly, it's BIND's problem what it's gonna do. Whether it would turn for help to my ISP's servers or someone else's. Why would I worry about that? The only thing that concerns me is that my DNS server works Okay.
 
Old 10-26-2015, 07:30 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
What if I don't bother adding root hints into my BIND configuration. What exactly would I lose?
You won't loose anything, because bind has already a compiled-in list of root servers.
Quote from the link in my previous post:
Quote:
If you are running an authoritative only server or an internal name service on a closed network you do not need the root.servers file or 'hint' zone. Even if the hint zone file is not defined BIND 9 has an internal list which it uses.
 
Old 10-26-2015, 09:02 AM   #6
grigory
Member
 
Registered: Oct 2015
Posts: 133

Original Poster
Rep: Reputation: Disabled
O.K. now I understand. Thank you!
 
  


Reply



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] /etc/hosts file is read-only for root in ubuntu Server. But rw- is for root Iyyappan Linux - Server 11 10-01-2013 01:45 AM
did not find any option for root password for root user in ubuntu 9.10 linux.ab Linux - Newbie 1 03-02-2010 02:58 AM
LXer: Shuttleworth hints at later Ubuntu LTS LXer Syndicated Linux News 0 07-13-2009 06:30 PM
root hints not found in dns packets Linux - Server 3 02-12-2008 02:00 AM
Ubuntu on a Dell PowerEdge 4300 - Hints/Tips? JKrisG Linux - Server 5 12-26-2007 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:18 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
Open Source Consulting | Domain Registration