LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   deleted master dns zone and messed bind9 up :\ (https://www.linuxquestions.org/questions/linux-server-73/deleted-master-dns-zone-and-messed-bind9-up-%5C-630159/)

steve51184 03-24-2008 12:58 AM

deleted master dns zone and messed bind9 up :\
 
hi i was in ISPconfig's BIND DNS Server settings page and i deleted one of my zones (the one name after my servers ip not any of my domains) and now i can't get bind to start and all my sites are down :(

i've also tried to add it back but it says it's not a valid domain name


os: ubuntu server 7.1

billymayday 03-24-2008 01:29 AM

What exactly do you mean by
Quote:

the one name after my servers ip not any of my domains
I'm assuming you don't have any backups - probably a good time to revisit your backup strategy once we get this sorted out

steve51184 03-24-2008 01:31 AM

i mean the ip address of my server and not one of my domains

billymayday 03-24-2008 01:36 AM

DP you mean something like 1.168.192.in-addr.arpa?

You are going to need to explain in a bit more detail what's going on - there probably aren't a lot of people here who use IPConfig, but plenty who use Bind.

billymayday 03-24-2008 01:37 AM

Actually, can you list the files in you zone directory

steve51184 03-24-2008 01:42 AM

Quote:

Originally Posted by billymayday (Post 3098405)
DP you mean something like 1.168.192.in-addr.arpa?

You are going to need to explain in a bit more detail what's going on - there probably aren't a lot of people here who use IPConfig, but plenty who use Bind.

yeah it might of been 1.168.192.in-addr.arpa

edit nope added it back and bind is still not starting

Quote:

Originally Posted by billymayday (Post 3098407)
Actually, can you list the files in you zone directory

sure

Root zone
127.0.0
mydomain1.com
mydomain2.com

edit and now 192.168.1

steve51184 03-24-2008 02:00 AM

i know people might not know how to use ispconfig but we can start with getting bind running :)

where are the bind log files on ubuntu server? i'll try and start it and post the results

billymayday 03-24-2008 02:49 AM

Sorry - been away.

Have a look in /var/log. Otherwise, try

find /var -name "*log*"

steve51184 03-24-2008 03:13 AM

try there can't find any log file for bind

billymayday 03-24-2008 03:18 AM

It will be in messages or whatever your standard syslog is called

steve51184 03-24-2008 04:00 AM

found it

Code:

Mar 24 08:58:44 thereddwarf kernel: [19871.820000] Failure registering capabilities with primary security module.

billymayday 03-24-2008 04:32 AM

What are the messages either side of this when you try and start bind?

steve51184 03-24-2008 04:39 AM

Mar 24 06:40:51 thereddwarf kernel: [11598.370000] Failure registering capabilities with primary security module.
Mar 24 06:40:56 thereddwarf kernel: [11603.120000] Failure registering capabilities with primary security module.
Mar 24 06:41:01 thereddwarf kernel: [11608.650000] ADDRCONF(NETDEV_UP): eth0: link is not ready

billymayday 03-24-2008 04:50 AM

sorry, but are you sure these are from when you start bind? These seem to be a couple of hours earlier than the previous entry you posted


Anyway, as root, type "service named start" (no quotes)

Then post tail -10 /var/log/messages (or whatever the log was) If that doesn't look like enough info, try a 20 instead of the 10

steve51184 03-24-2008 04:54 AM

Code:

root@thereddwarf:~# service named start
The program 'service' can be found in the following packages:
 * debian-helper-scripts
 * sysvconfig
Try: apt-get install <selected package>
-bash: service: command not found



All times are GMT -5. The time now is 05:47 PM.