Solved

Linux round Robin DNS

Posted on 2007-11-29
3
1,027 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu Apache Webserver - File Permissions 5 58
AWS EC2 HTTP & HTTPS 2 44
IP 10.0.1.2 / 255.0.0.0 61 56
Setup Ubuntu 16.04 to use LDAP for user login and authentication 2 73
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

839 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