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

2021-10-05 Thread Glen Huang
Thank you so much for bringing VLAN trunking to my attention. I’ve successfully 
set it up on the router and the AP, with one Dnsmasq instance to rule them all! 
It’s a really elegant solution.

Regards,
Glen

> On Oct 2, 2021, at 2:59 PM, Paul Fertser  wrote:
> 
> Hi Glen,
> 
>> On Wed, Sep 29, 2021 at 10:16:00AM +0800, Glen Huang wrote:
>> it seems impossible for the router to take over guest WiFi’s DHCP,
>> since it’s based on AP’s interfaces
> 
> Just make the wired link between your router and the AP trunking, on
> the AP bridge main and guest SSIDs to different VLANs, and on the
> router serve all the VLANs with a single dnsmasq instance.
> 
> HTH
> -- 
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:fercer...@gmail.com

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


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

2021-10-02 Thread Paul Fertser
Hi Glen,

On Wed, Sep 29, 2021 at 10:16:00AM +0800, Glen Huang wrote:
> it seems impossible for the router to take over guest WiFi’s DHCP,
> since it’s based on AP’s interfaces

Just make the wired link between your router and the AP trunking, on
the AP bridge main and guest SSIDs to different VLANs, and on the
router serve all the VLANs with a single dnsmasq instance.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


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

2021-09-28 Thread Glen Huang
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  wrote:
> 
> 
> 
>> On Sep 28, 2021, at 9:16 PM, Glen Huang > > 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@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  then the main LAN, e.g. home.net 
> . 
> 
> On the router DNSMasq create an entry that tells it to send requests for 
> anything in 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  domain.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


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

2021-09-28 Thread Andrew Miskell via Dnsmasq-discuss


> On Sep 28, 2021, at 9:16 PM, Glen Huang  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@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  then the main LAN, e.g. home.net 
. 

On the router DNSMasq create an entry that tells it to send requests for 
anything in 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  domain.___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


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

2021-09-28 Thread Glen Huang
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@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss