LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2010, 04:50 AM   #1
hassandit
LQ Newbie
 
Registered: Jun 2008
Posts: 23

Rep: Reputation: 0
Unhappy Help me out in configure bind DNS (MUST READ)


Hello, every one, I am little bit confuse to configure DNS server on Centos 5. The problem is I don't no where and how many files are copy
in differnet directories(like /etc & /var/named/chroot/etc & /var/named/chroot/var/named). I know about what type of data is written in
(named.conf and all of its zone file) but not known where i put these files.

These are my current scenario with all files.Currently I haven't install (caching-nameserver----for bind). Please check all these files and write me all steps that where i edit named.conf (either i copy /usr/share/doc/bind----/sample/etc) or i use (caching-nameserver and rename it as named.conf) and which direcotry contain how many files.

#################################################

These packeges are install when i query this

rpm -qa |grep bind

kdebindings-3.5.4-6.el5
bind-libs-9.3.6-4.P1.el5
bind-utils-9.3.6-4.P1.el5
ypbind-1.19-12.el5
bind-9.3.6-4.P1.el5
bind-chroot-9.3.6-4.P1.el5

##################################################

ls -ltr /var/named/chroot/etc/
total 16

-rw-r--r-- 1 root root 3519 Feb 27 2006 localtime
-rw-r----- 1 root named 113 Aug 19 09:41 rndc.key

##################################################

ls -ltr /var/named/chroot/var/named/
total 16

drwxrwx--- 2 named named 4096 Jul 27 2004 slaves
drwxrwx--- 2 named named 4096 Aug 26 2004 data


##################################################

ls -ltr /etc/|grep named*

lrwxrwxrwx 1 root named 31 Aug 19 09:43 rndc.key -> /var/named/chroot//etc/rndc.key


##################################################

ls -ltr /usr/share/doc/bind-9.3.6/sample/etc/
total 32

-rw-r--r-- 1 root root 524 Mar 30 2006 named.root.hints
-rw-r--r-- 1 root root 775 Mar 30 2006 named.rfc1912.zones
-rw-r--r-- 1 root root 4298 Apr 24 2009 named.conf
-rw-r--r-- 1 root root 0 Sep 4 2009 rndc.conf

##################################################

ls -ltr /usr/share/doc/bind-9.3.6/sample/var/named/
total 88

-rw-r--r-- 1 root root 427 Mar 7 2006 named.zero
-rw-r--r-- 1 root root 426 Mar 7 2006 named.local
-rw-r--r-- 1 root root 424 Mar 7 2006 named.ip6.local
-rw-r--r-- 1 root root 427 Mar 7 2006 named.broadcast
-rw-r--r-- 1 root root 195 Mar 7 2006 localhost.zone
-rw-r--r-- 1 root root 198 Mar 7 2006 localdomain.zone
-rw-r--r-- 1 root root 1892 Feb 26 2008 named.root
-rw-r--r-- 1 root root 56 Sep 4 2009 my.internal.zone.db
-rw-r--r-- 1 root root 56 Sep 4 2009 my.external.zone.db
drwxr-xr-x 2 root root 4096 Sep 4 2009 data
drwxr-xr-x 2 root root 4096 Aug 19 09:41 slaves


##################################################

ls -ltr /var/named/
total 24

drwxrwx--- 2 named named 4096 Sep 4 2009 slaves
drwxrwx--- 2 named named 4096 Sep 4 2009 data
drwxr-x--- 5 root named 4096 Aug 19 09:43 chroot
 
Old 08-28-2010, 09:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Take a look at this

Regards
 
Old 08-31-2010, 06:19 AM   #3
hassandit
LQ Newbie
 
Registered: Jun 2008
Posts: 23

Original Poster
Rep: Reputation: 0
Hello, Thanks for ur reply. I already view this but this is not helping me. I only want to know where i get named.conf file either install bind all packeges or using caching-named server.Please give me detail that how many files are necessary to configure bind.

Thanks.
 
Old 08-31-2010, 07:41 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I only want to know where i get named.conf file either install bind all packeges or using caching-named server.
You should decide whether you want a caching only name server, or a full blown name server.
In the 1st case you can copy /etc/named.caching-nameserver.conf to /etc/named.conf and you're done
In the 2nd case, if you don't a /etc/named.conf then do as the link in my previous post. Just copy it from /usr/share/doc/bind-9.x.x/sample/etc/named.conf to /etc/ and edit it accordingly
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DNS named bind configure Noob Questions spikeygg Linux - Networking 6 12-25-2011 04:10 PM
how to configure bind when using dynamic dns for webserver zogthegreat Linux - Networking 5 04-04-2010 07:10 PM
do i have to use Bind to configure DNS? nasirjones Linux - Newbie 18 07-29-2006 11:45 AM
Configure BIND DNS to Answer Active Directory Queries Astro Linux - Networking 1 02-01-2006 03:50 PM
help configure these BIND /DNS files adengua Linux - Networking 0 03-02-2004 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration