DNS issue with .home.lan

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


Joined: 02 Oct 2025
Posts: 11

PostPosted: Mon Dec 22, 2025 15:26    Post subject: DNS issue with .home.lan Reply with quote
Is there a setting that keeps ,home.lan not resolving on my home internal lan.
Using .home.arpa does work and resolve to my internal IP. I am using Pi-hole for DNS, but not DHCP.
Sponsor
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1577
Location: Appalachian mountains, USA

PostPosted: Mon Dec 22, 2025 19:37    Post subject: Reply with quote
I happened to discover only today that if you are using dnsmasq (GUI>Services>Services), the Additional Option you'd need in Dnsmasq Infrastructure there is
Code:
domain=home.lan,192.168.1.0/24,local

That's assuming your internal network is all 192.168.1.* addresses. If you have multiple subnets with each replacing that 1 with another number, then you may want 192.168.0.0/16 instead. Anyway, see the dnsmasq man page at
https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
for details, esp the section on the --domain= option.

If dnsmasq is not involved at all with DNS on your system, this may not apply. But some of us use dnsmasq as a primary DNS/DHCP system so that dnsmasq handles DHCP and local DNS lookup, with other DNS queries then forwarded by dnsmasq to SmartDNS (my case) or Unbound or Stubby or Pi-Hole or whatever.

_________________
On 61465: 3x Dynalink DL-WRX36, Linksys MX4200v2, 2x MR7350. WPA2personal/WPA3 w/ AES, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), Two SmartDNS/DoT providers and one DNSCrypt provider via VPNs. DNSmasq manages that plus ad blocking and local DNS.
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Dec 22, 2025 21:25    Post subject: Re: DNS issue with .home.lan Reply with quote
themusj wrote:
Is there a setting that keeps ,home.lan not resolving on my home internal lan.
Using .home.arpa does work and resolve to my internal IP. I am using Pi-hole for DNS, but not DHCP.

You don't necessarily need the prepending ".", but is your post a typo or no? Because a prepending "," will break it.

_________________
"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
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Mon Dec 22, 2025 23:42    Post subject: Reply with quote
Thank you and yes, the comma was typo for . period.

Added this: domain=home.lan,192.168.25.0/24,local to Additional Options and still getting Google Search results rather than hitting my Unraid server (Setup in Pi-hole as unraid.home.lan with associated IP of 192.168.25.155)

Rebooted router too.
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Dec 23, 2025 1:26    Post subject: Reply with quote
Sounds like it's a piHole problem, not (necessarily) a DD-WRT problem. Need more info to determine for sure, but you should be ignoring WAN DNS on DD-WRT, not using any static DNS entries save and except maybe manually pointing to your chosen NTP server, and pointing dnsmasq on DD-WRT to your piHole.
_________________
"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
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Tue Dec 23, 2025 4:27    Post subject: Reply with quote
One resource said to "Use Dnsmasq for DNS", and set Static DNS1 to the Pi-hole address.

Then under Services > Dnsmasq, add dhcp-opton=6, 192.168.1.281 in the Additional Dnsmasq options box. Where the IP is the Pi-hole address.

Didn't work. Still brought up Google Search results. So far just .arpa works.

I could turn pi-hole off and take that out of the equation.

If that is the case, do I fall back on the earlier suggestion? "domain=home.lan,192.168.1.0/24,local
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Tue Dec 23, 2025 15:37    Post subject: Reply with quote
Current status is I have unraid.home.lan in my Pi-hole local hosts DNS records and NSLookup resolves both by IP and Name.

My Pi-hole setup runs with Unbound so not sure if that factors into why typing in unraid.home.lan does not resolve locally instead of a Google Search.

I entered the following in DnsMasq on my DD-WRT router based on this link.

https://wiki.dd-wrt.com/wiki/index.php/DNSMasq_-_DNS_for_your_local_network_-_HOWTO

address=/unraid.home.lan/192.168.xxx.xxx
ptr-record=unraid,192.168.xxx.xxx

No success.

So odd that unraid.home.arpa works. There has to be a simple explanation.

My router is set with static IP address for each node under the DHCP settings.
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Dec 23, 2025 16:19    Post subject: Reply with quote
Do you have expand-hosts set for dnsmasq? Because local DNS should still be queried by dnsmasq.
_________________
"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
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Tue Dec 23, 2025 21:46    Post subject: Reply with quote
DD-WRT setup DHCP Server with Static DNS1 set to Pi-hole IP

All devices assigned static IP.

Use dnsmasq for DNS checked.

DHCP-Authoritative checked.

Enable Resolver checked

Pi-hole as Server set in Local DNS Records as unraid.home.lan with IP 192.168.xxx.xxx

Thank you for your insights to the problem.



Pic1.jpg
 Description:
 Filesize:  176.77 KB
 Viewed:  1694 Time(s)

Pic1.jpg


kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Dec 23, 2025 23:22    Post subject: Reply with quote
Two presumptions based on your info:

1) Recursive DNS Resolving (Unbound) <-- "Enable Resolver"
2) All of your devices have a static LEASE <-- "All devices assigned static IP."

If you're using a pi-Hole, you probably don't need Unbound enabled, nor do you need dnsmasq for dns enabled:

use Pi-Hole as simple DNS-Server with DD-WRT

Sorry for my delay in connecting the dots.

_________________
"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
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Thu Dec 25, 2025 0:17    Post subject: Reply with quote
At least you have the ability to connect the dots! Smile

I tried setting the option 2 method in the link. Some options in Pi-hole I could not change and I assume that is because of Unbound being incorporated in the docker. I have two instances of Pi-hole running with unbound, with separate static IP addresses.

So of course it didn't work even flushing the dns and trying Chrome besides Firefox.

I even tried the video below which made it look so easy. Followed every step except for the certificate (which I have been working on). Still with nextcloud.home.lan I ended up on the Internet.

https://www.youtube.com/watch?v=hS76TQO0A8s

I know unbound does some upstream processes so if I delete both Pi-hole dockers with Unbound and re-install them, what am I going to lose? I am working on self-signed certificates for Nginx so my home lan no longer has those browser warnings. Somehow I have made this more complicated than I think it is or otherwise it is. Smile
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Thu Dec 25, 2025 0:48    Post subject: Reply with quote
Well this may not be the way it is supposed to be done, but it does work.


I can type unraid.home.lan or nextcloud.home.lan in Firefox and it is working now.

Apparently Firefox did not recognize .lan in the whitelist without an edit to the config file.


Method 2: Firefox about:config (For home.lan specifically)

This helps Firefox recognize .lan as a local domain for internal lookups.

-Type about:config in the Firefox address bar and press Enter.

-Accept the risk if prompted.

-Search for browser.fixup.domainsuffixwhitelist.lan.

-If it doesn't exist, create it as a Boolean (click the + sign) and set the value to true.

Pi-hole > Nginx > DD-WRT router. I assume Chrome must have some way to edit it as well.
themusj
DD-WRT Novice


Joined: 02 Oct 2025
Posts: 11

PostPosted: Thu Dec 25, 2025 23:49    Post subject: Reply with quote
Thank you all for you help and insights. I was able to get this resolved, after literally months of on again off again work.

I love dd-wrt and the forum. The solution turned out to be a long list of things to make this work both as an internal dns server, and resolving my ssl issues.

Again, I appreciate everyone's assistance.!
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