nslookup problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users nslookup problem
# 1  
Old 03-22-2006
nslookup problem

I am having trouble configuring BIND 8.3 on Solaris 9. When I run nslookup, I get this error/message:

test# nslookup
*** Can't find server name for address 192.168.1.31: Non-existent host/domain
*** Default servers are not available

I double checked everything and I can't figure this out. I checked my /etc/resolv.conf
and my db file's (db.192.168.1) PTR entry. All seems well. I only have one entry in there
(hostname of the DNS server I'm trying to configure). I think named is able to check
my /etc/resolv.conf's nameserver entry to look for 192.168.1.31, but my db or zone files
were not able to provide it with a name server. Plus I have not entered any clients
to resolve to this DNS server.

FYI: I copied the configuration files from a functioning DNS server to this problem machine.
They are identical in OS verions and BIND version.
I also made think I made the appropriate changes to accomodate configuration of this machine.

Please help me.

Here are my configs:

test# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.31 netmask ffffff00 broadcast 192.168.1.255
ether x:x:xx:xx:xx:xx

*****************************************

test# more /etc/inet/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.31 test test.test.com loghost

*****************************************


/etc/resolv.conf:

test# more /etc/resolv.conf
domain test.com
nameserver 192.168.1.31

***************************************

/etc/named.conf:

options {
directory "/var/named";
};
zone "test.com" in {
type master;
file "db.test.com";
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "db.192.168.1";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "loopback";
};
zone "." in {
type hint;
file "db.cache";


****************************************

/var/named/db.192.168.1

test# more db.192.168.1
@ IN SOA test.test.com. root.test.test.com. (
2; Serial number
7200; Refresh timer
3600; Retry timer
604800; Expire after one week
86400; Minimum timer 1 day
)

IN NS test.test.com.

1 IN PTR test.test.com.

****************************************************

/var/named/db.test.com:

@ IN SOA test.test.com. root.test.test.com. (
1; Serial number
7200; Refresh timer
3600; Retry timer
604800; Expire after one week
86400; Minimum timer 1 day
)

IN NS test.test.com.
test.com. IN A 192.168.1.31

localhost IN A 127.0.0.1
test IN A 192.168.1.31

******************************************************

/var/named/loopback:

@ IN SOA test.test.com. root.test.test.com. (
1; Serial number
24h; Refresh timer
2h; Retry timer
30d; Expire
4d; Minimum timer
)

IN NS test.test.com.

0.0.127.in-addr.arpa. IN PTR localhost.


*******************************************************

Here is what I'm getting on my messages file:

/var/adm/messages:

Mar 22 08:53:05 test named[802]: [ID 295310 daemon.notice] starting (/etc/named.conf). in.named BIND 8.3.3 Fri Sep 23 11:36:54 PDT 2005
Mar 22 08:53:05 test Generic Patch-5.9-May 2002
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.warning] Zone "test.com" (file db.test.com): No default
TTL ($TTL <value>) set, using SOA minimum instead
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] master zone "test.com" (IN) loaded (serial 1)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.warning] Zone "1.168.192.in-addr.arpa" (file db.192.168.1): No default
TTL ($TTL <value>) set, using SOA minimum instead
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] master zone "1.168.192.in-addr.arpa" (IN) loaded (serial 2)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.warning] Zone "0.0.127.in-addr.arpa" (file loopback): No default TTL
($TTL <value>) set, using SOA minimum instead
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] master zone "0.0.127.in-addr.arpa" (IN) loaded (serial 1)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] hint zone "" (IN) loaded (serial 0)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] listening on [127.0.0.1].53 (lo0)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] listening on [192.168.1.31].53 (ce0)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] Forwarding source address is [0.0.0.0].32843
Mar 22 08:53:05 test named[822]: [ID 295310 daemon.notice] Ready to answer queries.
Edit/Delete Message

Last edited by xnightcrawl; 05-01-2006 at 06:29 PM.. Reason: private info
# 2  
Old 03-22-2006
I also ran dig:

test# dig nserver

; <<>> DiG 8.3 <<>> nserver
;; res options: init recurs defnam dnsrch
;; res_nsend to server default -- 192.168.1.31: Connection timed out

Last edited by xnightcrawl; 05-01-2006 at 06:29 PM..
# 3  
Old 03-22-2006
dig/nslookup update:

test# dig nserver

; <<>> DiG 8.3 <<>> nserver
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; QUERY SECTION:
;; nserver, type = A, class = IN

;; AUTHORITY SECTION:
. 5w6d16h IN NS A.ROOT-SERVERS.NET.
. 5w6d16h IN NS B.ROOT-SERVERS.NET.
. 5w6d16h IN NS C.ROOT-SERVERS.NET.
. 5w6d16h IN NS D.ROOT-SERVERS.NET.
. 5w6d16h IN NS E.ROOT-SERVERS.NET.
. 5w6d16h IN NS F.ROOT-SERVERS.NET.
. 5w6d16h IN NS G.ROOT-SERVERS.NET.
. 5w6d16h IN NS H.ROOT-SERVERS.NET.
. 5w6d16h IN NS I.ROOT-SERVERS.NET.
. 5w6d16h IN NS J.ROOT-SERVERS.NET.
. 5w6d16h IN NS K.ROOT-SERVERS.NET.
. 5w6d16h IN NS L.ROOT-SERVERS.NET.
. 5w6d16h IN NS M.ROOT-SERVERS.NET.

