我一直在为我的内部网络安装服务器,到目前为止,我有一个可以升级着色BIND9 (在同一台机器上)的运行中的isc-dhcp服务器,我需要在DNS上添加一些静态条目,这样用户就可以解析驻留在DMZ中的网站了。
我已经准备好的是用以下信息修改/etc/bind/named.conf. tryed:
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "MySuperSecretHash"; (this is not the real value BTW)
};
zone "quality.internal" IN {
type master;
file "/var/lib/bind/quality.internal.db";
allow-update { key DHCP_UPDATER; };
};
zone "0.10.10.in-addr.arpa" {
type master;
file "/var/lib/bind/rev.10.10.0.in-addr.arpa";
allow-update { key DHCP_UPDATER; };
};
logging {
channel query.log {
file "/var/log/named/query.log";
severity debug 3;
};
category queries { query.log; };
};然后我添加了这两个条目:
zone "ourserver.internal" IN {
type master;
file "/var/lib/bind/ourserver.internal.db";
};
zone "0.16.172.in-addr.arpa" {
type master;
file "/var/lib/bind/rev.172.16.0.in-addr.arpa";
};所以..。我创建了文件ourserver.internal.db和rev.172.16.0.inaddr.arpa将它们都放在/var/lib/ bind /中,并更改了权限,以便绑定用户可以访问它们,重新声明服务.当我做一个NSLOOKUP www.ourserver.internal时,我得到:
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find www.ourserver.internal: NXDOMAIN
BUT when i do a reverse lookup....
Server: 127.0.0.1
Address: 127.0.0.1#53
5.0.16.172.in-addr.arpa name = www.ourserver.internal我不明白是怎么回事。这方面的一些帮助可以帮助我避免在DMZ安装一个新的DNS服务器,只为了托管内部站点名称-
TY预先
顺便说一句:我使用的服务器已经完全修补了UbuntuServer11.10。
发布于 2012-03-23 15:05:49
好的..。看起来,它毕竟是/var/lib/bind/ourserver.内在. web文件中的一个问题,从零开始,现在它正在快速、无错误地解析!:),实际上,我要离开这里,这是我从其他网站获取的示例:
;
;BIND data file for example.com
;
$TTL 604800
@ IN SOA ns1.example.com. info.example.com. (
2007011501 ; Serial
7200 ; Refresh
120 ; Retry
2419200 ; Expire
604800) ; Default TTL
;
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
example.com. IN MX 10 mail.example.com.
example.com. IN A 192.168.254.1
ns1 IN A 192.168.254.1
ns2 IN A 192.168.254.2
www IN CNAME example.com.
mail IN A 192.168.254.1
ftp IN CNAME example.com.
example.com. IN TXT "v=spf1 ip4:192.168.254.1 a mx ~all"
mail IN TXT "v=spf1 a -all"https://askubuntu.com/questions/115225
复制相似问题