Solved

Problem with starting Bind on Ubuntu

Posted on 2011-03-04
13
1,492 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

15 Experts available now in Live!

Get 1:1 Help Now