【问题标题】:Finding what NS is used for a subdomain?查找用于子域的 NS?
【发布时间】:2011-10-12 16:36:51
【问题描述】:

来自 dns newb 的两个问题:

  1. 子域是否可以使用与其父域不同的名称服务器集?
    例如:abc.ca 使用 ns.whatever.com 和 ns2.whatever.com,而 sub.abc.ca 使用 ns.anything.com 和 ns2.anything.com

  2. 如果可能,查找此内容的命令是什么?像这样简单的事情会奏效吗?

dig ns sub.abc.ca

【问题讨论】:

  • 正确的语法应该是:dig sub.abc.ca NS

标签: dns nameservers dig


【解决方案1】:

为了安全起见,您应该直接向父域的权威服务器询问子域的任何NS 记录。

% dig +norec @parent sub.example.com. ns

这可确保您直接从马口中获得当前答案,而不是本地递归解析器缓存中的任何内容。

【讨论】:

  • 我收到这条消息:dig: couldn't get address for 'parent': not found
  • @Flimm parent 需要替换为父区域的名称服务器的实际主机名。
【解决方案2】:

是的,你是正确的。其他选项包括:host -t NS sub.abc.ca

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-11
    • 2020-02-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-28
    • 1970-01-01
    相关资源
    最近更新 更多