named stopped suddenly and wont start. Help

gunemalli

Verified User
Joined
Jul 22, 2009
Messages
86
Location
Sheffield, UK
Hey folks,

I just ran into a problem. As mentioned named stopped suddenly & when i tried to restart i got the following errors:

#service named start
Starting named:
Error in named configuration:
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700

dns_master_load: /var/named/chameleonlk.com.db:30: mail.chameleonlk.com: CNAME and other data
zone chameleonlk.com/IN: loading master file /var/named/chameleonlk.com.db: CNAME and other data
_default/chameleonlk.com/IN: CNAME and other data
zone samanala.net/IN: loaded serial 2010100310

[FAILED]

All the other domains started without any problems. what could be the problem.
 
i currently have the following in the messages log:

Oct 6 21:50:29 srv named[1937]: the working directory is not writable
Oct 6 21:50:29 srv named[1937]: dns_master_load: /var/named/chameleonlk.com.db:30: mail.chameleonlk.com: CNAME and other data
Oct 6 21:50:29 srv named[1937]: zone chameleonlk.com/IN: loading master file /var/named/chameleonlk.com.db: CNAME and other data

What permission is this telling me about?
 
The working directory is not writable is normal.

What does this file look like:

/var/named/chameleonlk.com.db

There is probably an error on one line.
 
As it is except for the IP change.

Thanks
Code:
$TTL 14400
@       IN      SOA     ns25.domaincontrol.com.      root.chameleonlk.com. (
                                                2010100311
                                                14400
                                                3600
                                                1209600
                                                86400 )

chameleonlk.com.    14400    IN    NS    ns25.domaincontrol.com.
chameleonlk.com.    14400    IN    NS    ns26.domaincontrol.com.

chameleonlk.com.    14400    IN    A    1.2.3.4
ftp    14400    IN    A    1.2.3.4
localhost    14400    IN    A    127.0.0.1
localhost.chameleonlk.com.    14400    IN    A    127.0.0.1
studio    14400    IN    A    1.2.3.4
www    14400    IN    A    1.2.3.4
www.studio    14400    IN    A    1.2.3.4

chameleonlk.com.    14400    IN    MX    20 alt1.aspmx.l.google.com.
chameleonlk.com.    14400    IN    MX    30 alt2.aspmx.l.google.com.
chameleonlk.com.    14400    IN    MX    10 aspmx.l.google.com.
chameleonlk.com.    14400    IN    MX    40 aspmx2.googlemail.com.
chameleonlk.com.    14400    IN    MX    50 aspmx3.googlemail.com.

imap    14400    IN    CNAME    imap.gmail.com.
mail    14400    IN    CNAME    ghs.google.com.
mail.chameleonlk.com.    14400    IN    CNAME    ghs.google.com.
pop    14400    IN    CNAME    pop.gmail.com.
smtp    14400    IN    CNAME    smtp.gmail.com.


chameleonlk.com.    14400    IN    TXT    "v=spf1 a mx ip4:1.2.3.4 ~all"

It seems the issue is gone. The were two conflicting records i guess. mail in A-record and mail in CNAME. i removed the a-record and everything is working fine now.
 
Last edited:
I would remove this line because it is a duplicate of the line just above it:

mail.chameleonlk.com. 14400 IN CNAME ghs.google.com.

Also you might need to change the serial up top:

From:

2010100311

To:

2010100701

Then type: rndc reload
 
The bottom line is that you can't have both a CNAME record and any other record for the same identifier.

And a duplicate CNAME record counts as another record.

Jeff
 
Back
Top