Advertise

Sunday, November 1, 2009

Named Service failed

Error
[root@phpmyadmin ram]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named: [FAILED]

In the back end i got to know that i was facing the below mentioned error.

Apr 22 15:08:37 phpmyadmin named[10379]: loading configuration: file not found
Apr 22 15:08:37 phpmyadmin named[10379]: exiting (due to fatal error)
Apr 22 15:09:22 phpmyadmin named[10438]: starting BIND 9.3.4-P1 -u named -t /var/named/chroot
Apr 22 15:09:22 phpmyadmin named[10438]: found 2 CPUs, using 2 worker threads
Apr 22 15:09:22 phpmyadmin named[10438]: loading configuration from '/etc/named.conf'
Apr 22 15:09:22 phpmyadmin named[10438]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 22 15:09:22 phpmyadmin named[10438]: listening on IPv4 interface eth0, 192.168.1.16#53
Apr 22 15:09:22 phpmyadmin named[10438]: /etc/named.conf:100: configuring key 'ddns_key': bad base64 encoding
Apr 22 15:09:22 phpmyadmin named[10438]: loading configuration: bad base64 encoding
Apr 22 15:09:22 phpmyadmin named[10438]: exiting (due to fatal error)


Solution:

To overcome above error

follow the below mentioned steps:-

# vim /var/named/chroot/etc/named.conf

then look for line 103

100 key ddns_key
101 {
102 algorithm hmac-md5;
103 secret "use /usr/sbin/dns-keygen to generate TSIG keys";
104 };
105 view "external"
106 {

then issue below command in the terminal to get a key
# /usr/sbin/dns-keygen
MYuDOCEckswLfQdVgMjwybFZcB69Jwjv9KMJw7AumSD54dJhdHre2dQYYYmz

Then replace above line(103) as mentioned in the below sample example:

100 key ddns_key
101 {
102 algorithm hmac-md5;
103 secret "MYuDOCEckswLfQdVgMjwybFZcB69Jwjv9KMJw7AumSD54dJhdHre2dQYYYmz";
104 };
105 view "external"
106 {

Then give a below mentioned command

[root@phpmyadmin ram]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named: [ OK ]
[root@phpmyadmin ram]#

That's it and Enjoys Guys

No comments:

Post a Comment