network-manager (pptp?) DNS doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: network-manager
I can successfully connect to my company's PPTP VPN with network-manager and network-
-------
# generated by NetworkManager, do not edit!
nameserver 172.17.3.1
nameserver 172.17.3.1
-------
If I use dig to locate resources on my company's domain, they resolve correctly when fully-qualified, as expected:
-------
user@host:~$ dig loubdc01.
; <<>> DiG 9.4.1-P1 <<>> loubdc01.
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53824
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;loubdc01.
;; ANSWER SECTION:
loubdc01.
;; Query time: 44 msec
;; SERVER: 172.17.
;; WHEN: Sat Dec 8 11:03:33 2007
;; MSG SIZE rcvd: 53
-------
However, if I attempt to access any company resources via the fully-qualified name, nothing works (ping, RDP (remote desktop on 3389), etc.):
user@host:~$ ping loubdc01.
ping: unknown host loubdc01.
If I use the IP address, it works:
user@host:~$ ping 172.16.3.248
PING 172.16.3.248 (172.16.3.248) 56(84) bytes of data.
64 bytes from 172.16.3.248: icmp_seq=1 ttl=125 time=43.8 ms
--- 172.16.3.248 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 43.863/
If I put an entry in my /etc/hosts file, it also works:
-------
127.0.0.1 localhost
127.0.1.1 host
172.16.3.248 loubdc01
-----------END /etc/hosts fragment-
PING USING MANUAL HOST ENTRY:
user@host:~$ ping loubdc01
PING loubdc01 (172.16.3.248) 56(84) bytes of data.
64 bytes from loubdc01 (172.16.3.248): icmp_seq=1 ttl=125 time=44.8 ms
64 bytes from loubdc01 (172.16.3.248): icmp_seq=2 ttl=125 time=45.6 ms
So while DNS appears to be working, network-manager is not using it. I have had to put in hosts entries for all the servers I access because effectively I must either do that or use the IP addresses to access resources when connected.
Ping doesn't use network-manager to help it resolve host names. It uses the system libraries which use
nsswitch. What is the entry for "hosts:" in your /etc/nsswitch.conf?