[Dnsmasq-discuss] dnsmask respond to non-local network

Albert ARIBAUD albert.aribaud at free.fr
Thu Nov 17 16:50:55 GMT 2016


Hi Joseph,

Le Thu, 17 Nov 2016 15:57:48 +0000
Joseph C Bond IV <JCBond at BnBFilms.com> a écrit:

> Sorry if this has been answered elsewhere but I can't seem to find
> the answer anywhere.
> 
> I have a Raspberry PI 3 running a copy of dnsmasq to provide DHCP and
> DNS services for my local network. This works perfectly.
> 
> My internal network is 192.168.21.1/24. The Raspberry PI is on a
> static IP within this network. My external router assigns any VPN
> client an address within the 192.168.23.1/24 network and does all
> required routing so that clients on that network can reach hosts on
> the internal network.
> 
> When I connect via VPN obviously my system has a 192.168.23.x address
> and dnsmasq ignores all DNS queries.
> 
> How can I tell dsnmasq to reply to DNS queries from the
> 192.168.23.1/24 network as well?

Do the two subnets coexist on the same physical segment(s)? If so, then
giving the host running your dnmasq an IP address in the 23.* subnet
*should* get you there.

(watch out for other services, though, which you may or may not want to
run on both subnets.)

> Thank you in advance for all your help.



Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list