impossible to add new domain

pppplus

Verified User
Joined
Dec 19, 2008
Messages
526
Hi

I've a problem on 3 virtual servers.
Impossible to add new domain

It's very new issue, because I add a domain some days (or weeks) ago.

In the 3, I've the same errors messages :
Jun 30 21:28:04 host named[12536]: loading configuration from '/etc/named.conf'
Jun 30 21:28:04 host named[12536]: reading built-in trusted keys from file '/etc/named.iscdlv.key'
Jun 30 21:28:04 host named[12536]: using default UDP/IPv4 port range: [1024, 65535]
Jun 30 21:28:04 host named[12536]: using default UDP/IPv6 port range: [1024, 65535]
Jun 30 21:28:04 host named[12536]: sizing zone task pool based on 17 zones
Jun 30 21:28:04 host named[12536]: using built-in DLV key for view _default
Jun 30 21:28:04 host named[12536]: Warning: 'empty-zones-enable/disable-empty-zone' not set: disabling RFC 1918 empty zones
Jun 30 21:28:04 host named[12536]: none:0: open: /etc/rndc.key: permission denied
Jun 30 21:28:04 host named[12536]: couldn't add command channel 127.0.0.1#953: permission denied
Jun 30 21:28:04 host named[12536]: none:0: open: /etc/rndc.key: permission denied
Jun 30 21:28:04 host named[12536]: couldn't add command channel ::1#953: permission denied
Jun 30 21:28:04 host named[12536]: reloading configuration succeeded
Jun 30 21:28:04 host named[12536]: zone mydomain.com/IN: loaded serial 2016063001
Jun 30 21:28:04 host named[12536]: reloading zones succeeded
Jun 30 21:28:04 host named[12536]: zone mydomain.com/IN: sending notifies (serial 2016063001)

I've DA 1.50.1

Last domains were install in a previous version of DA.

Do you have a solution ?
I try to add : http://forum.directadmin.com/showthread.php?t=44909

No more errors, but the new domain always do not answer

Ping on domain send to the right IP.
 
My named.donf file is :
Code:
//
// 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;
	allow-transfer { 213.251.188.141; };
	allow-recursion { localnets; };

	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";
 
I dont see in your named.conf the rndc.key loaded

Are you sure you followed the solution in the thread you posted?

You should have this "include "/etc/rndc.key";" in your named.conf file and the rndc.key file should be owned by root:named with 640 permission
ls -l /etc/rndc.key
-rw-r----- 1 root named 113 18 dic 2010 /etc/rndc.key

Regards
 
Hi Sellerone

Tonight, I try on another server, and it works. I forgot to post here again.

But on the first, always a problem. No error message, but domain does not answer.

The 2 VPS should have exactly the same configuration, so if it works on one, it should work on the other.

I will try again later, with another domain.

Thanks for your help Sellerone.
 
DNS take up to 48hours to propagate, you may want to use dig command to check if the server is correctly configured for a domain:

dig @SERVER-IP DOMAIN

Regards
 
yes I know
But strangely, with the domain, we arrive on the server, but no answer.

I will check it later, to find the problem.

Thanks
 
What do you mean by "no answer"?

If it gives connection timeout it means the webserver is not running or you're poiting to the wrong ip, if it return a default apache/nginx page it means the virtual host is not correctly set.

Regards
 
Back
Top