[RESOLVED] dnsmasq config isn't building correctly

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


Joined: 01 May 2016
Posts: 4

PostPosted: Sun May 01, 2016 18:13    Post subject: [RESOLVED] dnsmasq config isn't building correctly Reply with quote
I'm trying to get dnsmasq to resolve internal dns for "hostname" (currently not working) as well as "hostname.mydomain" (currently working). I understand this is a function of the dnsmasq option "expand-hosts".

I added "expand-hosts" to my dnsmasq additional options in the webui, save/apply/reboot, but expand-hosts does not get built into my /tmp/dnsmasq.conf. If I try "nvram show | grep expand-hosts", I can see dhcpd_options=expand-hosts. But it never gets built into /tmp/dnsmasq.conf.

Anybody know how I can make ddwrt build expand-hosts into my dnsmasq config? Thanks!

Firmware: DD-WRT v24-sp2 (05/27/13) mini
Broadcom BCMD144 chip rev 1


Last edited by ricksebak on Mon May 02, 2016 20:10; edited 1 time in total
Sponsor
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Mon May 02, 2016 4:41    Post subject: Reply with quote
i use

domain=local
expand-hosts

no issues.

what do you get when you run

cat /tmp/dnsmasq.conf
ricksebak
DD-WRT Novice


Joined: 01 May 2016
Posts: 4

PostPosted: Mon May 02, 2016 12:42    Post subject: Reply with quote
Yes, I'm trying to use expand-hosts, but dd-wrt isn't building it into dnsmasq.

Here you can see the difference between my dnsmasq config and the config i have specified in the dd-wrt webui:

Code:
cat /tmp/dnsmasq.conf | grep -v dhcp-host
interface=br0
resolv-file=/tmp/resolv.dnsmasq
all-servers
domain=myhouse.mydomain.com
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=65
dhcp-option=lan,3,192.168.1.1
dhcp-authoritative
dhcp-range=lan,192.168.1.100,192.168.1.149,255.255.255.0,1440m
stop-dns-rebind

root@linksyslol:~# nvram show | grep expand-hosts
dhcpd_options=expand-hosts


Any ideas why dd-wrt isn't building expand-hosts into dnsmasq?
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Mon May 02, 2016 18:57    Post subject: Reply with quote
looks like you entered expand-hosts in the wrong field on the services tab. it goes into additional dnsmasq options and not dhcpd options
ricksebak
DD-WRT Novice


Joined: 01 May 2016
Posts: 4

PostPosted: Mon May 02, 2016 20:06    Post subject: Reply with quote
Hah! You're right. Very stupid of me. Thanks for the second pair of eyes. This is now resolved.
slidermike
DD-WRT Guru


Joined: 11 Nov 2013
Posts: 1487
Location: USA

PostPosted: Mon May 02, 2016 20:08    Post subject: Reply with quote
Not to hijack the thread but I did want to shout out to James for all his valuable help to the other users of the forums.
He has helped me on numerous occasions as well as others.

Thank you James!

_________________
Router currently owned:
Netgear R7800 - Router
Netgear R7000 - AP mode

R7000 specific Tips/Tricks.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=264152
MDA400
DD-WRT User


Joined: 10 Jan 2015
Posts: 270
Location: Minnesota

PostPosted: Tue May 03, 2016 13:34    Post subject: Reply with quote
slidermike wrote:
Not to hijack the thread but I did want to shout out to James for all his valuable help to the other users of the forums.
He has helped me on numerous occasions as well as others.

Thank you James!


I second this

_________________
LATEST DD-WRT FW IS LOCATED HERE: https://dd-wrt.com/support/other-downloads/?path=betas%2F
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