Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
03-03-2011, 03:28 PM
|
#1
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Rep:
|
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.
|
|
|
03-03-2011, 03:58 PM
|
#2
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
03-03-2011, 09:50 PM
|
#3
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Original Poster
Rep:
|
So what do i do from here to fix the issue?
|
|
|
03-03-2011, 09:59 PM
|
#4
|
Member
Registered: Jan 2008
Posts: 88
Rep:
|
Check this: unixmultiverse.com and click on the DNS tab.
--Willie
|
|
1 members found this post helpful.
|
03-04-2011, 02:30 AM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419
|
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.
|
03-04-2011, 10:27 AM
|
#6
|
Member
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68
Rep:
|
Quote:
Originally Posted by gymiv@aol.com
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.
|
03-07-2011, 11:41 AM
|
#7
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Original Poster
Rep:
|
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 11:43 AM.
|
|
|
03-07-2011, 11:47 AM
|
#8
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
03-07-2011, 12:12 PM
|
#9
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Original Poster
Rep:
|
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 12:21 PM.
|
|
|
03-07-2011, 12:27 PM
|
#10
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
Quote:
Originally Posted by gymiv@aol.com
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.
|
03-07-2011, 12:48 PM
|
#11
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Original Poster
Rep:
|
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.
|
|
|
03-07-2011, 12:51 PM
|
#12
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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 12:53 PM.
|
|
1 members found this post helpful.
|
03-07-2011, 01:42 PM
|
#13
|
Member
Registered: Oct 2010
Location: linwood, KS
Distribution: CentOS
Posts: 59
Original Poster
Rep:
|
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.
|
|
|
03-08-2011, 01:00 AM
|
#14
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419
|
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.
|
03-08-2011, 09:53 AM
|
#15
|
Member
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68
Rep:
|
Quote:
Originally Posted by szboardstretcher
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/
|
|
|
All times are GMT -5. The time now is 01:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|