cannot config DNS - getting Server Failed error

isolated LAN.

putting primary DNS server on Solaris 8 box with hostname of ptm_sesm:

# uname -a

SunOS ptm_sesm 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-80

right now I'm just using a couple of simplified files, in hopes of getting forward queries going first.

#

# /usr/local/sbin/named

#

# ps -ef | grep named

root 15617 1475 0 13:45:02 pts/10:00 grep named

root 154791 0 13:44:57 ?0:00 /usr/local/sbin/named

#

# /usr/local/sbin/named -v

named 8.3.1-REL Sun May 5 05:40:22 EDT 2002

steve@solaris:/usr2/SOURCES/S8/BIND/src/bin/named

#

#

# cat /usr/local/etc/named.conf

options {

directory "/var/named";

};

zone "itn3att" {

type master;

file "db.itn3att";

};

#

#

# more /var/named/db.itn3att

; Name Servers

itn3att.IN NS ptm_sesm.itn3att.

; Addresses

localhostIN A 127.0.0.1

ptm_sesmIN A 10.0.0.103

pmdm-01IN A 10.0.0.110

wkstation118 IN A 10.0.0.118

iems IN A 10.0.0.107

wkstation119 IN A 10.0.0.119

#

#

#

# nslookup ptm_sesm

Server: ptm_sesm

Address: 0.0.0.0

*** ptm_sesm can't find ptm_sesm: Server failed

#

#

# more /etc/resolv.conf

domain itn3att

nameserver 0.0.0.0

#

nsswitch.conf >> hosts:files dns

===================================

From a DNS client:

#

# hostname

wkstation118

#

# nslookup ptm_sesm

*** Can't find server name for address 10.0.0.103: Server failed

*** Default servers are not available

#

# more resolv.conf

domain itn3att

nameserver 10.0.0.103

#

Have never setup DNS before!! Any ideas appreciated.

thanks,

Chris

[2586 byte] By [chris_cooney] at [2007-11-25 22:41:17]
# 1
Underscores are strictly forbidden in hostnames - at least with DNS software that tries to adhere to the RFCs: like bind. Mark
mdhmi at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 2

#

# hostname

ptm

#

# more /var/named/db.itn3att

; Name Servers

itn3att.IN NS ptm.itn3att.

; Addresses

localhostIN A 127.0.0.1

ptmIN A 10.0.0.103

pmdm-01IN A 10.0.0.110

wkstation118 IN A 10.0.0.118

iems IN A 10.0.0.107

wkstation119 IN A 10.0.0.119

#

# nslookup ptm

Server: ptm

Address: 0.0.0.0

*** ptm can't find ptm: Server failed

#

# nslookup pmdm-01

Server: ptm

Address: 0.0.0.0

*** ptm can't find pmdm-01: Server failed

#

chris_cooney at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 3
What is the error? look at your /var/adm/messages file for that error... Thanks, Angel
Angel at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 4

Mark and Angel. THANKS! It's working now.

Looking at /var/adm/messages helped out a lot. The underscore definitely wasn't liked. I also needed to add a SOA record to the hosts file.

Then, to get queries on clients going, I had to setup the reverse zone.

Thanks again,

Chris

chris_cooney at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 5
What exactly did you do to configure the DNS? I'm having similar problems.
configman at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 6

on DNS server:

#

# hostname

ptm

#

# cat /usr/local/etc/named.conf

options {

directory "/var/named";

};

zone "itn3att" {

type master;

file "db.itn3att";

};

zone "0.0.10.in-addr.arpa" {

type master;

file "itn3att.rev";

};

zone "0.0.127.in-addr.arpa" {

type master;

file "named.local";

};

#

# cat /var/named/db.itn3att

itn3att. IN SOA ptm.itn3att. root.ptm.itn3att. (

1;serial number

10800 ;refresh

3600;retry

604800 ;expire

86400) ;TTL

; Name Servers

itn3att.IN NS ptm.itn3att.

; Addresses

localhostIN A 127.0.0.1

ptmIN A 10.0.0.103

pmdm-01IN A 10.0.0.110

wkstation118 IN A 10.0.0.118

iems IN A 10.0.0.107

wkstation119 IN A 10.0.0.119

#

# cat /var/named/itn3att.rev

0.0.10.in-addr.arpa. IN SOA ptm.itn3att. root.ptm.itn3att. (

1;serial number

10800 ;refresh

3600 ;retry

604800 ;expire

86400) ;TTL

; Name Servers

0.0.10.in-addr.arpa. IN NS ptm.itn3att.

; pointer records for 10.0.0.96

103IN PTR ptm.itn3att.

110IN PTR pmdm-01.itn3att.

118IN PTR wkstation118.itn3att.

107IN PTR iems.itn3att.

119IN PTR wkstation119.itn3att.

#

# cat /var/named/named.local

0.0.127.in-addr.arpa. IN SOA ptm.itn3att. root.ptm.itn3att. (

1;serial number

10800;refresh

3600;retry

604800 ;expire

86400) ;TTL

0.0.127.in-addr.arpa.IN NS ptm.itn3att.

1IN PTR localhost.

#

# cat /etc/resolv.conf

domain itn3att

nameserver 0.0.0.0

#

==================

on DNS client:

#

# hostname

pmdm-01

#

# cat /etc/resolv.conf

domain itn3att

nameserver 10.0.0.103

#

chris_cooney at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...
# 7
Thanks! This concise explanation fixed my problems too! A slice of raisin pie in your direction...
Red at 2007-7-5 14:17:49 > top of Java-index,General,Sun Networking Services and Protocols...