LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2009, 12:32 AM   #1
neoform
Member
 
Registered: Apr 2009
Posts: 41

Rep: Reputation: 15
Yum Update On BIND Killed It


I just ran a yum update that bumped BIND up to version 30:9.3.4-10.P1.el5_3.1 and immediately afterwards I noticed BIND wasn't working anymore. I tried starting/restarting it but it keeps failing without really giving an error.

Code:
[root@ns1 run]# service named start
Starting named: 
Error in named configuration:
zone xxx.com/IN: loaded serial 2009051401
zone xxx.com/IN: loaded serial 2009061500
zone xxx.net/IN: loaded serial 2009051301
zone xxx.com/IN: loaded serial 2009051400
zone xxx.com/IN: loaded serial 2009051401
zone xxx.com/IN: loaded serial 2009051400
zone xxx.com/IN: loaded serial 2009051400
zone xxx.net/IN: loaded serial 2009051400
zone xxx.com/IN: loaded serial 2009051401
zone xxx.com/IN: loaded serial 2009051401
zone xxx.net/IN: loaded serial 2009051401
zone xxx.org/IN: loaded serial 2009051401
dns_master_load: xxx.org.db:25: mail.xxx.org: CNAME and other data
zone xxx.org/IN: loading master file xxx.org.db: CNAME and other data
_default/xxx.org/IN: CNAME and other data
zone xxx.ca/IN: loaded serial 2009051502
zone xxx.ca/IN: loaded serial 2009051401
zone xxx.ca/IN: loaded serial 2009051400
zone xxx.ca/IN: loaded serial 2009051300
zone xxx.ca/IN: loaded serial 2009051401
zone xxx.ca/IN: loaded serial 2009051400
zone xxx.ca/IN: loaded serial 2009051400
zone xxx.ca/IN: loaded serial 2009051400
zone xxx.ca/IN: loaded serial 2009051400
                                                           [FAILED]
When I run: named-checkconf /etc/named.conf I get no errors. What's the deal..? :S
 
Old 07-09-2009, 02:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
zone xxx.com/IN: loaded serial 2009051401
zone xxx.com/IN: loaded serial 2009061500
...
How comes a zone is loaded with 2 different serials? Or they are different zones?
And the "-z" option in named-checkconf and If you're running named chrooted use this:
Code:
named-checkconf -z -t /path/to/chroot/named
 
Old 07-09-2009, 07:08 AM   #3
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
I renamed all the zones (i didn't really wanna publish my full domain list..

[root@ns1 ~]# named-checkconf -z -t /path/to/chroot/named

isc_dir_chroot: file not found
 
Old 07-09-2009, 07:21 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
First you must review your installation, to see if bind runs chrooted. Usually it does.
Then you should replace /path/to/chroot/named with the actual chroot path. If you don't know it, check the named startup file.
If it isn't running chrooted use just "named-checkconf -z"
 
Old 07-09-2009, 07:28 AM   #5
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
I don't believe I am running it chrooted (then again I'm not entirely sure how to check).

Also, when I run "named-checkconf -z" I get the same list of very nondescript 'errors'(?) as I pasted above in the OP. :S
 
Old 07-09-2009, 07:36 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Could you post the offending zone file?
Or use named-checkzone to check it yourself.
 
Old 07-09-2009, 08:11 AM   #7
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
$TTL 3600

@       IN      SOA     @      root (
                        2009051400      ; serial number YYMMDDNN
                        2H              ; refresh
                        10M             ; retry
                        14D              ; expiry
                        1H)              ; minimum


        NS      ns1.mynameserver.com.
        NS      ns2.mynameserver.com.
        NS      ns3.mynameserver.com.

        A       45.228.129.156
www     A       45.228.129.156
error on that file is:

Code:
[root@ns1 ~]# named-checkconf /var/named/xxx.net.db
/var/named/xxx.net.db:1: unknown option '$TTL'
/var/named/xxx.net.db:4: unknown option 'serial'
/var/named/xxx.net.db:5: unknown option 'refresh'
/var/named/xxx.net.db:6: unknown option 'retry'
/var/named/xxx.net.db:7: unknown option 'expiry'
/var/named/xxx.net.db:8: unknown option 'minimum'
/var/named/xxx.net.db:21: unexpected token near end of file
 
