Solved

Linux round Robin DNS

Posted on 2007-11-29
3
1,020 Views
Last Modified: 2010-05-18
I am confused on Linux DNS Round Robin.

If I have a hostname with several different ips , this seems to work correctly as each time I ping I get a different ip to that same hostname. My guess is that the ttl is set very low for this to work. ( I did not build this)

My confusion is probalby that I am thinkng to windows on this . However, if I do the same setup in Wndows. the client resovler cache will cache the first ip it resolves and then use that until cahce times out. So, this kind of defeats the notion of round robin DNS. I can turn the client cache off but now that increases traffic to DNS server. Also will ignore TTL , unless you play with registry...

Does Linux not have a client resolver and that is why this is not an issue????
0
Comment
Question by:andrew_89
3 Comments
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 500 total points
ID: 20379829
linux does it is called nscd.  Check if the service is started, however I believe that nscd adheres to the TTL on DNS records.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 20380195
Hi,

WizRd-Linux is correct in that linux has nscd process that caches dns resolutions.

One thing I want to say about dns round robin. The dns server always reply to quires with a list of IPs for the domain name, but it rotate it thus it is round robin. The client receives the list and mostly use the first ip in the list and continue to use that ip address until ttl expires or the ip does not response.

0
 
LVL 1

Author Comment

by:andrew_89
ID: 20381195
om so this is not the saem behaviour as windows client DNS cache. AS even when ttl expires the client will consult the cache first and will not go query a DNS server. This causes it to use the same ip and is not true DNS round robin.

Unless of course you disable the client cache.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fortigate 100D NTP Issue 4 54
php ssh2_scp_send 1 49
Is it possible to host a website on a windows vps 4 30
Linux VM 6 54
If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now