[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: DNS: Can public and private data be hosted by the same server?



On Sunday 08 June 2008 08:18:50 am Tim wrote:
> NB: This is *NOT* a top posting list.
>
> Edward:
> > Is there a sample for reference ?
>
> Yes, in the manuals (/usr/share/doc/bind*/).  It has instructions and
> examples.
>
> > I want to know what different between IP address and INT eth ? ...
>
> An example from the docs:
> view "internal" {
>       // This should match our internal networks.
>       match-clients { 10.0.0.0/8; };
>       // Provide recursive service to internal clients only.
>       recursion yes;
>       // Provide a complete view of the example.com zone
>       // including addresses of internal hosts.
>       zone "example.com" {
>             type master;
>             file "example-internal.db";
>       };
> };
> view "external" {
>       // Match all clients not matched by the previous view.
>       match-clients { any; };
>       // Refuse recursive service to external clients.
>       recursion no;
>       // Provide a restricted view of the example.com zone
>       // containing only publicly accessible hosts.
>       zone "example.com" {
>            type master;
>            file "example-external.db";
>       };
> };


Thanks for the tip!  I was able to set this all up very easily
and it does exactly what I wanted.

However, I am having problems with logging:

logging {
        channel my_syslog {
	file "/var/log/named/named.log" versions 25;
                severity info;
                print-category yes;
                print-time yes;
        };
      category eventlib { my_syslog; };
};

(I also tried dropping "versions 25", same problem)

In /var/log/named:
===========
-rw-------  root root system_u:object_r:var_log_t:s0   named.log

>From /var/log/messages:
===============
Jun  9 11:37:02 myhost named[13314]: logging channel 'my_syslog' 
file '/var/log/named/named.log': file not found

What am I doing wrong?

Thanks!
Dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]