Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Configuring DNS in Fedora core 6

5 views
Skip to first unread message

Damas Ally

unread,
Jun 5, 2007, 6:20:37 AM6/5/07
to
Greetings all,
Please,can someone help me on how to configure Secondary dns running in
FC6 with bind-9.3.., bind-chroot-9.3 where by the zone files must be
transfered from primary dns running FC3 with bind-9.2..,
bind-chroot-9.2..I haven't faced any problem to configure in other version
of linux FC5/4/3/2/1 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!
=========
Damas A.M
National ISP Manager
Mob: +255 784 582786 / 464678
Page: www.juasun.net
=========

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Adam Tkac

unread,
Jun 5, 2007, 6:41:46 AM6/5/07
to
Damas Ally napsal(a):

> Greetings all,
> Please,can someone help me on how to configure Secondary dns running in
> FC6 with bind-9.3.., bind-chroot-9.3 where by the zone files must be
> transfered from primary dns running FC3 with bind-9.2..,
> bind-chroot-9.2..I haven't faced any problem to configure in other version
> of linux FC5/4/3/2/1 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!
> ========
Hi,

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

unread,
Jun 5, 2007, 6:50:47 AM6/5/07
to
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
=========

> Damas Ally napsal(a):

Evan Hunt

unread,
Jun 5, 2007, 11:43:26 AM6/5/07
to

> 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.


Damas Ally

unread,
Jun 11, 2007, 7:11:59 AM6/11/07
to
Greetings Adam, Evan and others,
thanks for your ideas....sorry for delay happened,i was in field for some
days ....now i am back.
Pls find the sample of my last conf in both master dns and slave dns:-


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 Tkac

unread,
Jun 11, 2007, 10:30:29 AM6/11/07
to
Damas Ally napsal(a):
First, about using FC-1 and FC-3 bind. Those Fedoras aren't supported
now so it doesn't contains security fixes etc. It's strongly recomended
use Fedora 6 at least (or bind from there) if you want have fixes for
all known CVEs.
Those upper 2 files isn't named config files. It's for named + D-BUS and
logwatch + named cooperation.

> /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!
>
You could use what you want :)
/usr/share/system-config-bind/profiles/default/named.conf is used by
system-config-bind (GUI utility for creating named's configuration) to
generate default /etc/named.conf.
/usr/share/doc/bind-9.3.4/sample/etc/named.conf is more advanced sample
of /etc/named.conf. Use info from those files and create your own
/etc/named.conf

Adam

Damas Ally

unread,
Jun 11, 2007, 10:43:06 AM6/11/07
to
thanks,
i will try to follow up your suggestion but my servers are installed with
no GUI...its only command line, by the way its my idea of running all my
servers with FC6,let me try to create named.conf file from the one you
suggested and back to you.
regards.

Evan Hunt

unread,
Jun 11, 2007, 12:09:26 PM6/11/07
to

> 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!

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.

Adam Tkac

unread,
Jun 11, 2007, 12:27:03 PM6/11/07
to
Evan Hunt napsal(a):

>
> 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).
>
Yes, but you must install package called caching-nameserver. It's
installed in /etc by default and when you install bind-chroot package
configfiles are symlinked into chroot.

A

Damas Ally

unread,
Jun 14, 2007, 1:33:14 PM6/14/07
to
Greetings all,
I am here to let you know that i succeed to solve my problem of slave
dns,now its OK.....thanks for your inputs.
regards!

=========
Damas A.M
National ISP Manager
Mob: +255 784 582786 / 464678
Page: www.juasun.net
=========

>


>> 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.
>
>
>

0 new messages