Re: Why is FQDN not found?
On 07/27/2012 12:11 PM, Andrei POPESCU wrote:
On Vi, 27 iul 12, 09:45:02, Kent West wrote:
Why can I ping the hostname, but not the fully-qualified domain name
of a box?
westk@westek:~$ ping k1000
PING k1000.acu.local (150.252.149.1) 56(84) bytes of data.
64 bytes from 150.252.149.1: icmp_req=1 ttl=62 time=0.128 ms
^C64 bytes from 150.252.149.1: icmp_req=2 ttl=62 time=0.138 ms
--- k1000.acu.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5002ms
rtt min/avg/max/mdev = 0.128/0.133/0.138/0.005 ms
westk@westek:~$ ping k1000.acu.local
ping: unknown host k1000.acu.local
westk@westek:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain acu.local
search acu.local
As far as I know "local" should be the domain name, not "xxxx.local",
but for zeroconf you wouldn't need to specify it anyway...
The domain is a Windows Active Directory domain (if that's a sensible
description), and it used to be named ACU, but then we moved to a new
Active Directory setup, starting from scratch because the ACU AD Domain
had too many problems in it to migrate (as I understand things), so they
created a new domain, named ACU.LOCAL and/or ACULOCAL (because Windows 7
(or Windows XP) can (or can't) handle a dot in the name, whereas Window
XP (or Windows 7) can't (or can)). I suspect that "local" was not the
best name that could have been chosen... (but I'm not a network admin,
much less an AD admin, so what do I know?).
nameserver 150.252.134.8
nameserver 150.252.134.159
nameserver 150.252.228.8
nameserver 150.252.135.4
Is this system configured by DHCP? Are these your machines or your ISPs?
Reserved DHCP. University campus network; westek is my Debian box on the
campus network. I have no control over the DHCP/DNS/other servers, but I
have good working relationships with those who do.
westk@westek:~$ nslookup k1000
Server: 150.252.134.8
Address: 150.252.134.8#53
Name: k1000.acu.local
Address: 150.252.149.1
westk@westek:~$ nslookup k1000.acu.local
Server: 150.252.134.8
Address: 150.252.134.8#53
Name: k1000.acu.local
Address: 150.252.149.1
I googled for this problem and found instructions to change 1 to 0
in the /etc/default/avahi-daemon file (after which I did a "sudo
/etc/init.d/avahi-daemon restart" command), but that didn't solve
the problem (so I put the /etc/default/avahi-daemon file back to the
way it was).
Normally "local" is used for mdns a.k.a. zeroconf, for which you
definitely need avahi-daemon running. Please post also your /etc/hosts,
/etc/nsswitch.conf and output of 'dpkg -l *avahi*' and 'dpkg -l *mdns*'
Kind regards,
Andrei
As mentioned in another post, changing the line in /etc/nsswitch.conf from:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
to:
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
seems to have solved my problem. But for the sake of completeness, here
is the data you asked for (after the fix):
westk@westek:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 westek.acu.local westek
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
westk@westek:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
westk@westek:~$ dpkg -l *avahi*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-===============-===============-===============================================
un avahi-autoipd <none> (no description available)
ii avahi-daemon 0.6.31-1 amd64 Avahi
mDNS/DNS-SD daemon
ii libavahi-client3:amd6 0.6.31-1 amd64 Avahi client
library
ii libavahi-common-data: 0.6.31-1 amd64 Avahi common
data files
ii libavahi-common3:amd6 0.6.31-1 amd64 Avahi common
library
un libavahi-compat-libdn <none> (no
description available)
ii libavahi-core7:amd64 0.6.31-1 amd64 Avahi's
embeddable mDNS/DNS-SD library
ii libavahi-glib1:amd64 0.6.31-1 amd64 Avahi GLib
integration library
ii libavahi-gobject0:amd 0.6.31-1 amd64 Avahi GObject
library
ii libavahi-ui-gtk3-0:am 0.6.31-1 amd64 Avahi GTK+
User interface library for GTK3
rc libavahi-ui0 0.6.27-2+squeez amd64 Avahi GTK+
User interface library
westk@westek:~$ dpkg -l *mdns*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-===============-===============-===============================================
un lib32nss-mdns <none> (no description available)
ii libnss-mdns 0.10-3.2 amd64 NSS module for
Multicast DNS name resolution
--
Kent West<*)))><
http://kentwest.blogspot.com
Praise Yah! \o/
Reply to: