DNS server
我使用该实用程序设置了一个bind9
,settings
从示例中获取,结果如下configuration
:
文件:/etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "testing.net" {
type master;
file "/etc/bind/db.forward.com";
};
zone "12.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.reverse.com";
};
文件:/etc/bind/db.forward.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.testing.net. root.localhost. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.testing.net.
ns IN A 192.168.12.1
server IN A 192.168.12.1
www 3600 IN CNAME ns.testing.net.
文件:/etc/bind/db.reverse.com
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.testing.net. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.
1 IN PTR ns.testing.net.
1 IN PTR ns.testing.net.
我有一个在系统上运行的服务,可以通过名称获得demo.testing.net
。我还在这个系统上实现了一个访问点,连接到它的客户端可以访问名称ns.testing.net
。
你能告诉我,我如何设置配置bind9
以便客户端可以访问名为的系统demo.testing.net
吗?specified
中应该有什么configuration files
?非常感谢!