How to make bind9 runing?
I have tried 2 way to run named. The one is add:" ./etc/bin/named start " in boot.local, the other is by using "chkconfig -a named". whichever I used, the named service seems to be started correctly.
But I cannot find the process of named by "ps -A " or Ksysguard. If I want to restart the named: rcnamed restart, it prompt like this: Shutting donw name server bind9 - Warning: named not running! done Startting name server bind9 done when I shut down my system, there is a message also like that above: Shutting donw name server bind9 - Warning: named not running! done So ,how can I really run named? thanks at advance! |
You need to set up the proper zone information and data files in order to use bind. Have a look at /var/log/messages and you'll probably see a bunch of errors that will tell you why named won't run.
|
Jan 13 03:12:24 lizard named[1350]: starting BIND 9.2.1 -u named
Jan 13 03:12:24 lizard named[1350]: using 1 CPU Jan 13 03:12:24 lizard named[1350]: loading configuration from '/usr/etc/named.conf' Jan 13 03:12:24 lizard named[1350]: none:0: open: /usr/etc/named.conf: file not found Jan 13 03:12:24 lizard named[1350]: loading configuration: file not found Jan 13 03:12:24 lizard named[1350]: exiting (due to fatal error) --------------------------------------------------------- but I really have a named.conf . At your standpoint , my named.conf has a wrong configuration? This is the reason why named quit imediately after start? this is my named.conf below: options { directory "/var/named"; forward only; //forward first; forwarders {202.96.128.68;202.96.134.133;}; allow-query {127.0.0.1; 192.168.1/24;}; }; controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; 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; }; }; zone "lizardstudio.org" IN { type master; file "db.beyond_2000.org"; allow-update {127.0.0.1;}; }; zone "1.168.192.in-addr.arpa" IN { type master; file "db.192.168.1"; allow-update {127.0.0.1;}; }; include "/etc/rndc.key"; ------------------------------------ In my local net ,this is the stand-alone server ,there is no slave DNS server . |
_Where_ is your named.conf?
|
/etc/named.conf
/usr/etc/named.conf I have put the file into these two directory. I can see bind9 start success, but I still cannot find the process. |
the process is exiting.
Have at look at the permissions of the file. Have a look at whether or not not SuSE is running it chroot-ed. All I can recommend is that you fire up Yast and see how it's rigged up to start. |
I changed the named run level to 35. What is the permissions of named.conf? The owner and the group are all root, only root can start or stop a process. Are there any other permissions?
You must be a expert of linux, would you like to teach me more about SuSE ? SuSE is a very alternative OS than others such as Redhat , Turbolinux and Mandrake, etc. There are too much more difference between other Linux OS. |
All times are GMT -5. The time now is 12:30 PM. |