- 论坛徽章:
- 2
|
大概是这三个文件吧,需要的可以参考下
# uname -a
OpenBSD openbsd.my.domain 5.4 GENERIC#37 amd64
# cat /var/named/etc/named.conf
// $OpenBSD: named-simple.conf,v 1.10 2009/11/02 21:12:56 jakob Exp $
//
// Example file for a simple named configuration, processing both
// recursive and authoritative queries using one cache.
// Update this list to include only the networks for which you want
// to execute recursive queries. The default setting allows all hosts
// on any IPv4 networks for which the system has an interface, and
// the IPv6 localhost address.
//
acl clients {
localnets;
::1;
};
options {
version ""; // remove this to allow version queries
listen-on { any; };
listen-on-v6 { any; };
empty-zones-enable yes;
allow-recursion { clients; };
};
logging {
category lame-servers { null; };
};
// Standard zones
//
zone "." {
type hint;
file "etc/root.hint";
};
zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};
zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};
zone "leeqiand.cn" {
type master;
file "standard/leeqiand";
allow-transfer { localhost; };
};
zone "24.168.192.in-addr.arpa" {
type master;
file "standard/24.168.192";
allow-transfer { localhost; };
};
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 "standard/loopback6.arpa";
allow-transfer { localhost; };
};
// Master zones
//
//zone "myzone.net" {
// type master;
// file "master/myzone.net";
//};
// Slave zones
//
//zone "otherzone.net" {
// type slave;
// file "slave/otherzone.net";
// masters { 192.0.2.1; [...;] };
//};
# cat /var/named/standard/leeqiand
$TTL 6h
@ IN SOA dns.leeqiand.cn. root.leeqiand.cn. (
1 ; serial
1h ; refresh
30m ; retry
7d ; expiration
1h ) ; minimum
IN NS dns.leeqiand.cn.
dns IN A 192.168.24.144
www IN A 192.168.24.100
mp3 IN A 192.168.24.200
# cat /var/named/standard/24.168.192
$TTL 6h
@ IN SOA dns.leeqiand.cn. root.leeqiand.cn. (
1 ; serial
1h ; refresh
30m ; retry
7d ; expiration
1h ) ; minimum
IN NS dns.leeqiand.cn.
144 IN PTR dns.leeqiand.cn.
100 IN PTR www.leeqiand.cn.
200 IN PTR mp3.leeqiand.cn. |
|