On 1/25/2011 8:57 AM, James Knott wrote:
James Knott wrote:
I suppose I should see if I can tell dnsmasq to
go to the external DNS for hosts on this domain that are not included in /etc/hosts.
Found it. In /etc/dnsmasq.conf
# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
All I had to do was comment out the "local=/localnet/<domain name>/"
"<domain name>" replaces my actual domain name.
Now, after restarting dnsmasq, pinging the external name returns the external address.
Local ping of the external name is not always the best thing to do.
There are some things it breaks, do to an "out and in again" situation,
also called hairpinning nat and trombone nat.
About the only thing its good for is re-directing some traffic to a DMZ
via your iptables. But this can break some things.
A split horizon DNS server is a better solution in most cases/
---This space for rent---
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org