[SOLVED] strange picture with the "dhcp-option = ...&qu

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
PavelVD
DD-WRT User


Joined: 26 Jul 2019
Posts: 109

PostPosted: Sun Nov 21, 2021 9:05    Post subject: [SOLVED] strange picture with the "dhcp-option = ...&qu Reply with quote
In the "Additional Dnsmasq Options" settings it is specified:
Code:
dhcp-option = br0,6,192.168.1.107

This is your local Pi-hole.
When I connect my laptop over LAN, it is assigned a DNS server 192.168.1.107.
If I switch to Wi-Fi, 192.168.1.1 becomes the DNS server and my Pi-hole is resting.
I checked it on three firmwares: r47656, r47608 and r47481.
In the settings "Setup-> Networking-> Current Bridging Table" the default is:
br0 no eth1 wlan0 wlan1
Is there something wrong here?

_________________
Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 59-68°С.
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Sun Nov 21, 2021 11:10    Post subject: Reply with quote
I have the following in /tmp/dnsmasq.conf

dhcp-option=6,192.168.1.110

the option was added automatically as described in the following post

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1240340#1240340


Firmware is the following on the router: DD-WRT v3.0-r47581 std (10/20/21)

Edit: manual in the additional DNSMasq options also works

Code:
dhcp-option=br0,6,192.168.1.110


PavelVD wrote:
In the "Additional Dnsmasq Options" settings it is specified:
Code:
dhcp-option = br0,6,192.168.1.107


i see spaces that do not belong there
kernel-panic69
DD-WRT Guru


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

PostPosted: Sun Nov 21, 2021 11:40    Post subject: Reply with quote
To clarify all the "noise": Your additional dnsmasq config should be dhcp-option=br0,6,192.168.1.107 OR you should uncheck "Use DNSMasq for DNS" on the Setup -> Basic Setup page.
_________________
"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...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

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


Joined: 26 Jul 2019
Posts: 109

PostPosted: Sun Nov 21, 2021 12:49    Post subject: Reply with quote
I think mentioning the Pi-hole setup here is a bit distracting from the heart of the matter.
The line "dhcp-option=br0,6,192.168.1.107" should give clients the same server regardless of the type of connection - LAN or WLAN. In reality, this is not the case.
-
If you disable "Use DNSMasq for DNS", the Internet is lost. Apparently this is due to the fact that "SmartDNS Resolver" is also disabled, which is the only upstream (via TLS) DNS server for Pi-hole.
SmartDNS - Pi-hole works great, but why only over LAN?
-
My client is a Win10x64 laptop with built-in LAN port and 2.4Gh Wi-Fi.

_________________
Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 59-68°С.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Sun Nov 21, 2021 12:56    Post subject: Reply with quote
@PavelVD

For me, both work as said and shown.

Code:
root@DD-WRT:/tmp# cat dnsmasq.conf
.........
bogus-priv
conf-file=/etc/rfc6761.conf
dhcp-option=252,"\n"
cache-size=0
dhcp-option=6,192.168.1.110


Last edited by ho1Aetoo on Sun Nov 21, 2021 13:05; edited 1 time in total
PavelVD
DD-WRT User


Joined: 26 Jul 2019
Posts: 109

PostPosted: Sun Nov 21, 2021 13:05    Post subject: Reply with quote
O! Please mark this thread as - Solved!
I removed the adapter from the system and rebooted the laptop. After that, the 192.168.1.107 I needed was assigned. Those. Win10 is caching the old value somewhere, rather than trying to request a new one.
Thanks to all!
Embarassed

_________________
Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 59-68°С.
kernel-panic69
DD-WRT Guru


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

PostPosted: Sun Nov 21, 2021 13:11    Post subject: Reply with quote
Glad to hear it was resolved. Windows registry after Windows 98 is the crux of many problems. It retains values for things no longer present. It's the biggest lifesaver and pain in the ass at the same time.
_________________
"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...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
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