Solved

NAMED won't start CentOS 5.1 (BIND 9.x)

Posted on 2014-04-22
12
321 Views
Last Modified: 2014-05-09
Hi Folks

I have been running a very old version of RedHat as a DNS server for our organisation but it's been showing signs of age lately, so built a box using CentOS 5.1 and rsynced all  the zone files to the new server.

When I try to start named with service named start I get
Error in configuration followed by a list of all zone files and then FAILED

named.conf is in /etc/
zone files are all in /var/named/

There is no hint as to what could be causing the error - i.e. it just says Error in configuration but this is not followed by anything which clarifies the error.

Can anyone help me with this please?

Cheers
Chris
0
Comment
Question by:kenwardc
  • 6
  • 5
12 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 40016793
yo may use tools / commands like

named-checkconf
named-checkzone

please see link below on how to use

http://tecadmin.net/check-dns-configuration-file-bind/
0
 

Author Comment

by:kenwardc
ID: 40018543
How would I tell whether BIND is running as CHROOT or CACHED?

I have done the tests above and they come up clean.

Cheers
Chris
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 40018668
look into named.conf
0
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:kenwardc
ID: 40018746
omafarid could you be a little more specific?

Cheers
Chris
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40019291
For building chroot BIND, please see link below

http://www.ehowstuff.com/how-to-setup-bind-chroot-dns-server-on-centos-6-3-x86_64/

A caching DNS server is basically a DNS server that does not serve particular domain or zone. It forward all DNS inquires it receives to other DNS servers and get responses from them and back to client. Caching DNS server will then cache resolved inquires for some time (based on TTL of each).

Please see link below on how to set caching DNS server:

http://blog.chriscarini.com/2011/07/setting-up-caching-only-dns-server.html
0
 
LVL 62

Expert Comment

by:gheist
ID: 40020071
In Centos5 you must bump up to bind97 to suport DNSSEC
Namely bind97-chroot is fully configured chrooted bind, no need to compile anything at all
Check mount -> if you have /var/named/chroot mentioned you have it chrooted.
0
 

Author Comment

by:kenwardc
ID: 40023696
Hi Everyone

I found the issue - one of the 11,000 zone files had a ":" in it at the beginning of a line. The older version of BIND didn't appear to mind but the new version didn't like it and failed to load.

Thanks for your efforts to get me straight - really appreciate it.

Kind regards
Chis
0
 

Author Comment

by:kenwardc
ID: 40053908
I've requested that this question be closed as follows:

Accepted answer: 0 points for kenwardc's comment #a40018746

for the following reason:

Omafarid's comment to look in the named.conf file got me searching the file for errors. I found the error - it was a colon ":" placed in error at the beginning of a line. BIND 9.x doesn't like that much. When I took the colon away the service started just fine.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40053909
Since my comment let you find error in the named.conf then I provided you the solution or took you in that direction and hence I should get the points!
0
 

Author Comment

by:kenwardc
ID: 40054044
I agree - I did accept your solution as the one but it seems the site hasn't updated that. Will try again.
0
 

Author Comment

by:kenwardc
ID: 40054046
DONE! Thanks, Omarfarid! All the best.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 40054058
Welcome :)
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux patching 4 74
Expand a partition in Centos 7 Linux with Virtualmin 1 73
liboauth-php x oauth-1.2.3 3 97
Installing VirtualBox in Fedora 25 Linux 2 803
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question