- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Does anyone have DNS working in Fedora
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 01:15 PM
05-02-2004 01:15 PM
Seems broke.
How to revert back to the old DNS that works while waiting for this new chroot scheme to get fixed.
Anyone know ??
Vern
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 01:51 PM
05-02-2004 01:51 PM
Re: Does anyone have DNS working in Fedora
1) Copied my /etc/named.conf file exactly as it was from Red Hat 7.x
2) copied all the entries in /var/named from the old system to the new system.
service named start
There were a few warning messages, but I was able to comment out the lines in /etc/named.conf that were being complained about.
You didn't run Bastile on this system did you?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 02:18 PM
05-02-2004 02:18 PM
Re: Does anyone have DNS working in Fedora
Searching on the internet I find lots of folks having problems with DNS with Fedora; I'll try your approach and see if I can tweak for my setup.
Thanks !!
Vern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 03:08 PM
05-02-2004 03:08 PM
Re: Does anyone have DNS working in Fedora
Steven; it worked; had to do a couple of additional steps. In the file /etc/sysconfig/named comment out the entry:
ROOTDIR=/var/named/chroot
so that it looks like:
#ROOTDIR=/var/named/chroot
Then make the /etc/resolv.conf first entry be:
nameserver 127.0.0.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 03:52 PM
05-02-2004 03:52 PM
Re: Does anyone have DNS working in Fedora
Until last night, I'd never purposely done this. I've since found out it's bloody simple!
The CHRoot jail by it's very nature means that if 'named' does get exploited, there's nothing to do within the exploited filesystem, as there's no shell, no utilities, hell, no libraries! Very secure.
The requirements are pretty simple too. I admit to being a bit confused by the zero-byte-length 'named.conf' in the distributed fedora chroot jail however, as the documentation says this is read *after* the chroot creation. Anyway..
As for the double duplication, I think that was a bugger-up on behalf of the packager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 04:10 PM
05-02-2004 04:10 PM
Re: Does anyone have DNS working in Fedora
Like they say; if it was easy it would be no fun !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 04:12 PM
05-02-2004 04:12 PM
Re: Does anyone have DNS working in Fedora
Its still reasonably secure. Now I'd like to suggest that you attempt to get it working within the chroot jail.
I've injured myself playing sports(yeah, more itrc time right?) and will attempt to do this very same thing on a non-production BIND server over the next few days.
Of the procedures I've found thus far, this one looks best.
http://sxs.thexdershome.com/internet_serving/bind9_chroot.html
I'm going to try it and see how it works.
We'll learn together.
I suggest this only because you have been hacked so many times, its best to secure everything you can.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 04:18 PM
05-02-2004 04:18 PM
Re: Does anyone have DNS working in Fedora
He mentioned it, I looked, and lo-and-behold, 10 minutes later one CHRoot'd monster!
Looking at how fedora does it by default seems I did too much, but *shrug* it works well!
requirements:
/etc/named.conf
/etc/localtime
/var/named/*
/var/run/named/ (group-write 'named')
/dev/random (c/1/8)
/dev/null (c/1/3)
The 'ROOTDIR' entry in '/etc/sysconfig/named' to point to your new chroot structure.
I didn't have to make any syslog changes, it found them all on it's own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 05:53 PM
05-02-2004 05:53 PM
Re: Does anyone have DNS working in Fedora
If you edit /var/named/chroot/etr/named.conf
and then /var/named/chroot/var/named/zonefile
correctly and then restart the named service-everything is suppose to work.
However if you still wish to work without the chroot enviroment-try to remove the bind-chroot package:
rpm -e bind-chroot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 06:31 PM
05-02-2004 06:31 PM
Re: Does anyone have DNS working in Fedora
After much annoyance I had to combine Stuart's and my procedure. His assumes you know the mknod commands which frankly I don't. Mine doesn't work due to the syslog changes I think.
One caveat.
I get this error at startup.
/etc/init.d/named: line 7: --: command not found
There is nothing on line 7 of /etc/init.d/ so I'm not sure how serious this is.
I do however have named running in a choot jail. I may try it on HP-UX at work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 06:56 PM
05-02-2004 06:56 PM
Re: Does anyone have DNS working in Fedora
(for the record, the docuemnt SEP posted has the commands, but they are simply 'mknod null c 1 3;mknod random c 1 8').
I did it last night on an ES3 box with copying those files, and mknod'n those device nodes.
I admit it took 3 restarts to get all the permissions right though :)
SEP, I'm looking through RH8, RH9, FC1 and RHES3's '/etc/init.d/named', and line 7 on all of them appear to be part of the commented-out 'chkconfig' Description lines.
Wanna paste the top dozen or so lines of it, or email 'em to me (stuart at promed.com.au), and we'll see what it's thinking.
Oh, and I forgot the '/etc/rndc.key' file earlier. Apologies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 11:42 PM
05-02-2004 11:42 PM
Re: Does anyone have DNS working in Fedora
I managed to get an install of Fedora with chroot'ed named only one level deep; the way I think it should be. It works as a caching only name server.
I'll try adding my local zones later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 03:30 AM
05-03-2004 03:30 AM
SolutionWhich makes the error rather problematic and hard to diagnose. I have no clue how to proceed but note that DNS is running in the chroot jail, appears to be stable, so I'm not going production yet, but I'm not terribly worried.
Vernon,
Stuart was "spot on" with regards to not having to alter the syslog. My document is out of date where it refers to /etc/rc.d/named that should be /etc/init.d/named ... At some point, I'll post a version to my own website.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 11:14 AM
05-03-2004 11:14 AM