Hello,
I have installed a 11.2 DB on Centos 5.7 and I am trying to do a nslookup.
I am getting the following error.
Can someone tell me what I am doing wrong? Thanks.
These are my files
/etc/sysconfig/network
Code:
[root@testhost named]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=testhost.a.pi
named.conf
Code:
// Default named.conf generated by install of bind-9.2.4-30.el4_7.2
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders { 192.168.100.1; };
};
include "/etc/rndc.key";
zone "localdomain." IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "a.pi." IN {
type master;
file "a.pi.zone";
allow-update { none; };
};
zone "100.168.192.in-addr.arpa." IN {
type master;
file "100.168.192.in-addr.arpa";
allow-update { none; };
};
etc/hosts
Code:
[root@testhost named]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.100.90 testhost.a.pi testhost
::1 localhost6.localdomain6 localhost6
a.pi.zone
Code:
[root@testhost named]# cat a.p.zone
$TTL 86400
@ IN SOA localhost root.testhost (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost
localhost IN A 127.0.0.1
testhost IN A 192.168.100.90
in-addr.arpa
Code:
[root@testhost named]# cat 90.100.168.192.in-addr.arpa
$ORIGIN 90.100.168.192.in-addr.arpa.
$TTL 1H
@ IN SOA testhost.a.pi. root.testhost.a.pi. ( 2
3H
1H
1W
1H )
90.100.168.192.in-addr.arpa. IN NS testhost.a.pi.
10 IN PTR a.pi.
When I do a nslookup, this is my error.
Code:
[root@testhost named]# nslookup testhost
Server: 192.168.100.21
Address: 192.168.100.21#53
** server can't find testhost: NXDOMAIN
[root@testhost named]# nslookup testhost.a.pi
Server: 192.168.100.21
Address: 192.168.100.21#53
** server can't find testhost.a.pi: NXDOMAIN
I have disabled firewall. and selinux.