Round Robin DNS

Hi!

I’m just wondering how to setup round robin dns with the dns server you guys are running on here…

I know how todo it with bind, but the same method dosent here. (just adding another a record)

any help would be great.

thanks.

John.

John,

Just setup multiple A or other records with the same host but different IP address. TinyDNS will cycle between them.

Chris

Hmm. thats what I did. but so far it hasent seemed to work.

and that was a creepily quick reply…

Your ISP may be caching a single IP. I’d try this:


% nslookup
>  server <your iworx-cp box's IP>
>  set type=a
>  <domain you want to lookup>

See if that reports > 1 IP.

Chris

Iv actually been trying to get it using both from my iworx box the whole time. though the output from what you asked me to type is

Server: localhost
Address: 127.0.0.1#53

Non-authoritative answer:
Name: irc.waixirc.net
Address: 202.92.215.26
>

bah. from my local computer it now shows up as

> set type=a
> irc.waixirc.net
Server: puddle-jumper.net
Address: 65.110.56.90

DNS request timed out.
timeout was 2 seconds.
Name: irc.waixirc.net
Addresses: 202.61.227.74, 202.92.215.26

though when pinging from any of my computer/also the dedicated server it still only uses 1 ip.

When you query 127.0.0.1#53 you’re not querying the recursive DNS server directly. You’re actually querying the local dns cache. A “service djbdns restart” would make 127.0.0.1 flush the cache and cause it to give the expected output.

Chris

I restarted djbdns, but it still returns the same thing.

just the 1 address.

Im sure now that its started showing up in nslookup on my local computer it will start working in time. thanks for the help though. and i’m sorry for wasting your time. :stuck_out_tongue:

its started working now from some of my computers!

thanks muchly.

edit: omg it started working.

My bad, try this:



svc -a /var/djbdns/dnscache


If that doesn’t work then try:


svc -d /var/djbdns/dnscache
svc -u /var/djbdns/dnscache

One of those 2 should do it :).

Chris

that fixed nslookup on my server.

thanks.

Sorry to bring old thread up.

but are you sure tinydns will automatically cycle between IPs for certain IP and not reply all IPs at once?

never mind, it did cycle IPs :slight_smile:

amazing