Old 07-09-2009, 08:29 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The zone file you've posted does not have any CNAME. The offending zone file is xxx.org.db according to your 1st post. I guess you have used a CNAME without an A record for the real hostname.
Anyway the named-checkzone command is used like this:
Code:
named-checkzone -d -D xxx.org /path/to/zonefile/xxx.org.db
Replace the /path/to/zonefile with the real path.
 
Old 07-09-2009, 08:40 AM   #9
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
I do have zones with CNAMES without an A record, but that's cause I use google for my mail..

Code:
$TTL 3600

@       IN      SOA     ns1.mydomain.com.      neoform (
                        2009051401       ; serial number YYMMDDNN
                        60M              ; refresh
                        10M              ; retry
                        14D              ; expiry
                        1H)              ; minimum

        NS      ns1.mydomain.com.
        NS      ns2.mydomain.com.
        NS      ns3.mydomain.com.

        MX      10      ASPMX.L.GOOGLE.COM.
        MX      20      ALT1.ASPMX.L.GOOGLE.COM.
        MX      20      ALT2.ASPMX.L.GOOGLE.COM.
        MX      30      ASPMX2.GOOGLEMAIL.COM.
        MX      30      ASPMX3.GOOGLEMAIL.COM.
        MX      30      ASPMX4.GOOGLEMAIL.COM.
        MX      30      ASPMX5.GOOGLEMAIL.COM.

        A       45.234.23.123
ns1     A       45.234.23.121
ns2     A       45.234.23.122
ns3     A       45.234.23.123
www     A       45.234.23.123
mail    CNAME   ghs.google.com.

45.234.23.121  PTR     mydomain.com.
45.234.23.122  PTR     ns2.mydomain.com.
 
Old 07-09-2009, 08:43 AM   #10
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
The zone file you've posted does not have any CNAME. The offending zone file is xxx.org.db according to your 1st post. I guess you have used a CNAME without an A record for the real hostname.
Anyway the named-checkzone command is used like this:
Code:
named-checkzone -d -D xxx.org /path/to/zonefile/xxx.org.db
Replace the /path/to/zonefile with the real path.
This is what I get.. (same 'error'.. bleh)

Code:
[root@ns1 ~]# named-checkzone -d -D xxx.org /var/named/xxx.org.db
loading "xxx.org" from "/var/named/xxx.org.db" class "IN"
dns_master_load: /var/named/xxx.org.db:25: mail.xxx.org: CNAME and other data
zone xxx.org/IN: loading master file /var/named/xxx.org.db: CNAME and other data
 
Old 07-09-2009, 08:50 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
mail CNAME ghs.google.com.
You don't need that, but if you think it's necessary use the A record for ghs.google.com.
Code:
mail IN A 74.125.43.121
Note also that the PTR records don't have to be in the forward zone. You need to add a reverse zone for your IPs
 
Old 07-09-2009, 09:24 AM   #12
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Are you sure this is the actual problem? The version of BIND I was running before had no qualms with my configuration at all and this update was a very small version increase..
 
Old 07-09-2009, 09:42 AM   #13
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Wow, that's really weird.. I moved the CNAME record below the A records in that zone and BIND started up properly.....

I wasn't aware CNAME records had to come after A records.. :S
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"yum update" killed my DNS zones on VMware Server 1.0.3 girarde Linux - Server 4 04-20-2009 10:22 PM
Update Bind Not Working Using Yum smeagol2009 Linux - Server 1 04-08-2009 10:48 AM
I Killed Yum. Wheat_Thins Linux - Newbie 4 03-02-2006 12:13 PM
FC4 yum update killed video - dell laptop xlancealotx Linux - Laptop and Netbook 3 09-28-2005 11:04 PM
Logwatch reports SSHD Killed: / Failed to bind: 0.0.0.0 port 22 rioguia Linux - Security 1 08-13-2005 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration