BIND DNS Server issue on Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris BIND DNS Server issue on Solaris 10
# 1  
Old 11-18-2011
BIND DNS Server issue on Solaris 10

Hi all,
I have some sort of problem with BIND DNS server my environment as follows.

Code:
bash-3.00# cat /etc/release
                       Solaris 10 6/06 s10s_u2wos_09a SPARC
           Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 09 June 2006

bash-3.00# uname -v
Generic_139555-08

bash-3.00# named -v
BIND 9.3.6-P1

A snippet from /etc/named.conf

Code:
bash-3.00# head -35 /etc/named.conf
options {
DIRECTORY "/var/named";
};

logging{
  channel simple_log {
    file "/var/log/named/bind.log" versions 3 size 5m;
    severity error ;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category default{
    simple_log;
  };
};

zone "." in {
type hint;
file "named.root";
};

zone "domain2.TLD.ccTLD" in {
type master;
file "domain2.TLD.ccTLD";
allow-transfer { none; };
};

zone "domain1.TLD.ccTLD" in {
type master;
file "domain-info";
allow-transfer { none; };
};


Zone file for the domain1.TLD.ccTLD
Code:
bash-3.00# cat  /var/named/domain-info
@       IN SOA ns.domain1.TLD.ccTLD. hostmaster.domain1.TLD.ccTLD. (
1       ;Serial number
43200   ;Refresh timer - 12 hours
3600    ;Retry timer - 1 hour
604800  ;Expire timer - 1 week
86400   ;Minimum timer - 1 day
)
domain1.TLD.ccTLD. IN A xxx.xxx.xxx.xxx
domain1.TLD.ccTLD. IN NS   ns.domain1.TLD.ccTLD.  ; primary

www       IN A    xxx.xxx.xxx.xxx
ns           IN A    xxx.xxx.xxx.xxx
mail         IN A    xxx.xxx.xxx.xxx
localhost  IN A    127.0.0.1
domain1.TLD.ccTLD. IN MX 10 mail.domain1.TLD.ccTLD.
domain1.TLD.ccTLD. IN MX 25 mail.mis.domain1.TLD.ccTLD.
mail.domain1.TLD.ccTLD. IN CNAME mail.domain1.TLD.ccTLD.

Zone file for the domain2.TLD.ccTLD
Code:
bash-3.00# cat /var/named/domain2.TLD.ccTLD
$TTL    86400 ; 24 hours could have been written as 24h or 1d
@  IN        SOA ns1.domain2.TLD.ccTLD.     hostmaster.domain2.TLD.ccTLD. (
                              2000401 ; serial
                              3h ; refresh
                              15m ; retry
                              1w ; expire
                              3h ; minimum
                             )
IN  NS     ns1.domain2.TLD.ccTLD. ; in the domain


; server host definitions
ns1     IN  A      xxx.xxx.xxx.xxx  ;name server definition
www   IN  A      xxx.xxx.xxx.xxx  ;web server definition

A snippet from the /var/log/named/bind.log shows the following.
Code:
bash-3.00# tail -1 /var/log/named/bind.log
18-Nov-2011 11:02:40.869 general: error: zone domain2.TLD.ccTLD/IN: has no NS records
bash-3.00#

A snippet from dig output
Code:
bash-3.00# dig domain2.TLD.ccTLD

; <<>> DiG 9.3.6-P1 <<>> domain2.TLD.ccTLD
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 818
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;domain2.TLD.ccTLD.                   IN      A

;; Query time: 2 msec
;; SERVER: xxx.xxx.xxx.xxx#53(xxx.xxx.xxx.xxx)
;; WHEN: Fri Nov 18 11:06:19 2011
;; MSG SIZE  rcvd: 29

Any idea would be a great assist
# 2  
Old 11-18-2011
You'll have to change the line
Code:
IN  NS     ns1.domain2.TLD.ccTLD. ; in the domain

to
Code:
domain2.TLD.ccTLD. IN  NS     ns1.domain2.TLD.ccTLD. ; in the domain

Besides, defining mail.domain1.TLD.ccTLD. as a CNAME for itself is quite strange.
# 3  
Old 11-18-2011
Thanks pludi I didn't notice that and for the CNAME alias it's just a typo neglect it its defined as follows.

Code:
mail.domain2.TLD.ccTLD. IN CNAME webmail.domain2.TLD.ccTLD.

Now I want the primary to allow zone transfer to some slave DNS server .
What do I need exactly ?
# 4  
Old 11-18-2011
New question, new thread please.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to add new Solaris client IP into Solaris 10 DNS server?

Hi, We just built a new Solaris 10 zone. And would like to add it to our DNS server. Its also Solaris 10. Please let me know how can I get the IP resolved using this DNS server. I added entry into zone config file but not working. I did restarted the DNS services. And also added nameserver name... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

2. Ubuntu

Bind dns server zone file

I have a couple of zone conf files for the BIND server. There are some records that contains the "IN" statement and some do not. But anyway this works. So my question is what this "IN" is intended for? Here is the zone file example: ORIGIN . $ttl 60 example.com. IN SOA ... (4 Replies)
Discussion started by: andriesh
4 Replies

3. UNIX for Dummies Questions & Answers

DNS server - /etc/resolv.conf file issue

Hi, Am trying to configure DNS server and trying to keep the information in /etc/resolv.conf file as: search server nameserver 192.168.0.10 when i restart the network service with #service network restart, resolv.conf file is changing as: nameserver 192.168.0.10 search server -... (5 Replies)
Discussion started by: raosr020
5 Replies

4. Solaris

DNS server /var/spool issue

Hello all Currently I am working in a live production environment with 100+ Solaris servers . The environment has one DNS server and one SMTP server. The problem that I am facing since the past 2 months is that the /var/spool/mqueue on my DNS server keeps getting full i.e. mails with name... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

5. Solaris

DNS Bind Upgradation in Solaris 10

Hi All , My current Bind version is BIND 9.6.1 and I want upgrade the same to BIND 9.8.1-P1 ,Can any one provide the steps to do the same ? Solaris Version : 5.10 Generic_144488-11 sun4v sparc Thanks , (0 Replies)
Discussion started by: sandeep.tk
0 Replies

6. IP Networking

Freebsd Bind DNS server - multiple subnets

Hello all, I have configured Freebsd 8.1 Bind DNS as DNS server for intrenal domain and clients on one subnet 192.168.10.0/24 . What do I have to change in zone file and in in-addr.arpa zone file if I have two additional subsets 192.168.20.0/24 and 192.168.30.0/24? Do I have to create another... (0 Replies)
Discussion started by: kreno
0 Replies

7. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

8. Solaris

solaris - BIND / DNS

hi all forgive my ignorance, but when IVe set up DNS Ive put in the various server details in the /etc/resolv.conf and away I go. Suddenly Ive been reading about DNS, and I need to created a /etc/named.conf file. so, my question is this. DNS, what part does the /etc/resolv.conf play in... (3 Replies)
Discussion started by: sbk1972
3 Replies

9. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies
Login or Register to Ask a Question