[Dnsmasq-discuss] Local ip for local names
T o n g
mlist4suntong at yahoo.com
Wed Jul 16 03:07:37 BST 2014
Hi,
I don't know why, but previously I was able to get local IPs for local
names, but not now. I'm wondering how to fix it. Here are the details.
I use dnsmasq as my local DNS server. So whenever I refer to my local
servers, I can refer to them by names everywhere. But now, only
dig myserverA
returns local ip (ie, short name without domain name). If I use FQDN, eg
dig myserverA.mydomain, I'll get my external IP instead. I believe this
is after I've enabled Wildcard DNS record for my external DNS resolving.
I have to use Wildcard DNS record, so each of my local server can be
resolved properly externally. E.g., I won't get errors like
Domain of sender address me at myserverA.mydomain does not exist
In this case (keeping external Wildcard DNS records), how can I tell
dnsmasq to override external Wildcard DNS and always give local names
local IPs?
I've put the "domain" and "search" entries in /etc/resolv.conf, like the
following, but that doesn't help.
domain mydomain
search mydomain
nameserver 192.168.my.dnsmasq
Now, even my local proxy server setting is not working. My local proxy
setting has always been:
http_proxy=http://my-proxy:3128/
But now that everything will get an external IP instead, so proxying will
always fail now. So is my local sendmail server. In fact, nothing is
working now. I badly need to have that overriding feature works again.
Thanks
More information about the Dnsmasq-discuss
mailing list