Solved

Problem with starting Bind on Ubuntu

Posted on 2011-03-04
13
1,502 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
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 

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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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…
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.
Suggested Courses

623 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