LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-07-2006, 11:25 AM   #1
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Does bind has some dns-server ips inside?


Hy folks,

I don't think the title is very clear but could not describe it with fewer words. So here comes my question:

When you don't state any DNS-Server in named.conf ( I'm doing it with forwarders {IP...} ) it just magicly uses some. don't know where it gets the IP from, but the querys are ok and everything. Also when I state my ISP DNS-Server through <b>forwarders ...</b> it uses the right DNS-Server.

Can anyone comfirm that. Everythings working fine. I just wonder where BIND gets these IP's.

To check on it use the simple chaching name-server-config from the manual.
Code:
// Two corporate subnets we wish to allow queries from.
acl corpnets { 192.168.4.0/24; 192.168.7.0/24; };
options {
directory "/etc/namedb"; // Working directory
allow-query { corpnets; };
};
// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
and make iptables show the outgoing dns querys.

Code:
iptables -I OUTPUT 1 -p udp --dport 53 -j LOG --log-prefix "DNS:"
For my case it does not use the dns-server in /etc/resolv.conf.

Would be nice if someone would check on this.

Regards Zhjim
 
Old 11-07-2006, 11:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
BIND would use the root hints file to go to the main internet name servers, A to M.ROOT-SERVERS.NET. as these handful of DNS servers form the very ultimate point of name resolution for the net, it's not too naive to hardcode their ips.

http://www.linuxfromscratch.org/blfs...rver/bind.html check the root hints section.
 
Old 11-07-2006, 12:05 PM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748

Original Poster
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Sadly i could not find the root.hints file on my system (Debian). Nonetheless I have dig installed which was named to somehow also work with the root.hints file.

After all i was just wondering if this is "normal" behavior, so I can sleep sound.

Thanks for the quick answer
 
  


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
Dns Server Inside A Lan JustMoi Linux - Networking 5 10-26-2006 02:00 AM
dns server (bind) with only one ip? ssfrstlstnm Linux - Networking 2 07-06-2006 11:52 AM
BIND 9 DNS server niranjan_mr Linux - Software 2 08-05-2005 05:32 AM
Bind Dns Server nexact Linux - Networking 2 02-21-2004 03:10 PM
help with bind dns server!!!! debloxie Linux - Networking 4 01-22-2004 08:15 AM

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

All times are GMT -5. The time now is 10:09 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