Solved

Problem with starting Bind on Ubuntu

Posted on 2011-03-04
13
1,500 Views
Last Modified: 2012-05-11
hello,

after i finished configuring all files, when i tried to restart Bind on ubuntu, it shows me this :


root@ubuntu:~#/etc/init.d/bind9 restart
* Stopiing domain name service... bind9
rndc: error: /etc/bind/rndc.key:7: unkown option 'options'
rndc: could not load rndc configuration
                                          [ OK ]
* Starting domain name service... bind9                  [fail]

help please
0
Comment
Question by:david875
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35041728
can you please paste output of cat /etc/rndc.key
0
 
LVL 1

Expert Comment

by:notjames
ID: 35041825
Uh, before you paste the output of the rndc.key file, consider replacing the actual "secret" line (if there is one) with something fake (see below). :)

I'm guessing you've made an rndc.key file like an rndc.conf file.

See http://linux.die.net/man/5/rndc.conf
http://linux.die.net/man/8/rndc-confgen

Your rndc.key file should look a little like this (except with real information). If there's anything else then it will not work properly.

key "rndc-key" {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxx";
};
0
 

Author Comment

by:david875
ID: 35049092
I fixed it, now the problem is this (i can't start named service).

u@ubuntu:~$ /etc/init.d/bind9 status
* could not access PID file for bind9
u@ubuntu:~$ /etc/init.d/bind9 start
* Starting domain name service... bind9
mkdir: cannot create directory '/var/run/named' : Permission denied
u@ubuntu:~$ sudo su
[sudo] password for u:
root@ubuntu:/home/u# cd /var/run
root@ubuntu:/var/run# cd named
bash: cd: named: No such file or directory
root@ubuntu:/var/run# mkdir named
root@ubuntu:~# /etc/init.d/bind9 start
* Starting domain name service... bind9            [fail]

0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

Author Comment

by:david875
ID: 35049255
rndc connect failed : 127.0.0.1#953: timed out
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35049673
Can you please do some tests specified in this link :




Thnx
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35049674
0
 

Author Comment

by:david875
ID: 35050023
same problem man : rndc connect failed : 127.0.0.1#953: timed out
0
 

Author Comment

by:david875
ID: 35050033
i see that i cannot ping 127.0.0.1 !!!

I'm using ubuntu on Vmware
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35050412
can you please paster output of

ifconfig
0
 

Author Comment

by:david875
ID: 35051203
i see, there is no loopback interface in the box :s how to reinstall it?
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35051380
can you please paste output for

cat /etc/network/interfaces


this is how my one looks like :

auto lo
iface lo inet loopback
dns-nameservers

# The primary network interface
auto eth0
iface eth0 inet  static
   address  
   network
   broadcast
   netmask
0
 
LVL 7

Accepted Solution

by:
zakar1a earned 500 total points
ID: 35052553
0
 

Author Closing Comment

by:david875
ID: 35053212
i can't believe it, it worked, bind started thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question