Unix Technical Forum

DNS problem

This is a discussion on DNS problem within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hej, We are trying to set up an internal DNS where a dns lookup will give us 2 ip-addresses ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:58 AM
Johan Abrahamsson
 
Posts: n/a
Default DNS problem

Hej,

We are trying to set up an internal DNS where a dns lookup will give us
2 ip-addresses back.
We have created a directory /var/named and put 3 files there. The files
are called
1) domain-info, contains:
$ORIGIN domain.se.
localhost 86400 IN A 127.0.0.1
clustertest 86400 IN A 136.225.122.112
86400 IN A 136.225.122.206

2) loopback-domain-info, contains:
@ IN SOA hostname.domain.se. root.domain.se. (

12345;
43200;
3600;
604800;
86400;
)

IN NS hostname.domain.se. ; secondary
1 IN PTR localhost.domain.se.

3) named.root, contains:
.. IN NS hostname.domain.se.
hostname.domain.se. IN A 136.225.122.112

We have also changed the resolv.conf file so it looks like this:
search domain.se
nameserver 127.0.0.1

The last file we have changed is the /etc/named.conf file and it looks
like this:
options {
DIRECTORY "/var/named";
};
zone "." in {
type hint;
file "named.root";
};
zone "domain.se" in {
type slave;
file "domain-info";
masters {
136.225.122.112;
};
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "loopback-domain-info";
};

After these changes in.named was restarted. This worked in solaris 8
where the bind version was 8.2.2.
However in solaris 9 the bind version in 8.3.3 and we can't get it to
work anymore.

This is the errors we reveive in the /var/adm/mesasges


Oct 26 09:40:32 lu10-8 named[12189]: [ID 295310 daemon.notice] starting
(/etc/named.conf). in.named BIND 8.3.3 Wed Feb 18 23:46:02 PST 2004
Oct 26 09:40:32 lu10-8 Generic Patch-5.9-May 2002
Oct 26 09:40:32 lu10-8 named[12189]: [ID 295310 daemon.warning] Zone
"domain.se" (file domain-info): no SOA RR found
Oct 26 09:40:32 lu10-8 named[12189]: [ID 295310 daemon.error] slave zone
"domain.se" (IN) rejected due to errors (serial 0)
Oct 26 09:40:32 lu10-8 named[12189]: [ID 295310 daemon.warning] Zone
"0.0.127.in-addr.arpa" (file loopback-domain-info): No default TTL ($TTL
<value>) set, usin
g SOA minimum instead
Oct 26 09:40:32 lu10-8 named[12190]: [ID 295310 daemon.notice] Ready to
answer queries.
Oct 26 09:40:32 lu10-8 named-xfer[12191]: [ID 826191 daemon.notice]
[136.225.122.112] not authoritative for domain.se, SOA query got rcode
0, aa 0, ancoun
t 0, aucount 1

What modifications are needed to get this to work in Solaris 9?

Best regards,
Johan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:58 AM
Michael Tosch
 
Posts: n/a
Default Re: DNS problem

Add a $TTL in front of your loopback-domain-info file,
e.g.

$TTL 14400 ; (4 hours)
@ IN SOA hostname.domain.se. root.domain.se. (
12345;
43200;
3600;
604800;
86400;
)
....

Also avoid an empty line, and use TABs only (not spaces,
as I did).
Have the SOA serial number (12345) increased each time you
update a record.

--
Michael Tosch
IT Specialist
HP Managed Services
Technology Solutions Group
Hewlett-Packard GmbH
Phone: +49 2407 575 313
Mail: michael.tosch:hp.com


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:35 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com