Hi all,
I have just installed Red Hat 7.1 in my box, and I tried to setup DNS service to make my box operate as DNS server. Previously, I have ever used BIND 8, I had no problem, but with BIND 9 going along with Red Hat 7.1, although I have tried all ways but I have always met a problem. That is every time I enter command " rndc reload " to start up named service, and get error as follow:
# rndc reload
# connect: connection refused
I have read manual guide going along with BIND9 package, and I checked configuration files related to DNS service as rndc.conf, named.conf, named.ca, localhost.zone, named.local, resolv.conf, network ...I think they aren't problem, because in fact, I don't modify them at all, I haven't added any zone yet. ( After I start up named service sucessfully, I will add my zone in file named.conf, and create this file )
Besides, TCP/IP, xinetd run well in my system, I can ping my own IP address, or I can telnet / ftp / ssh ... to my own box .
The following are my configuration files:
file rndc.conf
-------------------------------------------------------
options {
default-server localhost;
default-key "key";
};
server localhost {
key "key";
};
key "key" {
algorithm hmac-md5; secret "zgM0gsZwOXOTXqfRjWIierzEbckiUdPGPXzjAVfsEQDHToQqjFNGtxpgPMTV";
};
----------------------------------------------------
File named.conf
----------------------------------------------------
options {
directory "/var/named";
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
key "key" {
algorithm hmac-md5;
secret "zgM0gsZwOXOTXqfRjWIierzEbckiUdPGPXzjAVfsEQDHToQqjFNGtxpgPMTV";
};
--------------------------------------------------------
and other files as named.ca, localhost.zone, named.local, resolv.conf, network I think they aren't problem.
Please tell me the reason why I cannot start up named service, and how to fix this problem.
Thanks so much for your help.
Hao Dr
I have just installed Red Hat 7.1 in my box, and I tried to setup DNS service to make my box operate as DNS server. Previously, I have ever used BIND 8, I had no problem, but with BIND 9 going along with Red Hat 7.1, although I have tried all ways but I have always met a problem. That is every time I enter command " rndc reload " to start up named service, and get error as follow:
# rndc reload
# connect: connection refused
I have read manual guide going along with BIND9 package, and I checked configuration files related to DNS service as rndc.conf, named.conf, named.ca, localhost.zone, named.local, resolv.conf, network ...I think they aren't problem, because in fact, I don't modify them at all, I haven't added any zone yet. ( After I start up named service sucessfully, I will add my zone in file named.conf, and create this file )
Besides, TCP/IP, xinetd run well in my system, I can ping my own IP address, or I can telnet / ftp / ssh ... to my own box .
The following are my configuration files:
file rndc.conf
-------------------------------------------------------
options {
default-server localhost;
default-key "key";
};
server localhost {
key "key";
};
key "key" {
algorithm hmac-md5; secret "zgM0gsZwOXOTXqfRjWIierzEbckiUdPGPXzjAVfsEQDHToQqjFNGtxpgPMTV";
};
----------------------------------------------------
File named.conf
----------------------------------------------------
options {
directory "/var/named";
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
key "key" {
algorithm hmac-md5;
secret "zgM0gsZwOXOTXqfRjWIierzEbckiUdPGPXzjAVfsEQDHToQqjFNGtxpgPMTV";
};
--------------------------------------------------------
and other files as named.ca, localhost.zone, named.local, resolv.conf, network I think they aren't problem.
Please tell me the reason why I cannot start up named service, and how to fix this problem.
Thanks so much for your help.
Hao Dr