Thank you Danilo Godec, Thank you Lyle Giese
Thank you everyone.

I made a mistake on the localhost view. It's a part of the example
config and I thought it's out of question, but it's in the question
when I try to resolve domainx. After comment out the localhost view, I
get what I have expect.

2011/7/29 Lightner, Jeff <jlight...@water.com>:
> Using /var/named/chroot/... means you should have bind-chroot package 
> installed.
>
> Also you need to be sure all references within named.conf are relative to the 
> chroot directory rather than absolute real paths and be sure the files are in 
> those relative paths.   That is to say it is proper to reference files as 
> being in "/etc" or "/var/named" but the actual files referenced must exist in 
> "/var/named/chroot/etc" or "/var/named/chroot/var/named".
>
> Examples from your config:
>
> /var/named/data/named_stats.txt as refrenced below should actually exist as 
> /var/named/chroot/var/named/data/named_stats.txt.
>
> /etc/named.rfc1912.zones as referenced below should actually exist as 
> /var/named/chroot/etc.
>
>
>
>
>
>
>
> -----Original Message-----
> From: bind-users-bounces+jlightner=water....@lists.isc.org 
> [mailto:bind-users-bounces+jlightner=water....@lists.isc.org] On Behalf Of 
> Danilo Godec
> Sent: Friday, July 29, 2011 5:38 AM
> To: bind-users@lists.isc.org
> Subject: Re: no servers could be reached
>
> On 07/29/2011 10:36 AM, uifid...@gmail.com wrote:
>> the zones file is located at /var/named/chroot/var/named/domainx.zones.
>> #cat var/domainx.zones should be var/named/domainx.zones
>> #cat var/domainx.zone should be var/named/domain.zone
>> Sorry for my typo.
>
> So this should be OK then.
>
> Your view statements in this example say that 'localhost' will use the
> 'localhost_resolver' and everything else will use the 'viewx' view - but
> you don't have the 'domainx.zone' in your 'localhost_resolver' view.
>
> Try adding 'include "domainx.zones";' to the 'localhost_resolver' view...
>
>  Danilo
>
>
>>
>> 2011/7/29 Danilo Godec<danilo.go...@agenda.si>:
>>> On 07/29/2011 08:17 AM, uifid...@gmail.com wrote:
>>>> cat var/named/named.conf
>>>> //
>>>> // named.caching-nameserver.conf
>>>> //
>>>> options {
>>>>         listen-on port 53 { 192.168.18.128; 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";
>>>> };
>>>> logging {
>>>>         channel default_debug {
>>>>                 file "data/named.run";
>>>>                 severity dynamic;
>>>>         };
>>>> };
>>>> view localhost_resolver {
>>>>         match-clients      { localhost; };
>>>>         match-destinations { localhost; };
>>>>         recursion yes;
>>>>         include "/etc/named.rfc1912.zones";
>>>> };
>>>> view viewx {
>>>>         include "domainx.zones";
>>>> };
>>>>
>>>>
>>>> #cat var/domainx.zones
>>>> zone "domainx" IN {
>>>>         type master;
>>>>         file "domainx.zone";
>>>>         allow-update { none; };
>>>> };
>>> Where on the filesystem is your 'domainx.zones' file?
>>>
>>> According to you 'include "domainx.zones"' it should be
>>> '/var/named/domainx.zones', but according to your 'cat var/domainx.zones'
>>> it's in some 'var/' subdirectory.
>>>
>>> Either use the full path for the include or move the domainx.zones file into
>>> the /var/named and use a relative path from there.
>>>
>>>   Danilo
>>>
>>> _______________________________________________
>>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
>>> unsubscribe from this list
>>>
>>> bind-users mailing list
>>> bind-users@lists.isc.org
>>> https://lists.isc.org/mailman/listinfo/bind-users
>>>
>> _______________________________________________
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to 
>> unsubscribe from this list
>>
>> bind-users mailing list
>> bind-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
>
>
> --
> Danilo Godec, sistemska podpora / system administration
>
> Predlog! Obiscite prenovljeno spletno stran www.agenda.si
>
> ODPRTA KODA IN LINUX
> STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT : 
> IZOBRAZEVANJE : PROGRAMSKA OPREMA
>
> Visit our updated web page at www.agenda.si
>
> OPEN SOURCE AND LINUX
> SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING 
> : SOFTWARE
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
>
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
>
>
> Proud partner. Susan G. Komen for the Cure.
>
>
> Please consider our environment before printing this e-mail or attachments.
>
> ----------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential 
> information and is for the sole use of the intended recipient(s). If you are 
> not the intended recipient, any disclosure, copying, distribution, or use of 
> the contents of this information is prohibited and may be unlawful. If you 
> have received this electronic transmission in error, please reply immediately 
> to the sender that you have received the message in error, and delete it. 
> Thank you.
> ----------------------------------
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
> from this list
>
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to