Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th July 2010, 15:24
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default BIND/DNS will not start named.conf.local file not found

When I log in to the ISPConfig3 web console from my laptop on the same LAN and check the settings under

System --> Server Config --> DNS tab
BIND User : named
BIND Group : named
BIND zonefiles directory : /var/named
BIND named.conf path : /etc/named.conf
: /etc/named.conf.local

The last entry is "/etc/named.conf.local" does not have a label.

After I created the first zone ISPConfig3 did create the file /etc/named.conf.local.

Then when I tried to manually start BIND "/etc/init.d/named start"
I receive the error :

Error in named configuration:
/etc/named.conf:42: open: /etc/named.conf.local: file not found

ISPConfig3 created this file so why can't it find it?

If I cd to /etc and run "ls -l named*" to get a directory listing I get:
-rw-r----- 1 root named 964 Jul 7 08:33 named.conf
-rw-r--r-- 1 root named 964 Jul 7 08:33 named.conf.local
-rw-r--r--. 1 root named 964 Jul 7 08:33 named.iscdlv.key
-rw-r-----. 1 root named 964 Jul 7 08:33 named.rfc1912.zones

Notice the "." at the end of the permissions list.
What does this indicate and is the problem that the "named.conf.local" does not have a "." in the permissions list?

Also, since the ISPConfig3 configuration had the BIND owner and group as "named" I changed the group on the named.* files to "named" and tried to restart named but received the same error, named still will not start.
Reply With Quote
Sponsored Links
  #2  
Old 7th July 2010, 16:30
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,502
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

Which tutorial did you use to install your server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th July 2010, 16:43
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default

Hello,

I used "The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]".
Reply With Quote
  #4  
Old 7th July 2010, 18:52
borgo borgo is offline
Junior Member
 
Join Date: Jun 2007
Location: Rome, Italy
Posts: 4
Thanks: 2
Thanked 1 Time in 1 Post
Default

Isnt't it the already known problem about config file paths in RedHat/Fedora/CentOS distros as stated in this thread
http://howtoforge.com/forums/showthread.php?t=46741 ?

borgo
Reply With Quote
The Following User Says Thank You to borgo For This Useful Post:
TheBirdMan (5th August 2010)
  #5  
Old 7th July 2010, 19:09
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,502
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

No, thats unrelated. In the other thread, named has been reconfigured manually to run chrooted (/var/named/chroot/etc) while in this thread the normal install guide is used and that installs named without a chroot so that the config file is /etc/named.conf

Please post the content of the file /etc/named.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 7th July 2010, 19:31
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default

Hi Till,

Here's my named.conf file:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";

include "/etc/named.conf.local";
Reply With Quote
  #7  
Old 7th July 2010, 19:55
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default

OK, well this is very odd.

I retyped the last line of the named.conf above the existing line using vim, exactly like the existing line.

include "/etc/named.conf.local";

then deleted the original line and now named starts!

But now I get a different error!

I had already used ISPConfig3 web interface to add a client, website and a domain.
The FQDN of the ISPConfig3 server is "prl-ofc-s01.mrcomptech.com" with an IP of 192.168.1.10
This server is behind a NATed cable modem.
There is only one public IP address.

The DNS service is only needed on the local LAN by a couple of PCs to query DNS for Internet as well as for web sites on the local ISPConfig3 web server, which all should resolve to 192.168.1.10

The website I was adding was "mrcomptech.com"

Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone mrcomptech.com/IN: has no NS records
zone mrcomptech.com/IN: not loaded due to errors.
_default/mrcomptech.com/IN: bad zone

I deleted the zone within ISPConfig3 but when I try to restart named it still finds the zone that doesn't show up in ISPConfig3.

Last edited by MrCompTech; 7th July 2010 at 20:12.
Reply With Quote
  #8  
Old 7th July 2010, 20:30
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default

I deleted the pri.mrcomptech.com zone file manually from the server and deleted the contents of /etc/named.conf.local

I am going to delete all records related to the one client, website and dns that I created and try to start over with a 'new client'.
Reply With Quote
  #9  
Old 7th July 2010, 22:58
MrCompTech MrCompTech is offline
Member
 
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 18 Times in 8 Posts
Default OOPS - I spoke to soon!

I wanted to confirm that retyping the inclusion line for the named.conf.local is what fixed the problem so I restored the HD backup I made using "Clonezilla Live".

http://www.howtoforge.com/back-up-re...lonezilla-live

Well it didn't work.

So I am still getting the error:

Error in named configuration:
/etc/named.conf:42: open: /etc/named.conf.local: file not found

Even though ISPConfig created this file.

But I did find something else out...

I commented out the inclusion line in named.conf and started the named service. I waited a few minutes then checked the server status and "MyDNS" showed green. Of course I can't use the system this way since my DNS information for the web sites is not being read!

Any ideas?
Reply With Quote
  #10  
Old 7th July 2010, 23:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,502
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
 
Default

Do you have any Linux kernel security extensions like selinux enabled which might prevent that named can read the file?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
rewrite url not work apache2+mod_rewrite mohamedtah Installation/Configuration 1 31st January 2009 13:00
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53


All times are GMT +2. The time now is 14:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.