0
I have OpenWRT 14.07 running on my home router. It has DNS and DHCP services enabled for the local LAN devices.
However, this also "leaks" the name of each device connected to the router, even if connected to the same router through a different LAN. The entire network is like this:
OpenWRT router @ 192.168.0.1 and 192.168.222.1
|-- LAN
| '-- DesktopComputer @ 192.168.0.99
'-- Guest LAN
'-- LaptopComputer @ 192.168.222.88
Running any of the following commands on LaptopComputer:
$ dig -x 192.168.0.99 @192.168.0.1
$ nslookup 192.168.0.99 192.168.0.1
Returns LaptopComputer.lan.
as the result.
This means dnsmasq
in OpenWRT is resolving internal IP addresses to internal names based on the names from DHCP negotiation. How can I prevent that?
I want such reverse-resolutions to simply fail (or return NXDOMAIN
, or whatever is the appropriate response).
I don't even use local host name resolution, so I'm also accepting a solution that disables it entirely (while still resolving Internet names).
What I do in a similar situation (no openwrt, but dd-wrt) is add this option top dnsmasq: dhcp-option=br1,6,8.8.8.8 , where br1 is the guest vlan interface, option 6 is the dns server option en 8.8.8.8 is one of google's dns servers. So guests never get to query the internal lan – natxo asenjo – 2015-09-01T20:27:08.463
You understand that the purpose of DNS is to provide name resolution, right? The DNS server/service on the router isn't "leaking" the names. It's resolving the names, as it's intended to. Have you read the documentation for dnsmasq on OpenWRT? You'll probably find your solution there. – joeqwerty – 2015-09-01T20:35:39.613
@joeqwerty: Yes, I understand the purpose. Yes, I read OpenWRT wiki and dnsmasq manpage. The closest option I found was
– Denilson Sá Maia – 2015-09-01T22:31:42.263boguspriv
, but it still looks in/etc/hosts
and DHCP leases.