DNS server not able to resolve host names to IP adresses
Hello All,
We recently configured a DNS server on a Red Hat Enterprise Linux Server release 6.2 (Santiago), we installed the following packages:
-bind (includes DNS server, named)
-bind-utils (utilities for querying DNS servers
about host information)
-bind-libs (libraries used by the bind server and
utils package)
[root@atvback-ben ~]# rpm -qa | grep bind*
bind-chroot-9.7.3-8.P3.el6_2.2.x86_64
binutils-devel-2.20.51.0.2-5.28.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
bind-9.7.3-8.P3.el6_2.2.x86_64
ypbind-1.20.4-29.el6.x86_64
bind-libs-9.7.3-8.P3.el6_2.2.x86_64
binutils-2.20.51.0.2-5.28.el6.x86_64
bind-utils-9.7.3-8.P3.el6_2.2.x86_64
The named.conf looks like below:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
};
zone "xyz.com" IN {
type master;
file "xyz.com.forward";
allow-update{ none;};
};
zone "8.10.10.in-addr.arpa" IN {
type master;
file "xyz.com.reverse";
allow-update { none; };
};
~
After installing the above packages we configured the zones:
atvserver[1-3] are static IP addresses
xyz.com.forward
$TTL 86400
@ IN SOA atvback-ben.hp.com. root.atvback-ben.xyz.com. (
42; serial(d. adams)
3H; refresh
15M; retry
1W; expiry
1D); minimum
IN NS atvback-ben.xyz.com.
IN A 10.10.8.14
;; IN A 127.0.0.1
atvserver1-ben IN A 10.10.8.14
atvserver2-ben IN A 10.10.8.15
atvserver3-ben IN A 10.10.8.16
~
xyz.com.reverse:
$TTL 86400
@ IN SOA atvback-ben.xyz.com. root.atvback-ben.xyz.com. (
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400 ); Minimum
IN NS atvback-ben.xyz.com.
IN A 10.10.8.14
;; IN A 127.0.0.1
14 IN PTR atvserver1-ben.xyz.com.
15 IN PTR atvserver2-ben.xyz.com.
16 IN PTR atvserver3-ben.xyz.com.
We are now able to resolve all the static IPs added in forward and reverse zone files.
We have configured a DHCP switch/router on which we have specified DNS or name server IP 10.10.8.14
When we issue a dig -x to atvback-ben.xyz.com from DHCP configured servers we are getting a answer:
[root@Changuch ~]# dig atvback-ben.xyz.com
; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> atvback-ben.xyz.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48680
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;atvback-ben.xyz.com. IN A
;; ANSWER SECTION:
atvback-ben.xyz.com. 86400 IN A 10.10.8.14
;; AUTHORITY SECTION:
hp.com. 86400 IN NS atvback-ben.xyz.com.
;; Query time: 0 msec
;; SERVER: 10.10.8.14#53(10.10.8.14)
;; WHEN: Sat May 21 22:02:17 2011
;; MSG SIZE rcvd: 66
But when we try to issue a dig to one of the DHCP configured servers, we do not get a answer:
[root@atvback-ben ~]# dig Changuch.xyz.com
; <<>> DiG 9.9.1-P1 <<>> Changuch.xyz.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 30842
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;Changuch.xyz.com. IN A
;; AUTHORITY SECTION:
hp.com. 86400 IN SOA atvback-ben.xyz.com. root.atvback-ben.xyz.com. 42 10800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 10.10.8.14#53(10.10.8.14)
;; WHEN: Wed Jun 20 12:19:16 2012
;; MSG SIZE rcvd: 97
The resolv.conf file on the DHCP configured server has:
# Generated by NetworkManager
nameserver 10.10.8.14
We have configured the DNS server for static IPs. Not sure how can we resolve both static and DHCP using the same zones.
Please Help!
Thanks,
Shiva Pahwa
|