On Sunday, September 24, 2006 10:27 AM [GMT+1=CET],
Alex wrote:

> Could anyone post an example named.conf file for 9.3.2-P1 on win32?


This will help to set up a caching-only server.

You'll have to spend a thought on items within "<>",
the intranet ACL, and the static zone files..

Log files are written to the base dir.

---8<---
# import key "rndc-key":
include "C:/WINNT/system32/dns/etc/rndc.key";

controls {
inet 127.0.0.1 allow { any; } keys { "rndc-key"; };
};

acl "intranet" { 127.0.0.1; 192.168.0/24; };
acl "world" { ; };

options {
directory "C:/WINNT/system32/dns";
pid-file none;
listen-on { "intranet"; "world"; };
listen-on-v6 { none; };
allow-query { any; };
allow-recursion { "intranet"; };
allow-transfer { none; };
notify no;
query-source address * port 53;
forwarders { ; ; };
};

logging {
channel "default_log" {
file "named.log" versions 3 size 100k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
channel "query_log" {
file "queries.log" versions 3 size 100k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
channel "transfer_log" {
file "xfers.log" versions 3 size 100k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { default_log; };
category queries { query_log; };
category resolver { query_log; };
category client { query_log; };
# category xfer-in { transfer_log; };
# category xfer-out { transfer_log; };
category lame-servers { null; };
};

zone "." IN {
type hint;
file "etc/root.hint";
};

zone "localhost" IN {
type master;
file "etc/localhost.zone";
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "etc/localhost.rev-zone";
};
--->8---

HTH, have fun

Olaf Lautenschlaeger
ANOVA Multimedia Studios GmbH, Rostock