LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-19-2014, 08:27 AM   #1
VolkHe
Member
 
Registered: Oct 2014
Posts: 33

Rep: Reputation: Disabled
named.conf and /var/named/zones


I have a fresh install of CentOS 5 and installed package bind.

In the past bind came with a /etc/named.conf file preconfigured with blocks like

options{}
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
...



And /var/named/ came with many files in the folder like

cache
named.broadcast
chroot
named.ca
data
named.ip6.local
named.local
slaves
localdomain.zone
named.rfc1912.zones
localhost.zone
named.zero



This time around I have nothing.

So I want to know if its possible to setup a nameserver with the bare minimum.


Examaple my /etc/named.conf

Quote:
zone "d.org" {
type master;
file "/var/named/d.org.db";
};
My zone file /var/named/d.org.db

Quote:
...
$TTL 1000
@ IN SOA server.d.org
...
@ IN A 22.22.22.22
...
Or do I need all these other /var/named/ files and other config blocks in /etc/named.conf

it seems rather unprofessional to goto another server of mine and copy all the zones over and named.conf just to test if it works, as I am not going to understand what made it work out of the 20 files or 10 blocks in named.conf

Regards
 
Old 12-20-2014, 12:01 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Something must have gone wrong here. I installed bind myself a couple of weeks ago, and got a normal standard configuration - like the one you expected.
Buut you say you "have a fresh install of CentOS 5" - why, that one is outdated?
A fresh install should normally be 6.6 or 7 - do you have a specifik reason to use an old version? And maybe that's causing the problem, don't know really but it is possible.

Last edited by pingu; 12-20-2014 at 12:01 PM. Reason: Spelling...
 
  


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
(bind) named: couldn't open pid file '/var/run/named/named.pid' - any help? samengr Linux - Server 6 04-01-2009 06:22 AM
file /var/lib/named/var/named/reverse/named.zero failed: file not found Toadman Linux - Software 15 03-18-2009 07:01 PM
chown -R named:named /var/named crash the system? joangopan Fedora 2 09-09-2007 02:46 AM
remove expired zones from named.conf ritesh_aladdin Linux - Networking 0 07-23-2004 05:34 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM

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

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