6

我可以为多个域指定 DNS 服务器吗?例如,我知道有 3 个域的 DNS 服务器可以解析域名,所以我可以指定类似

b.com (domain)
u1.x1.y1.z1 (DNS server IP address which would resolve b.com)
l.m.n.o (default DNS server used if above DNS server unavailable)

c.com (domain)
u2.x2.y2.z2 (DNS server IP address which would resolve c.com)
l.m.n.o (default DNS server used if above DNS server unavailable)

d.com (domain)
u3.x3.y3.z3 (DNS server IP address which would resolve d.com)
l.m.n.o (default DNS server used if above DNS server unavailable)
4

2 回答 2

0

请参考https://github.com/whitekid/dnspost 这提供了 max osx 的解析器功能。

于 2012-11-01T10:11:10.443 回答
-3

将以下帮助。在 /etc/resolv.conf 我将指定,

search b.com
nameserver u1.x1.y1.z1
search c.com
nameserver u2.x2.y2.z2
search d.com
nameserver u3.x3.y3.z3

对于 d.com,将使用 NS u3.x3.y3.z3(其他 NS 即 u1.x1.y1.z1 和 u2.x2.y2.z2 不会用于 d.com)?如果输入域与上述任何给定域都不匹配,那么将使用本地名称服务器吗?如果上述名称服务器不可用或以 NO 响应,也将使用本地名称服务器?

于 2012-09-28T07:08:37.487 回答