Just learning about networking.
I'm on Mint-18. Use
dnsmasq is enabled.
I would like addresses that end with a particular domain-name to get resolved through a private-nameserver.
When I add a private-nameserver using the
server option to the dnsmasq configuration file, everything fails. I can't even resolve google.com:
> nslookup google.com ;; connection timed out; no servers could be reache
If I remove the
server option and add the same private-nameserver to the top of
\etc\resolve.conf, restart network-manager things work again and I can resolve private-hosts names.
> nslookup abcprivate.net Server: nn.nn.nn.nn Address: nn.nn.nn.nn#53 Non-authoritative answer: Name: abcprivate.net Address: mm.mm.mm.mm
So I know that the private-nameserver is correct. So it must be the way I'm configuring dnsmasq.
Here is my config file
>cat /etc/NetworkManager/dnsmasq.d/dnsmasq.conf server=/abcprivate.net/nn.nn.nn.nn
where abcprivate.net is the domain of the private network, and nn are digits.