LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-15-2013, 05:47 AM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 56

Rep: Reputation: Disabled
question in dns and bind


hi ,
i want to ask a question in dns


if i configured forwarder in my bind config ,

assume that client request a query that not in my server and not in the forwarder ,

wil the client ask the root dns servers ???


i mean when we ask the root servers ???
as i remember they are 13 servers




wish to clarify


regards
 
Old 10-15-2013, 07:16 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
This heavily depends on the configuration of the server. If you enable recursive queries the dns server will do the whole query starting from the root server if not found in its cache.
Considering your case I doubt that the client will ask the root server. It sure will only do so if it has one of the root servers configured as its dns server. Also I somewhere a long time ago read that for instance ms clients dont do recursive dns queries so they would not query any further.
As for linux clients you can just try it out. Add on of the root servers to your /etc/resolv.conf and dig google.com
 
Old 10-15-2013, 12:12 PM   #3
dr.x
Member
 
Registered: Jan 2013
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
This heavily depends on the configuration of the server. If you enable recursive queries the dns server will do the whole query starting from the root server if not found in its cache.
Considering your case I doubt that the client will ask the root server. It sure will only do so if it has one of the root servers configured as its dns server. Also I somewhere a long time ago read that for instance ms clients dont do recursive dns queries so they would not query any further.
As for linux clients you can just try it out. Add on of the root servers to your /etc/resolv.conf and dig google.com
hi thansk alot ,
lets be more accurate

now im server DNS1

i configured my self with bind and clients put my ip in their network card for dns

i configured forwarders in my config ,



now ,


when client request ass www.linuxquestions.org

the client will ask my internal cache of dns , and assume not found

then it will ask forwarders that i configured

my question is
assume the forwarder didnt find an anser for the query ,

will DNS1 server go to ask global 13 root server and give answer to that client ??

i mean when the dns server go to ask the root hints ?
it it always ?? or when it cant find it from locally anf forwarders


with to clarify ,


with my best regards
 
Old 10-15-2013, 12:52 PM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
If the forwarder can not provide an answer the dns server will ask the root servers. That is what I'm know to be a recursive query. This is if a server can not answer the query of the client by him self he will ask the root servers and follow the trail. Clients seldomly make recursive calls.

Just keep in mind that there are options for bind that allow or deny recursive queries completely or based on ip address.
 
Old 10-22-2013, 04:04 AM   #5
dr.x
Member
 
Registered: Jan 2013
Posts: 56

Original Poster
Rep: Reputation: Disabled
hi , thanks alot ,

but agian

plz imagine my scenario



client(a)-------------dns----------------->forwarder dns2
|
|
|
root hints


now client 1 requested www.linuxquestions.org

nut not found neither on dns no nor client cache
now ,

the dns will query request to forwarder , it will ask forwarder dns2

Question # 1:
will dns ask dns2 recursive or iterative query ?? "" now im talking about when it call the forwarder "


Question # 2

assume dns2 forwarder didnt find the answer ,

will dns ask the root hints ??? or just tell client that he dont know ???!!!


question # 3

i read about queries that comne from clients " i mean pcs " i found many of them send recursive query not itertive ,
wish to make sure




with my best regards
 
Old 10-22-2013, 05:26 AM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
This all heavily depends on the configuration of both clients and dns server. I'd say you can configure the server to just tell the client I don't know if it can't resolve it through forwarders or even by itself. But as soon as the server askes on of the root server he will in most cases do all the work till it can be resolved or the appropiate other dns server tells him the query can't be resolved.

On clients I only know that WinXP machines only do iterative queries. Per default dunno if there is an option.

Guess you have to see for yourself what goes on for your use case and clients.
 
Old 10-22-2013, 07:39 AM   #7
dr.x
Member
 
Registered: Jan 2013
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post
This all heavily depends on the configuration of both clients and dns server. I'd say you can configure the server to just tell the client I don't know if it can't resolve it through forwarders or even by itself. But as soon as the server askes on of the root server he will in most cases do all the work till it can be resolved or the appropiate other dns server tells him the query can't be resolved.

On clients I only know that WinXP machines only do iterative queries. Per default dunno if there is an option.

Guess you have to see for yourself what goes on for your use case and clients.
hi , thanks alot


but i have question

why we need to do NS record ??

i mean wts the benefit of that ??
i mean that the only server is the primary server for NS record , why we may need to ad more servers as ns record ???


regards
 
Old 10-22-2013, 08:18 AM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Maybe this will shed some more lights on the overall concept of domain name service
http://dnsfunda.blogspot.de/
 
  


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/BIND question - HELP!!! r_deckard9 Linux - Networking 4 04-18-2006 10:53 PM
Bind DNS question little_ball Linux - Networking 8 02-23-2004 05:33 AM
DNS Bind question phowarth Linux - Networking 1 10-31-2003 02:31 AM
??? DNS or Bind Question ??? Viper Slackware 23 08-10-2002 12:01 PM
DNS Bind Question 360 Linux - Networking 1 08-14-2001 12:51 AM


All times are GMT -5. The time now is 01:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration