Can not do NSLOOKUP

Can not do NSLOOKUP

Post by Yuki Ari » Thu, 24 Jul 2003 11:14:25



Hi All,

I can not do nslookup in my cache only name server (Solaris 2.6). This
server refer to

another normal DNS server (Solaris 8). In the DNS server I can do reverse
lookup of

172.21.2.1. This IP is IP address of the cache only name server .

When I ping from cache only name server to another host defined in the DNS

server by using FQDN, it works.

I read some posts that it could be the reverse lookup problem but I can not

where the fault is.

Please, help me.

root@eqm01s14p2:/etc> nslookup

*** Can't find server name for address 172.21.2.1: Non-existent host/domain

*** Default servers are not available

Exit 1

This is the active NCB

root@eqm01s14p2:/etc> nslookup -d2

;; res_mkquery(0, 1.2.21.172.in-addr.arpa, 1, 12)

------------

SendRequest(), len 41

HEADER:

opcode = QUERY, id = 46759, rcode = NOERROR

header flags: query, want recursion

questions = 1, answers = 0, authority records = 0, additional = 0

QUESTIONS:

1.2.21.172.in-addr.arpa, type = PTR, class = IN

------------

------------

Got answer (109 bytes):

HEADER:

opcode = QUERY, id = 46759, rcode = NXDOMAIN

header flags: response, auth. answer, want recursion, recursion

avail.

questions = 1, answers = 0, authority records = 1, additional = 0

QUESTIONS:

1.2.21.172.in-addr.arpa, type = PTR, class = IN

AUTHORITY RECORDS:

-> in-addr.arpa

type = SOA, class = IN, dlen = 44

ttl = 86400 (1 day)

origin = localhost

mail addr = hostmaster.localhost

serial = 1

refresh = 10800 (3 hours)

retry = 3600 (1 hour)

expire = 604800 (7 days)

minimum ttl = 86400 (1 day)

------------

*** Can't find server name for address 172.21.2.1: Non-existent host/domain

*** Default servers are not available

Exit 1

This is the active NCB

root@eqm01s14p2:/etc>

---------------------------------------------------------------------------

Below is the cache only name server data.

---------------------------------------------------------------------------

root@eqm01s14p2:/etc> more /etc/resolv.conf

domain mnc011.mcc510.gprs.

nameserver 172.21.2.1

This is the active NCB

root@eqm01s14p2:/etc>

---------------------------------------------------------------------------

Below is my cache only db.cache file.

---------------------------------------------------------------------------

root@eqm01s14p2:/etc> cat /var/named/db.cache

. 3600000 IN NS gsnsvrjkt1.mnc011.mcc510.gprs.

gsnsvrjkt1.mnc011.mcc510.gprs. 3600000 IN A 172.21.4.5

This is the active NCB

root@eqm01s14p2:/etc>

---------------------------------------------------------------------------

Below is the cache only named.boot.

---------------------------------------------------------------------------

root@eqm01s14p2:/etc> cat /etc/dnsApp/named.boot

; /etc/named.boot

directory /var/named

primary localhost db.localhost

primary 0.0.127.in-addr.arpa db.127.0.0

primary in-addr.arpa db.in-addr.arpa

cache . db.cache

This is the active NCB

root@eqm01s14p2:/etc>

root@eqm01s14p2:/etc> ps -ef|grep named

root 3596 1 0 03:05:35 ? 0:00 -b /etc/dnsApp/named.boot

This is the active NCB

root@eqm01s14p2:/etc>

---------------------------------------------------------------------------

Below is the DNS server data:

---------------------------------------------------------------------------

Below is my nslookup in the DNS server.

gsnsvrjkt1 /var/named :nslookup

Default Server: gsnsvrjkt1.mnc011.mcc510.gprs

Address: 172.21.4.5

> 172.21.2.1

Server: gsnsvrjkt1.mnc011.mcc510.gprs

Address: 172.21.4.5

Name: sgsnjkt1.mnc011.mcc510.gprs

Address: 172.21.2.1

> exit

gsnsvrjkt1 /var/named :

---------------------------------------------------------------------------

Below is the my DNS server named.conf data:

---------------------------------------------------------------------------

gsnsvrjkt1 /etc :vi named.conf

// Modified by eyukiar, Ericsson, 1 November 2002

// The original file is in /etc/named.conf-1-november-2002

options {

directory "/var/named";

// listen-on { 172.21.4.5; };

pid-file "/etc/named.pid";

// auth-nxdomain yes;

};

//key rndc {

// algorithm hmac-md5 ;

// secret "I+sFqdOXbs4nUYHAuGqsuKa7VpXLdC6O1XxjGD+LmiM=";

//};

//controls {

// inet 172.21.4.2 allow { 172.21.4.2; } keys { rndc; };

//};

zone "0.0.127.in-addr.arpa" in {

type master;

file "db.127.0.0";

};

zone "172.in-addr.arpa" {

type slave;

file "db.172.slave";

masters {

172.21.4.8;

};
};

zone "mnc011.mcc510.gprs" {

type slave;

file "db.mnc011.mcc510.slave";

masters {

172.21.4.8;

};
};

gsnsvrjkt1 /etc :

---------------------------------------------------------------------------

Below is my db.172.slave data.

---------------------------------------------------------------------------

gsnsvrjkt1 /var/named :more db.172.slave

; BIND version in.named LOCAL-010626.16:52:14 Tue Jun 26 16:52:14 PDT 2001

; BIND version Generic Patch-5.8-June 2001

; zone '172.in-addr.arpa' first transfer

; from 172.21.4.8:53 (local 172.21.4.5) using AXFR at Tue Jul 22 10:44:57

2003

$ORIGIN in-addr.arpa.

172 86400 IN SOA dns1.mnc011.mcc510.gprs.

admin.dns1.mnc011.mcc510.gprs. (

2003072201 10800 3600 604800 86400 )

86400 IN NS dns1.mnc011.mcc510.gprs.

$ORIGIN 5.16.172.in-addr.arpa.

66 86400 IN PTR ncb1.mnc011.mcc510.gprs.

$ORIGIN 2.21.172.in-addr.arpa.

1 86400 IN PTR sgsnjkt1.mnc011.mcc510.gprs.

$ORIGIN 4.21.172.in-addr.arpa.

10 86400 IN PTR ppp_server.mnc011.mcc510.gprs.

6 86400 IN PTR gprsws.mnc011.mcc510.gprs.

8 86400 IN PTR dns1.mnc011.mcc510.gprs.

11 86400 IN PTR ppp_client1.mnc011.mcc510.gprs.

7 86400 IN PTR ntp1.mnc011.mcc510.gprs.

5 86400 IN PTR gsnsvrjkt1.mnc011.mcc510.gprs.

$ORIGIN 3.21.172.in-addr.arpa.

2 86400 IN PTR gsn1GnR2.mnc011.mcc510.gprs.

1 86400 IN PTR gsn1GnR1.mnc011.mcc510.gprs.

gsnsvrjkt1 /var/named :

---------------------------------------------------------------------------

Below is my db.mnc011.mcc510.slave.

---------------------------------------------------------------------------

gsnsvrjkt1 /var/named :cat db.mnc011.mcc510.slave

; BIND version in.named LOCAL-010626.16:52:14 Tue Jun 26 16:52:14 PDT 2001

; BIND version Generic Patch-5.8-June 2001

; zone 'mnc011.mcc510.gprs' first transfer

; from 172.21.4.8:53 (local 172.21.4.5) using AXFR at Tue Jul 22 10:44:57

2003

$ORIGIN mcc510.gprs.

mnc011 86400 IN SOA dns1.mnc011.mcc510.gprs.

admin.dns1.mnc011.mcc510.gprs. (

2003072201 10800 3600 604800 86400 )

86400 IN NS dns1.mnc011.mcc510.gprs.

$ORIGIN mnc011.mcc510.gprs.

dns1 86400 IN A 172.21.4.8

gprsws 86400 IN A 172.21.4.6

ncb1 86400 IN A 172.16.5.66

gsn1 86400 IN CNAME sgsnjkt1.mnc011.mcc510.gprs.

gsn1GnR1 86400 IN A 172.21.3.2

sgsnjkt1 86400 IN A 172.21.2.1

gsn1GnR2 86400 IN A 172.21.9.2

v120 86400 IN CNAME dns1.mnc011.mcc510.gprs.

localhost 86400 IN A 127.0.0.1

$ORIGIN xlmms.net.mnc011.mcc510.gprs.

www 86400 IN A 202.152.240.25

$ORIGIN xlgprs.net.mnc011.mcc510.gprs.

camel-2 86400 IN A 202.152.240.25

caltex 86400 IN A 202.152.240.25

camel-1 86400 IN A 202.152.240.120

www 86400 IN A 202.152.240.25

$ORIGIN mnc011.mcc510.gprs.

gsnsvrjkt1 86400 IN A 172.21.4.5

gsnsvrjkt1 /var/named :

gsnsvrjkt1 /var/named :

gsnsvrjkt1 /var/named :cat db.172.slave

; BIND version in.named LOCAL-010626.16:52:14 Tue Jun 26 16:52:14 PDT 2001

; BIND version Generic Patch-5.8-June 2001

; zone '172.in-addr.arpa' first transfer

; from 172.21.4.8:53 (local 172.21.4.5) using AXFR at Tue Jul 22 10:44:57

2003

$ORIGIN in-addr.arpa.

172 86400 IN SOA dns1.mnc011.mcc510.gprs.

admin.dns1.mnc011.mcc510.gprs. (

2003072201 10800 3600 604800 86400 )

86400 IN NS dns1.mnc011.mcc510.gprs.

$ORIGIN 5.16.172.in-addr.arpa.

66 86400 IN PTR ncb1.mnc011.mcc510.gprs.

$ORIGIN 2.21.172.in-addr.arpa.

1 86400 IN PTR sgsnjkt1.mnc011.mcc510.gprs.

$ORIGIN 4.21.172.in-addr.arpa.

10 86400 IN PTR ppp_server.mnc011.mcc510.gprs.

6 86400 IN PTR gprsws.mnc011.mcc510.gprs.

8 86400 IN PTR dns1.mnc011.mcc510.gprs.

11 86400 IN PTR ppp_client1.mnc011.mcc510.gprs.

7 86400 IN PTR ntp1.mnc011.mcc510.gprs.

5 86400 IN PTR gsnsvrjkt1.mnc011.mcc510.gprs.

$ORIGIN 3.21.172.in-addr.arpa.

2 86400 IN PTR gsn1GnR2.mnc011.mcc510.gprs.

1 86400 IN PTR gsn1GnR1.mnc011.mcc510.gprs.

gsnsvrjkt1 /var/named :

Best Regards

Yuki

 
 
 

1. It's not bad canned meat...

Thanks for your time.  We at I.S.P.O.T. (The International Society
for the Preservation Of Trees (URL http://www.local-touch.com/ISPOT/)) feel
that electronic messages are great for getting the word out while preserving
our friend the tree.  Anyway, please stop by our home page!

Thanks again!

SusieQ

2. strange tail -f problem...

3. Diamond Stealth Pro VLB 1mb and Xfree 2.1 -- HELP!

4. PLEASE HELP: PING, DNS AND NSLOOKUP - NSLOOKUP GOOD PING BAD

5. NFS efficiency of linux(client) and freebsd(server)?

6. RH50 nslookup IP doesn't match ISP nslookup ip??!?

7. Spea P64 VLB - XF86 probs

8. NSLookup and DIG using a regular Dos prompt?

9. nslookup doing a reverse lookup of nameserver ??

10. How do you boot DOS not typing dos?

11. nslookup not resolving

12. nslookup is not working