named has failed - dns server is not working

hybrid56

Member
Jun 24, 2011
16
0
51
Good evening,

It'll be 10 when I reinstall cpanel, but each time the DNS server does not work.
I took my degree in http://www.buycpanel.com/ but he can not help me.


Code:
Restarting DNS Server

Waiting for named to restart...............................................................finished.


named has failed, please contact the sysadmin (result was "named is not running").

Code:
[email protected] [/scripts]# ./fixndc
Named could not be restarted, any obvious config errors should show up below this line.
The named configuration appears to have errors:
        /etc/named.conf:1: unknown option 'This'

Running /usr/local/cpanel/scripts/rebuilddnsconfig to repair it..
Named could not be restarted, any obvious config errors should show up below this line.
WARNING: /etc/named.conf appears to contain errors which could not be corrected automatically!
/etc/named.conf:1: unknown option 'This'
Please correct these errors manually and rerun /usr/local/cpanel/scripts/fixrndc


Code:
[email protected] [/scripts]# nslookup ns1.domaine.com
Server:         88.191.254.60
Address:        88.191.254.60#53

** server can't find ns1.domaine.com: NXDOMAIN
88.191.254.60 is resolv dns online.net

Code:
[email protected] [/]# /usr/local/cpanel/scripts/rebuilddnsconfig
Named could not be restarted, any obvious config errors should show up below this line.
WARNING: /etc/named.conf appears to contain errors which could not be corrected automatically!
/etc/named.conf:1: unknown option 'This'
Please correct these errors manually and rerun /usr/local/cpanel/scripts/fixrndc
Code:
[email protected] [/]# service named stop
Arrêt de named :                                          [FAILED]
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
The error message indicates there is an issue in /etc/named.conf file:

WARNING: /etc/named.conf appears to contain errors which could not be corrected automatically!
/etc/named.conf:1: unknown option 'This'
Please post the top line of /etc/named.conf file:

Code:
cat /etc/named.conf | sed -n '1p'
Thanks!
 

hybrid56

Member
Jun 24, 2011
16
0
51
before

./
./localdomain.zone
./localhost.zone
./named.broadcast
./named.zero
./named.local
./named.ip6.local

zone "mutu1.domaine.com" {
type master;
file "/var/named/mutu1.domaine.db";
};


zone "ns2.domaine.com" {
type ma
[13:51:28] .:: CoCo ::. dit:
type master;
file "/var/named/ns2.domaine.db";
};


zone "ns1.domaine.com" {
type master;
file "/var/named/ns1.domaine.db";
};

Named.conf was cleared and we re-bind. And now we have
The nslookup works locally but not outside
And my registrar does not want to take my two dns, it takes the spread or there is a problem?


include "/etc/rndc.key";

controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};



zone "mutu1.domaine.com" {
type master;
file "/var/named/mutu1.domaine.com.db";
};


zone "ns2.domaine.com" {
type master;
file "/var/named/ns2.domaine.com.db";
};


zone "ns1.domaine.com" {
type master;
file "/var/named/ns1.domaine.com.db";
};
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please open up a ticket using WHM > Support Center > Contact cPanel or using the link in my signature, since I'm uncertain why you would be receiving an error message about /etc/named.conf when it starts properly on line 1 with the information normally included there. Thanks!