I have a machine in intranet (hostname phoenix.local, ip=10.1.1.214)
with bind9 here and it has a zone for a domain called "local" (and the
proper reverse-zone), which holds names only valid in the intranet like
"imap.local", "smtp.local" ... and "server.local" that points to the
machine itself (10.1.1.214)
my resolv.conf holds nameserver 127.0.0.1 and no search- or
domain-parameters.
and now troubles begins, cause on the server itself I can only ping the
local hostnames when *not* using the FQDN like "imap.local" but only
when using the first name like "imap"
#ping imap.local
ping: unknown host imap.local
*but:*
# dig +short imap.local
10.1.1.214
# dig +short @127.0.0.1 imap.local
10.1.1.214
*and:*
# ping imap
PING imap.local (10.1.1.214) 56(84) bytes of data.
64 bytes from phoenix.local (10.1.1.214): icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from phoenix.local (10.1.1.214): icmp_seq=2 ttl=64 time=0.026
ms
why the hell does my local system not know its own full names !!!?????
the only thing that works is pinging the hostname as FQDN
#ping phoenix.local is fine !!
any help appreatiated (and all configs below)
thnx,
peter
# cat /etc/resolv.conf
nameserver 127.0.0.1
# cat named.conf
zone "local" {
type master;
file "/etc/bind/db.local";
};
zone "1.1.10.in-addr.arpa" {
type master;
file "/etc/bind/db.10.1.1.rev";
};
# cat db.local
$TTL 604800
@ IN SOA localhost. root.localhost. (
4 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
NS ns1.local.
MX 5 server.local.
;
server IN A 10.1.1.214
phoenix IN A 10.1.1.214
ns1 IN A 10.1.1.214
ns2 IN A 10.1.1.214
imap IN A 10.1.1.214
smtp IN A 10.1.1.214
# cat db.10.1.1.rev
$TTL 604800
@ IN SOA localhost. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
NS localhost.
;
214 PTR phoenix.local.