Solved

Problem with starting Bind on Ubuntu

Posted on 2011-03-04
13
1,494 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
 

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now