I have a router running, among other things, dnsmasq
with standard setup, so I get DNS proxy plus additional local servers, plus name resolution for all machines whose IP address is managed via dnsmasq
DHCP server.
Servers and other hosts are on my home.net
domain
So far so good.
Now I need to connect via VPN to a customer site (customer.net
) who has a very similar setup (they are not using dnsmasq, but net effect is the same).
I set up a small (virtual) machine acting as router forwarding (with NAT) from local network to IPSec tun
device and added a few static routes to the (2) hosts needing to see customer.net; I did this manually instead of pushing the routes through dnsmasq.
Also this seems to work without problems.
Now I have the last problem I don't know how to solve:
I can access machines in customer.net
private address space only specifying the IP address, no DNS resolution is available from dns.customer.net
How can I access dns.customer.net
without losing connection with dns.home.net
?
NOTE: I can modify my home.net
setup (I would prefer to limit changes to the few hosts actually involved), but I have no control on customer.net
Situation I would like to have is:
*.home.net
addresses should be resolved bydnsmasq
- Internet routable addresses should be resolved by
dnsmasq
proxying my ISP DNS. *.customer.net
addresses should be resolved bydns.customer.net
(I can access this host via its non-routable IP), possibly without going through mydnsmasq
Is this at all possible? If so, how?