[Dnsmasq-discuss] Is it possible to merge host names on two Dnsmasq instances?

Glen Huang heyhgl at gmail.com
Wed Sep 29 03:05:36 UTC 2021


Thanks for the quick reply.

This is a good idea. However, some of the devices use unqualified names as their host names and I have no control over them, and it seems I wouldn't be able to differentiate them in this way.

Regards,
Glen

> On Sep 29, 2021, at 10:56 AM, Andrew Miskell <andrewmiskell at mac.com> wrote:
> 
> 
> 
>> On Sep 28, 2021, at 9:16 PM, Glen Huang <heyhgl at gmail.com <mailto:heyhgl at gmail.com>> wrote:
>> 
>> Hi,
>> 
>> I have a router and a dump AP that are connected with a wire. The router has two interfaces, one is for LAN (192.168.1.1/24) and the other for WAN. The AP also has two interfaces, one is for LAN (192.168.1.2/24), the other for guest WiFi (192.168.2.1/24). (It actually also has a LAN WiFi, but it shouldn’t be relevant in this case.)
>> 
>> Dnsmasq runs both on the router and the AP. On the router, it provides DHCP and DNS, combined, for LAN. On the AP, only DHCP is enabled for the guest WiFi interface to provide 192.168.2.0/24 for clients.
>> 
>> My question is that with this setup, LAN clients won’t be able to resolve host names on the guest WiFi, since the router Dnsmasq is not cognizant of them, and it seems impossible for the router to take over guest WiFi’s DHCP, since it’s based on AP’s interfaces, so is there a way to automatically “merge" the host names on both Dnsmasq instances? If not, what would be an elegant setup to make it work?
>> 
>> Regards,
>> Glen
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk <mailto:Dnsmasq-discuss at lists.thekelleys.org.uk>
>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> 
> Assuming that the guest WiFi names are using a different domain name, e.g. guests.home.net <http://guests.home.net/> then the main LAN, e.g. home.net <http://home.net/>. 
> 
> On the router DNSMasq create an entry that tells it to send requests for anything in guest.home.net <http://guest.home.net/> to the DNSMasq instance on the AP. You can also do the reverse AP DNSMasq instance to allow guests to lookup names in the home.net <http://home.net/> domain.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210929/1fb4b63e/attachment-0001.htm>


More information about the Dnsmasq-discuss mailing list