www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Internal Round-Robin DNS

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking
View previous topic :: View next topic  
Author Message
urajah



Joined: 13 Jan 2010
Posts: 1

PostPosted: Wed Jan 13, 2010 6:59 pm    Post subject: Internal Round-Robin DNS Reply with quote

I use my Zeroshell router to provide DNS services to internal and VPN users. I have 4 web servers configured on an internal network and would like to spread connections for an internal website (www.example.com) across all four of these internal web servers instead of creating a single host record pointing to a single web server. Is it possible to set up this type of round-robin DNS internally with Zeroshell?

Thanks!
Back to top
View user's profile Send private message
ppalias



Joined: 17 Dec 2008
Posts: 1151
Location: Athens, Greece

PostPosted: Wed Jan 13, 2010 10:58 pm    Post subject: Reply with quote

I created a test entry called test and added 3 A records. Each time I queried it, it was resolved with a different IP so I believe it should work the way you want.

Code:
root@blowfish:~# dig test.trendy.awmn

; <<>> DiG 9.6.1-P2 <<test>>HEADER<<- opcode: QUERY, status: NOERROR, id: 25716
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 1

;; QUESTION SECTION:
;test.trendy.awmn.              IN      A

;; ANSWER SECTION:
test.trendy.awmn.       86400   IN      A       10.14.149.201
test.trendy.awmn.       86400   IN      A       10.14.149.202
test.trendy.awmn.       86400   IN      A       10.14.149.200

;; AUTHORITY SECTION:
trendy.awmn.            86400   IN      NS      ns1.trendy.awmn.
trendy.awmn.            86400   IN      NS      ns2.trendy.awmn.
trendy.awmn.            86400   IN      NS      ns0.trendy.awmn.
trendy.awmn.            86400   IN      NS      ns0.nettraptor.awmn.

;; ADDITIONAL SECTION:
ns0.nettraptor.awmn.    3571    IN      A       10.21.128.65

;; Query time: 10 msec
;; SERVER: 10.14.149.1#53(10.14.149.1)
;; WHEN: Thu Jan 14 00:56:05 2010     
;; MSG SIZE  rcvd: 181               

root@blowfish:~# ping test
PING test.trendy.awmn (10.14.149.200) 56(84) bytes of data.
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=1 Time to live exceeded
From rofos.trendy.awmn (10.14.149.1): icmp_seq=2 Redirect Host(New nexthop: koutsomoura.trendy.awmn (10.14.149.62))
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=2 Time to live exceeded                                       
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=3 Time to live exceeded                                         
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=4 Time to live exceeded
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=5 Time to live exceeded
^C
--- test.trendy.awmn ping statistics ---
5 packets transmitted, 0 received, +5 errors, 100% packet loss, time 4005ms

root@blowfish:~# ping test
PING test.trendy.awmn (10.14.149.202) 56(84) bytes of data.
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=1 Time to live exceeded
From rofos.trendy.awmn (10.14.149.1): icmp_seq=2 Redirect Host(New nexthop: koutsomoura.trendy.awmn (10.14.149.62))
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=2 Time to live exceeded
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=3 Time to live exceeded
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=4 Time to live exceeded
^C
--- test.trendy.awmn ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3003ms

root@blowfish:~# ping test
PING test.trendy.awmn (10.14.149.202) 56(84) bytes of data.
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=1 Time to live exceeded
From gw-trendy.nvak.awmn (10.14.145.241) icmp_seq=2 Time to live exceeded
^C
--- test.trendy.awmn ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms

root@blowfish:~# ping test
PING test.trendy.awmn (10.14.149.201) 56(84) bytes of data.
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=1 Time to live exceeded
From rofos.trendy.awmn (10.14.149.1): icmp_seq=2 Redirect Host(New nexthop: koutsomoura.trendy.awmn (10.14.149.62))
From koutsomoura.trendy.awmn (10.14.149.62) icmp_seq=2 Time to live exceeded
^C
--- test.trendy.awmn ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1000ms
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group