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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th May 2011, 02:02
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default named - /etc/named.conf.local: file not found

Hi
I installed ispconfig3 following instructions http://www.howtoforge.com/perfect-se...64-ispconfig-3

Everything looks fine except for the DNS server, it will not start.
Quote:
Error in named configuration:
/etc/named.conf:45: open: /etc/named.conf.local: file not found
I tried installing again but I unfortunately get get the exactly the same result.

This is the /etc/named.conf
Quote:
//
// 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";

managed-keys-directory "/var/named/dynamic";
};

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.root.key";

include "/etc/named.conf.local";
Any ideas what could be wrong?
Reply With Quote
Sponsored Links
  #2  
Old 16th May 2011, 13:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you replace the last line with
Code:
include "/var/named/chroot/var/named/named.local";
and restart BIND?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th May 2011, 13:55
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi falco and thank you for quick response.

I replaced the last line as you suggested.

Quote:
service named start

Error in named configuration:
/etc/named.conf:46: open: /var/named/chroot/var/named/named.local: file not found
Reply With Quote
  #4  
Old 16th May 2011, 16:32
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Furthermore I can not find any file named "named.local" on the system

Quote:
[root@server1 /]
# find -name named.local
[root@server1 /]#
Im using Linux version 2.6.35.13-91.fc14.x86_64
Reply With Quote
  #5  
Old 16th May 2011, 16:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 842
Thanked 5,661 Times in 4,468 Posts
Default

Did you create already a DNS zone from within ISPConfig? The file you miss is created automatically when you add the first zone.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 16th May 2011, 18:00
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I had not created a zone but now I have.
I changed the last line in the /etc/named.conf back to its original value. (it does not start if the value is "include "/var/named/chroot/var/named/named.local"
The named server now starts
  • ispconfig3 - states the DNS is running
  • service named status - states the DNS is running
...but

My firewall is disabled and Nmap does not see the named server on port 53.


Quote:
Starting Nmap 5.21 ( http://nmap.org ) at 2011-05-16 14:42 GMT
Nmap scan report for server1.example.com (myInternalIp)
Host is up (0.000033s latency).
Not shown: 987 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
443/tcp open https
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
8080/tcp open http-proxy
8081/tcp open blackice-icecap
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=5.21%D=5/16%OT=21%CT=1%CU=32255%PV=Y%DS=0%DC=L%G=Y%TM=4DD13 7CA%P=
OS:x86_64-redhat-linux-gnu)SEQ(SP=C1%GCD=1%ISR=C7%TI=Z%CI=Z%II=I%TS=A)SEQ (S
OS:P=C1%GCD=2%ISR=C7%TI=Z%CI=Z%II=I%TS=A)OPS(O1=M4 00CST11NW7%O2=M400CST11NW
OS:7%O3=M400CNNT11NW7%O4=M400CST11NW7%O5=M400CST11 NW7%O6=M400CST11)WIN(W1=8
OS:000%W2=8000%W3=8000%W4=8000%W5=8000%W6=8000)ECN (R=Y%DF=Y%T=40%W=8018%O=M
OS:400CNNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=40%S=O%A=S+%F= AS%RD=0%Q=)T2(R=N)T3(R=Y%
OSF=Y%T=40%W=8000%S=O%A=S+%F=AS%O=M400CST11NW7%R D=0%Q=)T4(R=Y%DF=Y%T=40%W
OS:=0%S=A%A=Z%F=R%O=%RD=0%Q=)T5(R=Y%DF=Y%T=40%W=0% S=Z%A=S+%F=AR%O=%RD=0%Q=)
OS:T6(R=Y%DF=Y%T=40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T7( R=Y%DF=Y%T=40%W=0%S=Z%A=S
OS:+%F=AR%O=%RD=0%Q=)U1(R=Y%DF=N%T=40%IPL=164%UN=0 %RIPL=G%RID=G%RIPCK=G%RUC
OS:K=G%RUD=G)IE(R=Y%DFI=N%T=40%CD=S)

Network Distance: 0 hops

OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 11.75 seconds
Reply With Quote
  #7  
Old 16th May 2011, 18:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 842
Thanked 5,661 Times in 4,468 Posts
Default

To check the nameserver, use the dig command:

dig @localhost yourdomain.com
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
IceVilli (16th May 2011)
  #8  
Old 16th May 2011, 22:06
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thank you till and falco.

I guess this is working now

Still.... shouldn't "named" on port 53 be visible in the list generated by Nmap?
Sorry for the question...I'm kind of a noob in this!

Quote:
[root@server1 /]# dig @localhost www.mydomain.info

; <<>> DiG 9.7.3-RedHat-9.7.3-1.fc14 <<>> @localhost www.mydomain.info
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16323
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;www.mydomain.info. IN A

;; ANSWER SECTION:
www.mydomain.info. 86400 IN A 212.30.216.229

;; AUTHORITY SECTION:
www.mydomain.info. 86400 IN NS ns2.mydomain.info.
www.mydomain.info. 86400 IN NS ns1.mydomain.info.

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Mon May 16 18:55:29 2011
;; MSG SIZE rcvd: 91
Reply With Quote
  #9  
Old 17th May 2011, 00:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 842
Thanked 5,661 Times in 4,468 Posts
Default

Quote:
Still.... shouldn't "named" on port 53 be visible in the list generated by Nmap?
currently named listens only on localhost. To configure bind to listen on all interfaces, change the line:

listen-on port 53 { 127.0.0.1; };

to:

listen-on port 53 { any; };

in named.conf file and restart bind.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
IceVilli (17th May 2011)
  #10  
Old 17th May 2011, 23:51
IceVilli IceVilli is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Thats it. Now it works great. Thanks guys!
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
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 11:45
Please review RKHUNTER Log jmh_fl General 1 27th April 2010 17:44
domains not accessible gillesdevals Installation/Configuration 3 17th June 2009 10:12
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29


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


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