From: priyanknewbeeee on
hi friends

well i m using RHEL5 there is no named.conf file in
/var/named/chroot/etc/named.conf in this path

so pls tell me what should i do?

thanku.
From: Bill Marcum on
On 2008-05-05, priyanknewbeeee <justpriyank(a)gmail.com> wrote:
>
>
> hi friends
>
> well i m using RHEL5 there is no named.conf file in
> /var/named/chroot/etc/named.conf in this path
>
> so pls tell me what should i do?
>
> thanku.

If there is no named.conf, maybe there is an nsswitch.conf, or maybe you
need to copy one or the other from the real /etc.
From: priyanknewbeeee on
thanks for ur reply but i dont have net at home so could u tell me
where can i get the rpm of named.
so i can configure the DNS server
From: Kiran Kumar Mukkamala on
No, nsswitch.conf is not named.conf.

nsswitch.conf specifies what services to resolve names. If you have
multiple name-services (locations to look for name resolution
information) say, /etc/hosts file, NIS, LDAP, named (bind)..
nsswitch.conf specifies what service to be used 1st.. if it fails..
what should be used next.. and so on. nsswitch is an acronym for name-
service-switch configuration.

For your problem, what you can do is, create a file under /var/named/
chroot/etc/named.conf and create a symbolic link under /etc/named.conf
point to /var/named/chroot/etc/named.conf . If you don't know what
should be the content of named.conf, just use the contents as part of
that.

-------------
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";
----------------

Apart from this you need the files, that named.conf is referring,
i.e., named.ca, named.rfc1912.zones etc.


Better way is, reinstall named.rpm. That's straigh method, I guess
your system may not be installed with named.rpm. Use 'yum install
named'


with regards,

Kiran Kumar Mukkamala

On May 5, 12:05 pm, Bill Marcum <marcumb...(a)bellsouth.net> wrote:
> On 2008-05-05, priyanknewbeeee <justpriy...(a)gmail.com> wrote:
>
>
>
> > hi friends
>
> > well i m using RHEL5 there is no named.conf file in
> > /var/named/chroot/etc/named.conf in this path
>
> > so pls tell me what should i do?
>
> > thanku.
>
> If there is no named.conf, maybe there is an nsswitch.conf, or maybe you
> need to copy one or the other from the real /etc.

From: vivek.mangal9685 on
On May 7, 2:12 am, priyanknewbeeee <justpriy...(a)gmail.com> wrote:
> thanks for ur reply but i dont have net at home so could u tell me
> where can i get the rpm of named.
> so i can configure the DNS server

you can find named rpm form your RHEL 5 CDs/DVD
For DNS Server you need bind-*.rpms and a caching-nameserver-*.rpm