;; Total query time: 12 msec
;; FROM: xpresstest to SERVER: default -- 192.168.31
;; WHEN: Wed Mar 22 12:16:40 2006
;; MSG SIZE sent: 25 rcvd: 236

test# nslookup
*** Can't find server name for address 192.168.1.31: Non-existent host/domain
*** Default servers are not available

Last edited by xnightcrawl; 05-01-2006 at 06:30 PM.. Reason: private info
# 4  
Old 03-22-2006
Quote:
/var/named/db.10.10.10

test# more db.10.10.10
@ IN SOA test.xpresstest.com. root.test.xpresstest.com. (
2; Serial number
7200; Refresh timer
3600; Retry timer
604800; Expire after one week
86400; Minimum timer 1 day
)

IN NS test.xpresstest.com.

1 IN PTR test.xpresstest.com.
Unless this is a mis-typed entry on this thread, your issue is that you have test.xpresstest.com IP as 10.10.10.1 instead of 10.10.10.31 in your db.10.10.10 file.
# 5  
Old 03-22-2006
db.192.168.1

that is the zone file. Smilie

Last edited by xnightcrawl; 05-01-2006 at 06:32 PM..
# 6  
Old 03-22-2006
messages

Is this normal:

Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] listening on [127.0.0.1].53 (lo0)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] listening on [192.168.1.31].53 (ce0)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] Forwarding source address is [0.0.0.0].32843

Last edited by xnightcrawl; 05-01-2006 at 06:33 PM..
# 7  
Old 03-22-2006
Quote:
that is the zone file.
Great. Now go and look at it and if it actually has the following, then it's wrong.

1 IN PTR test.xpresstest.com.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk nslookup

Hi, I have a rather simple awk statement to perform an nslookup on a file (list of IPs). If the lookup yields a result, then it sends it to a file. If no result, there is no output. I've been trying to use !NR or !NF with an if statement to make the output state "NA" if there is no result,... (5 Replies)
Discussion started by: umang2382
5 Replies

2. Shell Programming and Scripting

nslookup hanging

Hey folks. Long time lurker, first time poster. I'm a bit of a newbie at "coding" (obviously, scripting is a teensy bit different than coding) and I've run into a problem that I just can't seem to get around. I'm going through a list of servers to check their name, IP, reverse-NSLOOKUP name and... (2 Replies)
Discussion started by: Bearwhale
2 Replies

3. Solaris

nslookup command

hi, I am new in Solaris 10 , i am installing a software in solaris 10, while performing pre requisite nslookup command should return without error, and the IP address and host should match those listed in the etc/hosts file, but nslookup command show the below error , can anybody tell me how i... (4 Replies)
Discussion started by: zeeshan047
4 Replies

4. HP-UX

nslookup/ping resolve problem 11i v3

I am having a problem with a new server build that has got me completely baffled. This server has a private back end network so the way it is supposed to work is that the server thinks its ip address is 10.131.0.48 but the rest of the world knows it as 199.68.100.100 per DNS. It has to be this way... (2 Replies)
Discussion started by: keelba
2 Replies

5. Emergency UNIX and Linux Support

Nslookup!!! Please look up!!!

Hi all Nslookup command returns!!!! Code: nslookup 10.91.44.29 Server: 127.0.0.1 Address: 127.0.0.1#53 29.44.91.in-addr.arpa name = station1.example.com Code: nslookup station1.example.com Server: 127.0.0.1 Address: 127.0.0.1#53 Name: ... (4 Replies)
Discussion started by: anishkumarv
4 Replies

6. Shell Programming and Scripting

nslookup: am I doing it right?

Hi guys, I'm back to get some help again :) I have a file that has a list of IP addresses, and I use nslookup in my script to resolve hostnames of those IPs. the problem I'm facing is that I not all the hostnames got resolved! and I don't know why. sometimes the same duplicate IP returns a... (8 Replies)
Discussion started by: Abdulelah
8 Replies

7. Solaris

Further nslookup options if any !!

Hi , I have a requirement to find the aliases by doing an nslookup on the Cname. If i do an nslookup on the alias name i get the Cname , but i need the cname from alias name. eg: Hostname = acb.example.com Virtual name= abcvirtual.example.com nslookup abcvirtual.example.com will... (3 Replies)
Discussion started by: mpics66
3 Replies

8. Shell Programming and Scripting

nslookup output

Hi All, If I give the hostname followed by nslookup, I get the output like below, commandprompt>nslookup efgh Using /etc/hosts on: xyz looking up FILES Trying DNS Non-authoritative answer: Name: abcd Address: 47.47.47.47 Aliases: efgh I am not sure on the bolded ones. Can... (4 Replies)
Discussion started by: Rajakct84
4 Replies

9. IP Networking

nslookup strangness

hi, what would cause the nslookup to work one way but not the other? for most machine it works both ways. >nslookup 172.18.10.235 Server: 172.16.17.3 Address: 172.16.17.3#53 235.10.18.172.in-addr.arpa name = machine1.prod.local >nslookup machine1 Server: ... (3 Replies)
Discussion started by: purest
3 Replies

10. Solaris

I am too young not to be able to resolve myself...nslookup problem (no DNS available)

I don't have DNS, and would like to resolve EVERYTHING through local /etc/hosts file. My first sunbox has the following configuration: # hostname mybox.home.com My host file is as follows: # cat /etc/hosts # # Internet host table # 127.0.0.1 localhost 192.25.x.x ... (6 Replies)
Discussion started by: mr_manny
6 Replies
Login or Register to Ask a Question