LinuxQuestions.org
Visit Jeremy's Blog.
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-27-2008, 08:21 AM   #1
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Rep: Reputation: 31
problem configuring dns server in centos


Sir

i am using centos 5.

i have installed all bind packages and caching name server

[root@telnet ~]# rpm -qa |grep bind
bind-sdb-9.3.3-7.el5
bind-utils-9.3.3-7.el5
bind-libs-9.3.3-7.el5
bind-9.3.3-7.el5
bind-libbind-devel-9.3.3-7.el5
bind-devel-9.3.3-7.el5
bind-chroot-9.3.3-7.el5
ypbind-1.19-7.el5

[root@telnet ~]# rpm -qa |grep name
caching-nameserver-9.3.3-7.el5

but didnt found named.conf in /etc.

in /var

[root@telnet ~]# cd /var/named/
[root@telnet named]# ls
chroot localdomain.zone named.broadcast named.ip6.local named.zero
data localhost.zone named.ca named.local slaves


[root@telnet ~]# cd /var/named/
[root@telnet named]# ls
chroot localdomain.zone named.broadcast named.ip6.local named.zero
data localhost.zone named.ca named.local slaves

[root@telnet named]# cd /var/named/chroot/etc
[root@telnet etc]# ls
localtime named.caching-nameserver.conf named.rfc1912.zones rndc.key
[root@telnet etc]#

where is the named.conf.

and there are to many same file.

pls help me to configure dns server.



thanks in advance.
 
Old 08-27-2008, 08:29 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
From my experience, you create your own named.conf file. If you need an example conf file, usually bind will have an example or sample file in the /usr/share/doc/bind-version/sample/etc/ directory.
 
Old 08-27-2008, 08:50 AM   #3
olddocks
LQ Newbie
 
Registered: Dec 2006
Posts: 23

Rep: Reputation: 15
check this out: http://mysql-apache-php.com/dns-server-tutorial.htm
 
Old 08-28-2008, 05:43 AM   #4
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
no boss .

i cant configure dns server.

please help me all the steps and tricks to configure dns server in centos5.

pleaseeeeeeeeeeeeeeeeeeeeeeeee
 
Old 08-28-2008, 07:49 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by soumalya View Post
no boss .

i cant configure dns server.

please help me all the steps and tricks to configure dns server in centos5.

pleaseeeeeeeeeeeeeeeeeeeeeeeee
That's kind of rude and isn't gonna get anyone to help you. I answered your question and someone else kindly pointed out an online tutorial. You should go read it, then come back to ask more specific questions or when you don't understand something specifically or run into problems.

This is a free site. Members here help people like YOU in their own spare time. Now, don't make members rewrite tutorials that already exist cause you need someone to hold your hand.
 
Old 08-28-2008, 11:56 PM   #6
soumalya
Member
 
Registered: Nov 2006
Posts: 260

Original Poster
Rep: Reputation: 31
sorry boss

but there is no such line that tell me how do i create my name.conf because there is no such file in centos5 or rhel5.

i know hoe to configure dns sever in rhel4 but in centos5 or rhel5 its really tough.


SORRY again.
 
Old 08-31-2008, 11:52 PM   #7
msivadass
LQ Newbie
 
Registered: Nov 2007
Location: India
Distribution: RHEL
Posts: 26

Rep: Reputation: 15
Hi

pls do this
# cd /var/named/chroot/etc
# cp named.caching-nameserver.conf named.conf
# cat named.rfc1912.zones >> named.conf
#chgrp named named.conf
 
Old 09-01-2008, 06:33 AM   #8
santanu.roy
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Rep: Reputation: 0
Wink solution

Please make a file "named.ca" & put in proper place, your problem will be solved.
 
Old 09-01-2008, 06:14 PM   #9
cyberhydra
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
In the latest version of centos, the one you have, all the example files are located in the manuals section. So if you do "locate named.conf' you will see there is a file structure in the docs/manual are for all that.

I just did mine. I set up 2 nameservers on one computer, chroot bind, not allowing anyone but my own server to lookup queries, and handle all my websites. It was not supereasy.

One of the biggest issues I had and finally figured out was that a datacenter will hold onto the PTR part of your ips it assigns you.

They gave me full control but I could never get it all working right as the ptr records would not resolve right. After 2 months I gave up...and then while talking to the datacenter, they said, "oh yea, we have to do that"

oy!!! Unless you get a full block like 64 ip addresses, they will have to do PTR...you just tell them your domains and they do it. You still set up bind like normal...

Here is an old version of what I had done so far...just to get you started, but the finished will not be reprinted for a bit.

Click here for older page of info

It all depends what you want to do too.

The finished one is more complex but actually works perfectly, even with two nameservers pointing to themselves on the same server.

Good luck with it, cause it is a bear.
 
Old 11-09-2008, 02:02 AM   #10
cpointpak
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
how to configure bind

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/named.local
cp /usr/share/doc/bind-9.3.3/sample/var/named/named.root /var/named/chroot/var/named/named.root
touch /var/named/chroot/etc/named.conf
chkconfig --levels 235 named on
/etc/init.d/named start
 
  


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
Newbie DNS server & /etc/resolv.conf problem (CentOS 5.x) aspasia Linux - Newbie 0 03-24-2008 05:10 PM
CENTOS 3.9 Server can see localhost and DNS Name but not IP Address derekolive Linux - Newbie 4 02-14-2008 11:11 AM
Problem when configuring the address of DNS server. svvvs Linux - Software 1 02-11-2008 01:55 PM
CentOS DNS fails on internal network (works on server) ucffool Linux - Networking 1 05-31-2007 02:36 PM
Dedicated Server with CentOS 4.x and DNS Xoleum Linux - Newbie 3 09-10-2005 02:48 PM

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

All times are GMT -5. The time now is 08:49 AM.

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