I upgraded my DNS server to Redhat 9 and named stopped working I tried to restart but cannot shutdown named.
This is the message that I receive when looking at named's status
rndc: connect failed: connection refused
Here is the applicable entries from the message log.
May 14 13:19:50 Localhost named: named shutdown failed
May 14 13:19:52 Localhost named[1208]: starting BIND 9.2.1 -u named
May 14 13:19:52 Localhost named[1208]: using 1 CPU
May 14 13:19:52 Localhost named[1208]: loading configuration from '/etc/named.conf'
May 14 13:19:52 Localhost named[1208]: /etc/named.conf:21: 'options' redefined near 'options'
May 14 13:19:52 Localhost named[1208]: loading configuration: already exists
May 14 13:19:52 Localhost named[1208]: exiting (due to fatal error)
May 14 13:19:52 Localhost named: named startup succeeded
Here is the named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "**************";
};
controls {
inet 127.0.0.1 port 953
allow { localhost; } keys { rndc-key; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
options {
directory "/var/named/";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "dom1.com" {
type master;
file "/var/named/dawsonmetal.com.hosts";
};
zone "rev ip.in-addr.arpa" {
type master;
file "/var/named/206.159.167.rev";
};
zone "dom2.com" {
type master;
file "/var/named/dawsondoors.com.hosts";
};
Here is the rndc.conf
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
server localhost {
key "rndc-key";
};
key "rndc-key" {
algorithm hmac-md5;
secret "*********";
};
Any ideas on what could be causing this.
This is the message that I receive when looking at named's status
rndc: connect failed: connection refused
Here is the applicable entries from the message log.
May 14 13:19:50 Localhost named: named shutdown failed
May 14 13:19:52 Localhost named[1208]: starting BIND 9.2.1 -u named
May 14 13:19:52 Localhost named[1208]: using 1 CPU
May 14 13:19:52 Localhost named[1208]: loading configuration from '/etc/named.conf'
May 14 13:19:52 Localhost named[1208]: /etc/named.conf:21: 'options' redefined near 'options'
May 14 13:19:52 Localhost named[1208]: loading configuration: already exists
May 14 13:19:52 Localhost named[1208]: exiting (due to fatal error)
May 14 13:19:52 Localhost named: named startup succeeded
Here is the named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "**************";
};
controls {
inet 127.0.0.1 port 953
allow { localhost; } keys { rndc-key; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
options {
directory "/var/named/";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "dom1.com" {
type master;
file "/var/named/dawsonmetal.com.hosts";
};
zone "rev ip.in-addr.arpa" {
type master;
file "/var/named/206.159.167.rev";
};
zone "dom2.com" {
type master;
file "/var/named/dawsondoors.com.hosts";
};
Here is the rndc.conf
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
server localhost {
key "rndc-key";
};
key "rndc-key" {
algorithm hmac-md5;
secret "*********";
};
Any ideas on what could be causing this.