DNSMASQ round Robin

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions
Author Message
dneteng
DD-WRT Novice


Joined: 30 May 2019
Posts: 4

PostPosted: Thu Mar 26, 2020 19:33    Post subject: DNSMASQ round Robin Reply with quote
All,

I would like to have two ip addresses returned in a round robin fashion. I am using this on a ddwrt router. Currently I have added two lines in the Additional Dnsmasq Options dialog box of the services tab. Only one of the IpV4 addresses is returned to the clients. Is there a way to have it alternate? If so can someone give me an explicit example. I am not very unix savy so the more explicit the better if it requires anything command line which I have never used on the router.

Address=/xyz.net/x.x.x.1
Address=/xyz.net/x.x.x.2
Sponsor
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 647

PostPosted: Fri Mar 27, 2020 22:14    Post subject: Reply with quote
That is not how DNS is designed.

It either queries in order (ie 1,2,3,4) or it does them all at one time and the first to respond is the one used.

If you really would want it to do round robin, there would be a lot of scripting involved.
dneteng
DD-WRT Novice


Joined: 30 May 2019
Posts: 4

PostPosted: Fri Mar 27, 2020 22:36    Post subject: DNSMASQ round Robin Reply with quote
The device never uses the first entry even if I use an address to create a failure. Why doesnt it use the first address? How can I make it try the other if it fails?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 4495
Location: Texas, USA

PostPosted: Fri Mar 27, 2020 23:27    Post subject: Reply with quote
http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

https://wiki.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server

And there's at least two or three threads in the forum that I *know* I have posted in about dnsmasq. I don't have them bookmarked, so... yeah.

_________________
"Are you leaving anything out of the picture, or is your post complete with all information required for us to help you? If it is not complete, fix it now."
---------------------------------------------------------
E4200 v1 DD-WRT 42819 mega K3.x
R7000P DD-WRT 40270M kongac
R7800 DD-WRT 42819 std
E4200 v1 FreshTomato 2020.2
E4200 v1 FreshTomato 2020.3.development
R7000 FreshTomato 2020.3.development
E4200 v1 1.0.07.development
WRT3200ACM OpenWRT 18.06.8
---------------------------------------------------------
Linux User #377467 counter.li.org / linuxcounter.net
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 647

PostPosted: Sat Mar 28, 2020 1:10    Post subject: Re: DNSMASQ round Robin Reply with quote
dneteng wrote:
The device never uses the first entry even if I use an address to create a failure. Why doesnt it use the first address? How can I make it try the other if it fails?


Let me repeat what I think that you are saying to check my understanding.

You have two dns ip address specified (say A and B). Your system always uses DNS ip address B, even though A is valid. Then if you specify B as invalid but A as valid, the system still never uses A even though B is invalid.

Is this correct?

I am thinking that it is a config issue, ie something is overlooked.

What build are you on (DD-WRT)?

And do in Administration->Commands

Code:

cat /tmp/resolv.dnsmasq ; cat /tmp/dnsmasq.conf


and post results
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions All times are GMT

Navigation

 
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
You can attach files in this forum
You can download files in this forum