nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Bind start problem

This is a discussion on Bind start problem within the Domain Name Server forums, part of the Mastering Servers category; Hi Friends, hello frends I am using RHEL5 and trying to configure bind dns. when I copying sample files from ...


Go Back   nixCraft Linux Forum > Mastering Servers > Domain Name Server

Linux answers from nixCraft.


Domain Name Server Discussion on domain name server including BIND and other servers.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2009, 12:24 PM
Junior Member
User
 
Join Date: Jun 2009
OS: Redhat Enterprise Linux
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yogeshkk2 is on a distinguished road
Default Bind start problem

Hi Friends,

hello frends I am using RHEL5 and trying to configure bind dns.
when I copying sample files from /usr/share/doc/bind*/sample/{etc and /var/named} to respective locations and after defining zones in named.conf, i tried to start named service but it prompts an error
named.root.hints file not found.

When I copy the named.root.hints by,
Code:
 #cp /usr/share/doc/bind-9.x.x/sample/etc/named.root.hints /var/named/chroot/etc
And Then try to start the service

Code:
 #service named restart
Its shows failed.

Thanx in advance

Last edited by nixcraft; 12-06-2009 at 03:11 PM. Reason: added [code] tags
Reply With Quote
  #2 (permalink)  
Old 11-06-2009, 06:46 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 600
Thanks: 61
Thanked 78 Times in 70 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default Hello Sir

Please have a look at this page. You need to check your configuration. Also confirm that your sample data is in the correct location and there are no characters out of place:

Bind start problem


Jaysunn
Reply With Quote
  #3 (permalink)  
Old 12-06-2009, 01:43 AM
Junior Member
User
 
Join Date: Jun 2009
OS: Redhat Enterprise Linux
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yogeshkk2 is on a distinguished road
Default

Hello

I have already created zone file of named.conf. I have done following
steps,

Code:
 # vi /var/named/chroot/etc/named.conf
Code:
zone "mydomain.com" { 
        type master; 
        file "mydomain.com.zone"; 
        allow-transfer { none; }; 

};

Code:
# cd /var/named/chroot/var/named 

# cp localhost.zone mydomain.com.zone 

# vi mydomain.com.zone
Code:
$TTL    86400 ; 24 hours could have been written as 24h or 1d 
$ORIGIN mydomain.com. 
@  1D  IN        SOA   ns1.mydomain.com.        root.mydomain.com. ( 
                              2002022401 ; serial 
                              3H ; refresh 
                              15 ; retry 
                              1w ; expire 
                              3h ; minimum 
                             ) 
       IN  NS     ns1.mydomain.com. ; in the domain 
       IN  MX  10 mail.mydomain.com. ; external mail provider 
; server host definitions 
ns1    IN  A      192.168.0.1  ;name server definition 
www    IN  A      192.168.0.2  ;web server definition 

# service named restart
Then above error in /var/log/messages

-Yogesh

Last edited by nixcraft; 12-06-2009 at 03:12 PM. Reason: added [code] tags
Reply With Quote
  #4 (permalink)  
Old 12-06-2009, 03:10 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Put named.root.hints in /var/named/chroot/etc. Also make sure it is as follows:
Code:
grep named.root.hints named.conf
include "/etc/named.root.hints";
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
bind , named , redhat chroot bind , redhat named , rhel named


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Migration from Linux BIND to Windows DNS runbeagle Domain Name Server 3 26-05-2009 07:30 AM
Shell Script For Dns BIND Server Configuration ramjgn Shell scripting 4 24-03-2009 06:32 PM
Setting Samba to Bind to an ADS Domain kevv.mai Getting started tutorials 0 20-04-2008 01:47 AM
BIND Name resolution kasimani Linux software 1 06-10-2006 12:42 AM
BIND 9 and Query-Source Ashish Pathak Linux software 2 07-02-2005 12:42 PM


All times are GMT +5.5. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38