LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-02-2004, 01:51 AM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Recursive Servers basic question in DNS


Newbie
i know recursive servers are servers that query's untill they get the answer to original
question.

but what is the actuall use of it

what recursive yes/no;

any example for this that will help me to understand the concept.
 
Old 10-02-2004, 10:01 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
A DNS server that has recursion=yes; will return the answer to any query by following the delegation path from the root name servers to the authoritative DNS server for that domain name.

A DNS server that has recursion=no; will NOT return an answer, but simply a list of the root name servers; which as far as its concerned are authoritative. i.e. Any answer to this query would have to start at the root name servers.

A typical use for recursion=no is to stop someone on the internet from using your server as their DNS server.

Example: Using my XP box and nslookup, query my DNS Server (recursion=yes) running on my FC2 system.
Code:
E:\scowles>nslookup
Default Server:  exclesior.mydomain.com
Address:  192.168.8.2

> www.example.com
Server:  exclesior.mydomain.com
Address:  192.168.8.2

Non-authoritative answer:
Name:    www.example.com
Address:  192.0.34.166
Now change nslookup to use another DNS server which has recursion=no configured.
Code:
> server ns4.myisp.net
Default Server:  ns4.myisp.net
Address:  xx.xx.xx.xx

> www.example.com
Server:  ns4.myisp.net
Address:  xx.xx.xx.xx

Name:    www.example.com
Served by:
- G.ROOT-SERVERS.NET
- H.ROOT-SERVERS.NET
- I.ROOT-SERVERS.NET
- J.ROOT-SERVERS.NET
- K.ROOT-SERVERS.NET
- L.ROOT-SERVERS.NET
- M.ROOT-SERVERS.NET
- A.ROOT-SERVERS.NET
- B.ROOT-SERVERS.NET
- C.ROOT-SERVERS.NET
Note that the DNS server ns4.myisp.net did not return an answer section, but a list of the root name servers (served by). So any host configured to use the above name server would get a "Name not Found" type of error to any query for which this DNS server is not authoritative.
 
  


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
Recursive Question Mistro116@yahoo.com Programming 1 11-27-2005 05:29 PM
Question regarding DNS Servers? snakeo2 Linux - Networking 15 08-28-2004 02:58 PM
Basic DNS/DHCP question sporkfish Linux - Networking 5 07-14-2004 07:30 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
Where do I specify DNS servers? peeples Linux From Scratch 6 11-24-2002 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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