Solved

Problem with starting Bind on Ubuntu

Posted on 2011-03-04
13
1,496 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

778 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