DNS redirect based on domain name

I use a local dnsmasq to redirect specific domains. Mostly because I’ve got domains which are on both sides of a firewall and resolve to different addresses based on VPN status.

You’ve pretty much got the same effect with the local DNS but would be interesting if that could be expanded based on domain names.

eg: (dnsmasq config file)



That way you could direct an internal domain to an internal server rather than piling in a few hundred addresses.

Also on that line, something dnsmasq can’t do, would be wild cards. server=/host*.mydomain.ca/


Has this been made possible in the last 5 years ? :smiley:

1 Like