[Tfug] LAN hostnames
Paul Scott
tfug@tfug.org
Tue Sep 17 01:47:01 2002
Since moving from fixed local IP's to getting them from my Actiontec DSL
gateway I have lost the ability to look up the local host names that
used to come from the fixed entries in '/etc/hosts'.
BIND is installed. named is running. I have read the man pages that I
have found and the DNS HOWTO.
joy:/etc# cat hosts
127.0.0.1 localhost loopback
192.168.0.1 actiontec
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
joy:/etc# hostname
joy
Sep 17 01:29:46 (null) named[6476]: starting (/etc/bind/named.conf).
named 8.3.3-REL-NOESW Mon Jul 1 06:33:55 UTC 2002
^Ibuildd@cyberhq:/build/buildd/bind-8.3.3/src/bin/named
Sep 17 01:29:46 (null) named[6476]: hint zone "" (IN) loaded (serial 0)
Sep 17 01:29:46 (null) named[6476]: master zone "localhost" (IN) loaded
(serial 1)
Sep 17 01:29:46 (null) named[6476]: master zone "127.in-addr.arpa" (IN)
loaded (serial 1)
Sep 17 01:29:46 (null) named[6476]: master zone "0.in-addr.arpa" (IN)
loaded (serial 1)
Sep 17 01:29:46 (null) named[6476]: master zone "255.in-addr.arpa" (IN)
loaded (serial 1)
Sep 17 01:29:46 (null) named[6476]: listening on [127.0.0.1].53 (lo)
Sep 17 01:29:46 (null) named[6476]: listening on [192.168.0.2].53 (eth0)
Sep 17 01:29:46 (null) named[6476]: Forwarding source address is
[0.0.0.0].32894
Sep 17 01:29:46 (null) named[6477]: Ready to answer queries.
joy:/etc# dig joy
; <<>> DiG 9.2.1 <<>> joy
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64463
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;joy. IN A
Since there is no ANSWER section I would guess the answer is in the
HEADER section.
Any hints?
TIA,
Paul Scott