Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS configuration problem

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
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 10.10.10.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.10.10.10) 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 10.10.10.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 10.10.10.31 netmask ffffff00 broadcast 10.10.10.255
ether x:x:xx:xx:xx:xx

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

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

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


/etc/resolv.conf:

test# more /etc/resolv.conf
domain xpresstest.com
nameserver 10.10.10.31

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

/etc/named.conf:

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


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

/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.

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

/var/named/db.xpresstest.com:

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

IN NS test.xpresstest.com.
xpresstest.com. IN A 10.10.10.31

localhost IN A 127.0.0.1
test IN A 10.10.10.31

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

/var/named/loopback:

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

IN NS test.xpresstest.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 "xpresstest.com" (file db.xpresstest.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 "xpresstest.com" (IN) loaded (serial 1)
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.warning] Zone "10.10.10.in-addr.arpa" (file db.10.10.10): No default
TTL ($TTL <value>) set, using SOA minimum instead
Mar 22 08:53:05 test named[802]: [ID 295310 daemon.info] master zone "10.10.10.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 [10.10.10.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.
 
i also rand dig and here is the output:

test# dig nserver

; <<>> DiG 8.3 <<>> nserver
;; res options: init recurs defnam dnsrch
;; res_nsend to server default -- 10.10.10.31: Connection timed out
 
fixed the problem. i had to redo my db.1010.10 file (reverse lookup).

/var/named/db.10.10.10

test# more db.10.10.10
10.10.10.in-addr.arpa 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
)

10.10.10.in-addr.arpa IN NS test.xpresstest.com.

13.10.10.10.in-addr.arpa IN PTR test.xpresstest.com.
 

Wow, thamks for all the debug info.

Does:

nslookup testexpresstest.com 127.0.0.1

work?

Also, give the PID a kill -INT to have it
dump the named db (think it will be in /var/named
in your case).

gene

 
There are various tools you can use, like Webmin that will help you with your entires. Webmin will create the reverse lookup entry for you and you are not stuck editing files by hand which is risky. Plus they will increment your serial number.
 
If you $ORIGIN, you can save some typing

$ORIGIN 10.10.10.in-addr.arpa.
10 IN PTR test.xpresstest.com.

gene
 
thank you again kHz. i well check out webmin. you've always helped me when i have a problem. thank you.

thank you elgrandeperro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top