大网数据广告活动
服务器运维问答

BIND9: Is possible to point another ip address for main domain?

· 52CE 我爱测

This is my zone file: $ORIGIN . $TTL 10800 ; 3 hours example.com IN SOA ns1.example.com. email.example.com. ( 25 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 3600 ; minimum (1 hour) ) NS ns1.e…

问题原文

原帖链接 · Vahid Alimohamadi · CC BY-SA 4.0

This is my zone file:

$ORIGIN .
$TTL 10800      ; 3 hours
example.com           IN SOA  ns1.example.com. email.example.com. (
                                25         ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                3600       ; minimum (1 hour)
                                )
                        NS      ns1.example.com.
                        NS      ns2.example.com.
                        A       192.0.2.1
                        MX      10 mail.example.com.
$ORIGIN example.com.
ftp                     CNAME   example.com.
mail                    A       192.0.2.1
ns1                     A       192.0.2.1
ns2                     A       192.0.2.1
www                     CNAME   example.com.

Is it possible ns1.example.com be 192.0.2.1 but example.com be 192.0.2.2 ? (without using another DNS server on 192.0.2.2) How I can do that?

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 4.0

The example.com. IN A can certainly point to any IP address other than the IP addresses of your authoritative name servers. However, you should still have at least two different name servers on separate networks. This comes from IANA's Technical requirements for authoritative name servers:

Minimum number of name servers

There must be at least two NS records listed in a delegation, and the hosts must not resolve to the same IP address.

Network diversity

The name servers must be in at least two topologically separate networks. A network is defined as an origin autonomous system in the BGP routing table. The requirement is assessed through inspection of views of the BGP routing table.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-03-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。