When I run
Server: 127.0.1.1 Address: 127.0.1.1#53 ** server can't find internal.foo.com: NXDOMAIN
For some reason, I am not getting the 172.17.51.3 internal DNS server I added. How do I fix this (via command-line if possible)?
nameserver 127.0.1.1 search foo.com
/etc/NetworkManager/system-connections/Ethernet\ connection\ 1
[802-3-ethernet] duplex=full [connection] id=Ethernet connection 1 uuid=4ccfdffe-b3e5-4fb2-906f-28a3e1c7a71b type=802-3-ethernet timestamp=1387729723 [ipv6] method=auto [ipv4] method=manual dns=172.17.51.3;22.214.171.124; dns-search=foo.com; address1=172.17.51.9/24,172.17.51.1
I don't know why NetworkManager seems to be misbehaving, but following the instructions from here seems to work.
Essentially, you appear to have to do something like this:
echo "nameserver 172.17.51.3 nameserver 126.96.36.199 search foo.com" | sudo resolvconf -a eth0.inet