--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
If you're using Fedora 6 you could use system-config-bind utility to
create default named.conf. After that you could add your slave zone to
that configfile. If you're using bind-chroot please run
"bind-chroot-admin --sync". After this procedure you could simply start
named :) (NOTE: if you're using SELinux, please put your slaves zones
into /var/named/slaves directory. You could avoid some problems)
Regards, Adam
> Damas Ally napsal(a):
I believe the default chroot directory on FC6 is /var/named/chroot,
so the configuration file is /var/named/chroot/etc/named.conf. (I'm
not running FC6 any longer, but I'm pretty sure that's where it was
when I was...)
--
Evan Hunt -- evan...@isc.org
Internet Systems Consortium, Inc.
master dns (fedora core 1, bind 9.2.2, kernel 2.4.22-1.2199.nptlsmp)...the
named.conf file is placed at /var/named/chroot/etc/named.conf,some of the
details are :-
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
notify yes;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "sample.com" IN {
type master;
file "sample.com.zone";
allow-update { none; };
allow-transfer { ip of slave; };
.......
.......
......
zone "x.x.x.in-addr.arpa" IN {
type master;
file "sample.com.rr.zone";
allow-update { none; };
allow-transfer { ip of slave; };
};
include "/etc/rndc.key";
Then,
Slave dns (fedora core 3, bind 9.2.5, kernel 2.6.12-1.1381_FC3smp)
named.conf file is at /var/named/chroot/etc/named.conf ....some of its
details:-
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
zone "." IN {
type hint;
file "named.ca";
};
zone "sample.com" IN {
type slave;
masters { ip of master; };
file "sample.com.zone";
allow-update { none; };
};
.........
..........
zone "x.x.x.in-addr.arpa" IN {
type slave;
masters { ip of master; };
file "sample.com.rr.zone";
allow-update { none; };
};
With that settings my dns are communicating to each other where by the
master transfer zone files to slave with no prob,
Now,i installed my slave dns with fedora core 6 is where i am getting
confusion with named.conf files as they are about two:-
cmd find / -name named.conf, get the following result
/etc/dbus-1/system.d/named.conf
/usr/share/logwatch/default.conf/services/named.conf
/usr/share/doc/bind-9.3.4/sample/etc/named.conf
/usr/share/system-config-bind/profiles/default/named.conf
The file /usr/share/doc/bind-9.3.4/sample/etc/named.conf and the file
/usr/share/system-config-bind/profiles/default/named.conf one of them is
the file to deal with configuration....can someone help me which one is
the correct file? regarding with the above intro on how my dns used to
work?
regards!
=========
Damas A.M
National ISP Manager
Mob: +255 784 582786 / 464678
Page: www.juasun.net
=========
> Damas Ally napsal(a):
>> Thanks Adam for your quickly reply...in short i am just using the linux
>> box machine with no graphical user installed so that the
>> system-config-bind to run,all my settings/configurations are just
>> terminal/command line,do you have any other idea on how i can get or
>> create named.conf? minding that i am using bind-chroot.
>> NB-I'm online skype=damas.ally as well as yahoo messenger=sirgamdam,we
>> can
>> chat and i can show you all what i have in my machine.
>> =========
>> Damas A.M
>> National ISP Manager
>> Mob: +255 784 582786 / 464678
>> Page: www.juasun.net
>> ========
> I'm sure that you could configure it alone. So good template could be
> install caching-nameserver package. It contains /etc/named.rfc1912.zones
> file which is interesting to you. Add your specific zones to this file.
> Next interesting file could be named.caching-nameserver.conf. This file
> is something as named.conf. Tell me if you have any problems.
Adam
There's no named.conf already on the system in FC6. Instead there's
a minimal version called /var/named/chroot/etc/named.caching-nameserver.conf
(or something similar).
I think if /var/named/chroot/etc/named.conf exists and is symlinked to
/etc/named.conf, then that will be used instead when named is run at boot
time.
A
>
>> BUT this FC6 become very complicated to me especially named.conf file in
>> which is normal configuration file for dns...i can't find the exactly
>> file to edit/configure,i need help from anyone please. with regards!
>
> I believe the default chroot directory on FC6 is /var/named/chroot,
> so the configuration file is /var/named/chroot/etc/named.conf. (I'm
> not running FC6 any longer, but I'm pretty sure that's where it was
> when I was...)
>
> --
> Evan Hunt -- evan...@isc.org
> Internet Systems Consortium, Inc.
>
>
>