LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   named.conf and /var/named/zones (https://www.linuxquestions.org/questions/linux-server-73/named-conf-and-var-named-zones-4175528755/)

VolkHe 12-19-2014 08:27 AM

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

pingu 12-20-2014 12:01 PM

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.


All times are GMT -5. The time now is 05:42 PM.