/tmp/dnsmasq.conf error

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Thratchen
DD-WRT Novice


Joined: 04 Jul 2020
Posts: 11

PostPosted: Wed Oct 09, 2024 18:05    Post subject: /tmp/dnsmasq.conf error Reply with quote
I have DD-WRT v3.0-r55630 std (04/03/24) running on a wrt3200acm and I have the following error with the /tmp/dnsmasq.conf which is generated from the default factory settings for dnsmasq


My /tmp/dnsmasq.conf is as follows


Code:
interface=br0
resolv-file=/tmp/resolv.dnsmasq
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=190
dhcp-option=br0,3,192.168.1.1
dhcp-authoritative
dhcp-range=br0,192.168.1.100,192.168.2.33,255.255.255.0,1440m
bogus-priv
conf-file=/etc/rfc6761.conf
clear-on-reload
stop-dns-rebind
dhcp-option=252,"\n"
cache-size=1500
dns-forward-max=150


which is generated from the following default factory settings


Code:
Enable dnsmasq: Enable
Encrypt DNS: Disable
Cache DNSSEC Data: Disable
Validate DNS Replies (DNSSEC): Disable
Check Unsigned DNS Replies: Disable
No DNS Rebind: Enable
Query DNS in Strict Order: Disable
Add Requestor MAC to DNS Query: Disable
RFC4039 Rapid Commit Support: Disable




My error log is as follows


Code:
Oct 9 18:52:00 router_name user.info : [dnsmasq] : maybe died, we need to re-exec it
Oct 9 18:52:00 router_name daemon.crit dnsmasq[2093]: inconsistent DHCP range at line 7 of /tmp/dnsmasq.conf
Oct 9 18:52:00 router_name daemon.crit dnsmasq[2093]: FAILED to start up
Oct 9 18:52:00 router_name user.info : [dnsmasq] : Error on startup, returncode 1
Oct 9 18:52:15 router_name daemon.crit dnsmasq[2098]: inconsistent DHCP range at line 7 of /tmp/dnsmasq.conf
Oct 9 18:52:15 router_name daemon.crit dnsmasq[2098]: FAILED to start up
Oct 9 18:54:00 router_name user.info : [dnsmasq] : maybe died, we need to re-exec it
Oct 9 18:54:01 router_name daemon.crit dnsmasq[2133]: inconsistent DHCP range at line 7 of /tmp/dnsmasq.conf
Oct 9 18:54:01 router_name daemon.crit dnsmasq[2133]: FAILED to start up
Oct 9 18:54:01 router_name user.info : [dnsmasq] : Error on startup, returncode 1
Oct 9 18:56:00 router_name user.info : [dnsmasq] : maybe died, we need to re-exec it
Oct 9 18:56:00 router_name daemon.crit dnsmasq[2169]: inconsistent DHCP range at line 7 of /tmp/dnsmasq.conf
Oct 9 18:56:00 router_name daemon.crit dnsmasq[2169]: FAILED to start up
Oct 9 18:56:00 router_name user.info : [dnsmasq] : Error on startup, returncode 1




If anyone can suggest a fix I'd appreciate it.



Last edited by Thratchen on Wed Oct 09, 2024 19:14; edited 1 time in total
Sponsor
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6405
Location: Texas

PostPosted: Wed Oct 09, 2024 18:10    Post subject: Reply with quote
Code:
dhcp-lease-max=190
dhcp-option=br0,3,192.168.1.1
dhcp-authoritative
dhcp-range=br0,192.168.1.100,192.168.2.33,255.255.255.0,1440m


dhcp-range=br0,192.168.1.100,192.168.2.33 Question
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Oct 09, 2024 18:44    Post subject: Reply with quote
I'm sure a screenshot of Setup -> Basic Setup tab would reveal the obvious error in configuration as already pointed out by @mrjcd.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13880
Location: Netherlands

PostPosted: Wed Oct 09, 2024 19:02    Post subject: Reply with quote
Those are not the default settings.

You put in wrong settings, to start at 100 and then with 190 clients you will go over 254.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Thratchen
DD-WRT Novice


Joined: 04 Jul 2020
Posts: 11

PostPosted: Wed Oct 09, 2024 19:15    Post subject: Reply with quote
I've updated the initial post with a screengrab of the basic -> setup

mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6405
Location: Texas

PostPosted: Wed Oct 09, 2024 19:20    Post subject: Reply with quote


Cool
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Oct 09, 2024 20:33    Post subject: Reply with quote
You also do not enter anything in the Gateway or Local DNS fields in a normal scenario. Further details required.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13880
Location: Netherlands

PostPosted: Thu Oct 10, 2024 10:53    Post subject: Reply with quote
Furthermore having a single ip address as time server is also not recommended.

Do not stray from the path ( = default settings ) unless you know what you are doing Wink

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Sp1derman
DD-WRT User


Joined: 16 Jun 2006
Posts: 230
Location: Germany, BW

PostPosted: Fri Oct 11, 2024 12:52    Post subject: Reply with quote
To give you a short explaination:
The subnet itself and the number of usable IP-Adresses is defined by the Subnet-Mask. In your case, Subnet-Mask is 255.255.255.0 or /24. That means you can use IPs from .1 to.254.

In the DHCP Mask you put in 190 IPs for DHCP, starting at IP .100. So you are above the usable range from .1 to .254.(The GUI should deny these kinds of wrong entries)

If you need 190 DHCP-IPs you can set the Start-IP to .64 or below (you put in .100).

OR, if you also have a greater number of static IPs (over 63), you have to take another Subnet-Mask.
With Subnet-Mask /23 you can change the DHCP-Starting-IP to 192.168.0.1 and keep the 190 DHCP-Users.

You can play around with this Subnet-Calculator to understand:
https://jodies.de/ipcalc?host=192.168.1.0&mask1=23&mask2=
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum