我有以下架构。
域example.com向外部提供商注册。
AWS内的2台DNS服务器:
DNS服务器1(主):
- 为我的Windows Active Directory 2008 R2使用Linux BIND DNS服务器
- DNS Named.service isc_stdio_open'data / named.run'failed:permission denied
- 环境主机urls约定和使用通配符DNS
- IP地址转到子域而不是主域
- 奇怪的DNS错误
公共IP:100.200.300.400 | 公共DNS:100-200-300-400.aws.com | 私有IP:1.2.3.4
DNS服务器2(从属):
公共IP:101.202.303.404 | 公共DNS:101-202-303-404.aws.com | 私有IP:5.6.7.8
named.conf.local
主:
zone "example.com" { type master; file "/etc/bind/db.example.com"; notify yes; allow-transfer { 5.6.7.8; }; };
奴隶:
zone "example.com" { type slave; file "/etc/bind/db.example.com"; notify yes; allow-transfer { 1.2.3.4; }; };
和db.example.com
$TTL 86400 @ IN SOA localhost root.localhost. ( 1 ; Serial 15M ; Refresh 15M ; Retry 15M ; Expire 15M ) ; Negative Cache TTL ; example.com. IN A SOME-IP
我的问题:这个configuration好吗?
特别是我想知道:
*我应该使用私人或公共IP通信主从
*是localhost root.localhost。 在db.example.com正确?
我在AWS中使用Ubuntuconfiguration了Master – Slave DNS服务器。 configuration这两个实例的公有IP(Elastic IP)。 把每个服务器的FQDNparsing为弹性IP。 而不是localhost使用fqdn。 我遵循Ubuntu HOWTO的这个实现。
在Slave服务器上使用“also-notify”语句。 在所有configuration文件中使用FQDN更改本地主机。 其余的语法似乎没问题。
在DNSconfiguration之前,请确保每台服务器parsing自己的公共IP并parsing来自其他服务器的相应IP。