LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-25-2012, 10:15 PM   #1
newbie16
LQ Newbie
 
Registered: May 2012
Posts: 12

Rep: Reputation: Disabled
nslookup failing


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.
 
Old 06-25-2012, 10:29 PM   #2
newbie16
LQ Newbie
 
Registered: May 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
etc/resolv.conf

Code:
[root@testhost named]# cat /etc/resolv.conf 
search a.pi
nameserver 192.168.100.232
nameserver 192.168.100.21
dig
Code:
[oracle@testhost ~]$ dig testhost.a.pi any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.1 <<>> testhost.a.pi any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63453
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;testhost.a.pi.             IN      ANY

;; AUTHORITY SECTION:
a.pi.         86400   IN      SOA     a.pi. root. 2012053269 300 900 604800 86400

;; Query time: 11 msec
;; SERVER: 192.168.100.21#53(192.168.100.21)
;; WHEN: Mon Jun 25 20:27:26 2012
;; MSG SIZE  rcvd: 75
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiz failing, GLcore.so failing to load Schrambo Linux - Desktop 4 02-23-2008 06:13 PM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
nslookup ninen Linux - Software 1 05-23-2003 08:07 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration