nslookup/dig not finding short hostname convention
- From: "d" <kevindu28@xxxxxxxxx>
- Date: 27 Dec 2005 16:25:49 -0800
My configurations files on my DNS server (lnx03) below.
/var/named/my-zone.zone:
; Zone file for 192.168.0.x
;
$TTL 3D
@ IN SOA ns.lansys.com. hostmaster.lansys.com. (
200512051 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Nameserver Address
;
lan4 A 192.168.0.110
lan3 A 192.168.0.111
lan5 A 192.168.0.112
/etc/hosts:
192.168.0.110 lan4 lan4.lansys.com
192.168.0.111 lan3 lan3.lansys.com
192.168.0.112 lan5 lan5.lansys.com
When I run:
ping lan4.lansys.com (works)
nslookup lan4.lansys.com (works)
dig lan4.lansys.com (works)
If I remove the hosts names from the /etc/hosts file
When I run:
ping lan4 (works)
dig lan4 (doesn't work)
; <<>> DiG 9.2.1 <<>> lan4
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 30082
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;lan4. IN A
;; AUTHORITY SECTION:
.. 9357 IN SOA A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2005122700 1800 900 604800 86400
;; Query time: 2 msec
;; SERVER: 192.168.0.200#53(192.168.0.200)
;; WHEN: Tue Dec 27 19:15:17 2005
;; MSG SIZE rcvd: 97
nslookup lan4 (doesn't works)
> nslookup lan4
Server: 192.168.0.200
Address: 192.168.0.200#53
** server can't find lan4: NXDOMAIN
I can't understand why the shorter naming convention doesn't work when
the name is present in the /etc/hosts file. Is the zone file
configured incorrectly?
.
- Follow-Ups:
- Prev by Date: Re: ip_conntrack garbage
- Next by Date: Re: Broadcom WIFI and FC$
- Previous by thread: Routing problem
- Next by thread: Re: nslookup/dig not finding short hostname convention
- Index(es):
Relevant Pages
|