automagically setting dnsmasq dhcp-option values

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
kwisatz
DD-WRT Novice


Joined: 18 Jun 2006
Posts: 3

PostPosted: Sun Jun 18, 2006 19:45    Post subject: automagically setting dnsmasq dhcp-option values Reply with quote
We have 4 clients that are quite busy with p2p and as such are generating a lot of dns lookups. That's why I set the dnsmasq option
Code:
dhcp-option=6,xx.xx.xx.xx,xx.xx.xx.xx

because the router (WRT54GL) isn't able to handle all of the requests and breaks down.

Now my remaining problem or question is if there's already a clever way to automagically get the ISP's nameservers and insert them into /tmp/dnsmasq.conf ?

I guess it could easily be done using a shell script with grep and/or awk that reads the current nameservers from resolv.conf (or better yet, grabs them directly from the router's dhcp client?) and inserts them into /tmp/dnsmasq.conf

Has somebody already created such a script? I'll have a look at the dhcp client and see if there's a way to write the nameservers directly into dnsmasq.conf
Sponsor
kwisatz
DD-WRT Novice


Joined: 18 Jun 2006
Posts: 3

PostPosted: Sun Jun 18, 2006 19:58    Post subject: Reply with quote
ok, certainly not from resolv.conf
the router uses his own dns server
the correct nameservers are in resolv.dnsmasq
kwisatz
DD-WRT Novice


Joined: 18 Jun 2006
Posts: 3

PostPosted: Sun Jun 18, 2006 20:07    Post subject: Reply with quote
ok, ignore me... simply disabling dnsmasq does the job too Embarassed
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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