LinuxQuestions.org
Help answer threads with 0 replies.
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 03-03-2011, 02:28 PM   #1
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Rep: Reputation: 0
CentOS 5.5 Bind named.conf


I just installed CentOS 5.5 and the bind package that came with it, 9.3.6. There is no /etc/named.conf. I know i can create one but i am concerned that it did not install properly. If there is supposed to be a named.conf file there why does it not exist? Also this is the first time I have configured bind any how to help would be greatly appreciated.
 
Old 03-03-2011, 02:58 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You are correct. The Centos package is not installing a /etc/named.conf

Why? i dont know. It is listed in the rpm -ql command -- but it is not being installed in that location.
 
1 members found this post helpful.
Old 03-03-2011, 08:50 PM   #3
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
So what do i do from here to fix the issue?
 
Old 03-03-2011, 08:59 PM   #4
williebens
Member
 
Registered: Jan 2008
Posts: 88

Rep: Reputation: 16
Check this: unixmultiverse.com and click on the DNS tab.

--Willie
 
1 members found this post helpful.
Old 03-04-2011, 01:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
That is same as RHEL 5 http://www.linuxtopia.org/online_boo...5_ch-bind.html. For security you'll prob find it intalled chrooted; see first page at Chap 16.
Quote:
if you have installed the bind-chroot package, the BIND service will run in the /var/named/chroot environment. All configuration files will be moved there. As such, named.conf will be located in /var/named/chroot/etc/named.conf, and so on.
 
2 members found this post helpful.
Old 03-04-2011, 09:27 AM   #6
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
Quote:
Originally Posted by gymiv@aol.com View Post
I just installed CentOS 5.5 and the bind package that came with it, 9.3.6. There is no /etc/named.conf. I know i can create one but i am concerned that it did not install properly. If there is supposed to be a named.conf file there why does it not exist? Also this is the first time I have configured bind any how to help would be greatly appreciated.
As far as I remember, by default, you do not get a named.conf

If you want a starting point, install the caching-nameserver package. This will give you a named-caching-nameserver.conf which you can rename. If you have also installed bind-chroot, it will be in /var/named/chroot/etc/ rather than /etc/
 
1 members found this post helpful.
Old 03-07-2011, 10:41 AM   #7
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
the only files i have in that directory are localtime and rndc.key. I guess my biggest concern is whether or not this installed right and if it did then why are all the howto's on the net telling me to look for files that don't exist. I can't follow a how to if i can't find the files it is telling me to find. As far as what i installed it was just the default that came with CentOS 5.5, i do not know if it is chroot or not. Please advise.

Last edited by gymiv@aol.com; 03-07-2011 at 10:43 AM.
 
Old 03-07-2011, 10:47 AM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
If you are planning on using Centos for a DNS server, I would personally advise against it.

Use OpenBSD -- it comes with BIND chrooted, with an example config in place.

IMHO - it has the best documentation of any OS, especially concerning BIND. I think this will do you well.

Also, I think most will agree that it is either the most secure, or nearly the most secure OS out there.
 
1 members found this post helpful.
Old 03-07-2011, 11:12 AM   #9
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
is there some reason not to use centos? I have this on my web servers and was trying to keep to one os. also i am more conserned with trying to get this to work on any os. This is just a test PC at time. As i am concerned with security in the long run if i cannot get this to work on one os why would it work on another.

Last edited by gymiv@aol.com; 03-07-2011 at 11:21 AM.
 
Old 03-07-2011, 11:27 AM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by gymiv@aol.com View Post
is there some reason not to use centos? I have this on my web servers and was trying to keep to one os. also i am more conserned with trying to get this to work on any os. This is just a test PC at time. As i am concerned with security in the long run if i cannot get this to work on one os why would it work on another.
Centos/Redhat are both wonderful operating systems and work well for many things. I -personally- do not trust either of them to be running in a place that will eventually get attacked such as a DNS server. I've been around the country as a contractor and talked to many, many other security contractors, and I would say more than half of them will tell you not to use Centos/Redhat for world facing services. But, don't trust a strangers percentages, research for yourself.

There are great OS's for each world facing service. OpenBSD is *my* favorite for DNS. Slackware for Apache/PHP and such. Solaris for anything requiring Java.
 
1 members found this post helpful.
Old 03-07-2011, 11:48 AM   #11
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
Got it and will more than likely go that direction. What I am curious about is since we have an issue with this why is it not working right? Just trying to figure out an issue that should work fine. Curios about whether it is or is not installing right, just to know why and if i did something wrong. Or if it is installing correctly than where is the file. Just want to know because i do not know why.
 
Old 03-07-2011, 11:51 AM   #12
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Looks like you will have to make a named.conf from scratch. I don't see
one being installed, and it looks like that is "on purpose."

http://wiki.centos.org/FAQ/CentOS5

see section:

5. Bind is broken in CentOS 5

That should help out.

Last edited by szboardstretcher; 03-07-2011 at 11:53 AM.
 
1 members found this post helpful.
Old 03-07-2011, 12:42 PM   #13
gymiv@aol.com
Member
 
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59

Original Poster
Rep: Reputation: 0
can you tell me how to download openbsd the sites i have looked at either do not have an .iso or say that it is shareware and i have to purchas the full version.
 
Old 03-08-2011, 12:00 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
5. Bind is broken in CentOS 5

No, it's not. Yes, it looks like it, as bind-9.3.3 in CentOS doesn't install the config files anymore, at least not, where you would expect them. That was a deliberate choice by our upstream vendor. See this bugzilla entry.

Basically you can just copy the example files from /usr/share/doc/bind-9.x.x/sample/etc/ and /usr/share/doc/bind-9.x.x/sample/var/ to start your own configuration from.

Or you can use system-config-bind to set things up.

Documentation on bind can be found in the Deployment Guide, see Chapter 16.
http://www.centos.org/docs/5/html/De...S/ch-bind.html or http://www.linuxtopia.org/online_boo...ion/index.html
 
1 members found this post helpful.
Old 03-08-2011, 08:53 AM   #15
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
Quote:
Originally Posted by szboardstretcher View Post
Looks like you will have to make a named.conf from scratch. I don't see
one being installed, and it looks like that is "on purpose."

http://wiki.centos.org/FAQ/CentOS5

see section:

5. Bind is broken in CentOS 5

That should help out.

As I said in a previous post, if you want a starting point, install the caching-nameserver package. This will give you a named.caching-nameserver.conf which you can rename. If you have also installed bind-chroot, it will be in /var/named/chroot/etc/ rather than /etc/
 
  


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
what does it mean auth-nxdomain yes; at named.conf by BIND 9 cccc Linux - Networking 1 11-21-2011 11:02 PM
adding a zone in named.conf in centos 5.2 /etc/named.conf coolhunkank Linux - Newbie 2 05-14-2009 08:45 AM
centos 4.4 and bind named performance issues kbensch Linux - Networking 3 01-09-2007 10:31 PM
Weird BIND + Webmin Problem (named.conf) cruzifixion Linux - Networking 1 01-12-2006 04:33 PM
BIND -named.conf ryanc75 Linux - General 3 09-19-2005 02:57 AM

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

All times are GMT -5. The time now is 12:40 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