This is a discussion on DNS problem within the Linux Networking forums, part of the Linux Forums category; hi friends well i m using RHEL5 there is no named.conf file in /var/named/chroot/etc/named.conf ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 2008-05-05, priyanknewbeeee <justpriyank@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. |
|
|||
|
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...@bellsouth.net> wrote: > On 2008-05-05, priyanknewbeeee <justpriy...@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. |
|
|||
|
On May 7, 2:12 am, priyanknewbeeee <justpriy...@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 |
|
|||
|
On May 5, 11:21 am, priyanknewbeeee <justpriy...@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. SWITCH TO UBUNTU www.ubuntu.com and KUBUNTU www.kubuntu.com it is built by a south african billionaire who was the first OUTER SPACE tourist. It builds on DEBIAN. since u alreay know linux use kubuntu I had it installed and running flat in 2 days (needed some help). Erach |
![]() |
| Thread Tools | |
| Display Modes | |
|
|