I have a local dns with a slave zone forwarding to my w0rkplace across a vpnc
tunnel.
Together with adding the work domain to the resolv.conf searchlist, I can do full
(and reverse) DNS lookups.
[walter@woodpecker ~]$ ping wsppb177c
PING wsppb177c.zds.ages.at (172.18.55.209) 56(84) bytes of data.
64 bytes from wsppb177c.ages.at (172.18.55.209): icmp_req=1 ttl=63 time=14.8 ms
64 bytes from wsppb177c.ages.at (172.18.55.209): icmp_req=2 ttl=63 time=14.5 ms
^C
--- wsppb177c.zds.ages.at ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 14.529/14.666/14.804/0.183 ms
[walter@woodpecker ~]$ nmap wsppb177c
Starting Nmap 5.21 (
http://nmap.org ) at 2011-03-12 13:28 CET
Nmap scan report for wsppb177c (172.18.55.209)
Host is up (0.047s latency).
Not shown: 992 closed ports
PORT STATE SERVICE
22/tcp open ssh
.....
Nmap done: 1 IP address (1 host up) scanned in 2.09 seconds
But trying ssh to the same (linux) box gives:
[walter@woodpecker ~]$ ssh wsppb177c
ssh: Could not resolve hostname wsppb177c: Name or service not known
Yes, getent hosts works:
[walter@woodpecker ~]$ getent hosts wsppb177c
172.18.55.209 wsppb177c.zds.ages.at
and
[walter@woodpecker ~]$ host 172.18.55.209
209.55.18.172.in-addr.arpa domain name pointer wsppb177c.ages.at.
works as well (though omitting the zds. part),
but
[walter@woodpecker ~]$ export LC_ALL=C; rdesktop wsppb177c
ERROR: getaddrinfo: Name or service not known
/etc/nsswitch.conf contains files dns entries for hosts resolution.
Some bug in Mandriva or PEBKAC? ;-)