Bind 9.2.3rc4
Vladimir
haba at aaanet.ru
Sat Oct 25 07:48:49 PDT 2003
Hi, freebsd-questions.
Can some one help with subj?
named.conf:
acl "habanet" {192.168.1.0/24;};
acl "localh" {127.0.0.1;};
options {
directory "/etc/namedb";
pid-file "/etc/namedb/named.pid";
allow-recursion { "habanet"; "localh";};
allow-query {"habanet"; "localh";};
version "unknow";
forwarders {
127.0.0.1;
80.80.111.254;
80.80.111.244;
};
query-source address * port 53;
dump-file "/var/tmp/named_dump.db";
};
controls {};
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret druLaR2EqI4ghGEWHTiSAw==;
};
logging {
channel update_debug {
file "/var/log/named-update.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/log/named-auth.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category update { update_debug; };
category security { security_info; };
};
zone "." {
type hint;
file "named.root";
};
zone "localhost" {
type master;
file "localhost.db";
notify no;
};
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
zone "habanet.local" {
type master;
file "habanet.local.db";
allow-query {"habanet"; "localh";};
allow-update { key DHCP_UPDATER; };
allow-transfer {192.168.1.4;};
// notify no;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "192.168.1.db";
// allow-query {"habanet"; "localh";};
allow-update { key DHCP_UPDATER; };
allow-transfer {192.168.1.4;};
};
// RFC 3152
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA"
type master;
file "localhost-v6.rev";
};
// RFC 1886 -- deprecated
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
type master;
file "localhost-v6.rev";
};
192.168.1.db:
$ORIGIN .
$TTL 3600 ; 1 hour
1.168.192.in-addr.arpa IN SOA ns.habanet.local. hostmaster.habanet.local. (
2003091502 ; serial
86400 ; refresh (1 day)
3600 ; retry (1 hour)
3888000 ; expire (6 weeks 3 days)
3600 ; minimum (1 hour)
)
IN NS ns.habanet.local.
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 41000 ; 11 hours 23 minutes 20 seconds
1 IN PTR Haba.habanet.local.
$TTL 3600 ; 1 hour
4 In PTR server.habanet.local.
habanet.local.db:
$TTL 86400
habanet.local. IN SOA ns.habanet.local. hostmaster.habanet.local. (
2003091501 ;serial number
86400 ;refresh
3600 ;retry
3888000 ;expire
3600 ;minimum
)
; Name server
IN NS ns.habanet.local.
IN A 192.168.1.4
IN MX 4 server.habanet.local.
;
server IN A 192.168.1.4
www IN CNAME server
ftp IN CNAME server
gopher IN CNAME server
;
haba IN A 192.168.1.1
localhost.db:
$TTL 1D
localhost. IN SOA ns.habanet.local. hostmaster.habanet.local. (
2003091501 ;serial number
86400 ;refresh
3600 ;retry
3888000 ;expire
3600 ;minimum
)
localhost. IN NS ns.habanet.local.
localhost. IN A 127.0.0.1
localhost.rev:
$TTL 1D
0.0.127.in-addr.arpa. IN SOA ns.habanet.local. hostmaster.habanet.local. (
2003091501 ; Serial
86400 ; Refresh
3600 ; Retry
3888000 ; Expire
3600 ; Minimum
)
IN NS ns.habanet.local.
1 IN PTR localhost.
-----
# dig 127.0.0.1
; <<>> DiG 8.3 <<>> 127.0.0.1
;; res options: init recurs defnam dnsrch
;; res_nsend: Operation timed out
# host localhost
Host not found.
# host localhost.habanet.local
Host not found.
And when i start mc it starts 5-6 minutes. When i connect to internet
it start immediately.
--
With regards,
Vladimir mailto:haba at aaanet.ru
More information about the freebsd-questions
mailing list