首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DNS解析问题

DNS解析问题
EN

Unix & Linux用户
提问于 2023-01-28 09:39:07
回答 1查看 227关注 0票数 0

我对DNS解析有问题。

路由似乎是有效的,因为我可以平其他服务器和traceroute也工作。

但是使用dig,我得到'a.root-servers.net未找到错误‘的a地址。

我在开学第15.4节。

代码语言:javascript
复制
dig +trace google.de @1.1.1.1

; <<>> DiG 9.16.20 <<>> +trace google.de @1.1.1.1
;; global options: +cmd
.                       515724  IN      NS      a.root-servers.net.
.                       515724  IN      NS      b.root-servers.net.
.                       515724  IN      NS      c.root-servers.net.
.                       515724  IN      NS      d.root-servers.net.
.                       515724  IN      NS      e.root-servers.net.
.                       515724  IN      NS      f.root-servers.net.
.                       515724  IN      NS      g.root-servers.net.
.                       515724  IN      NS      h.root-servers.net.
.                       515724  IN      NS      i.root-servers.net.
.                       515724  IN      NS      j.root-servers.net.
.                       515724  IN      NS      k.root-servers.net.
.                       515724  IN      NS      l.root-servers.net.
.                       515724  IN      NS      m.root-servers.net.
.                       515724  IN      RRSIG   NS 8 0 518400 20230209050000 20230127040000 951 . PHk0oAh7B64P4athdNaFRLc2Q/IPUaMhDOdxt98tIfOy7AN4BvWteUMg e1lmRQrHW1V6hPAGoKxNm72DV03Dvg25qZyFC8i2pm5ynEOXHUaGNDVQ +pTLw7xFB9l53WmkEXkjBXa4Zym7BankEClAWJOguovlO3jkFHcdVc6J OAT/jNzQ6RCorSSi027oQ+tc2zfc64IFCqg3z43VQx6eFtW+FtzUAvGT lmpbaOiKiZwEOb7Q9ltpqJc8c62uJWr3l2AU0f6ya4bqEU7ELVw5WA90 A6pC9/L2VQL0h83dnzRlRVTR8wwL2dO50sAOyuuItmgJxj/D2oHJi/A+ qnGIrw==
couldn't get address for 'a.root-servers.net': not found
couldn't get address for 'b.root-servers.net': not found
couldn't get address for 'c.root-servers.net': not found
couldn't get address for 'd.root-servers.net': not found
couldn't get address for 'e.root-servers.net': not found
couldn't get address for 'f.root-servers.net': not found
couldn't get address for 'g.root-servers.net': not found
couldn't get address for 'h.root-servers.net': not found
couldn't get address for 'i.root-servers.net': not found
couldn't get address for 'j.root-servers.net': not found
couldn't get address for 'k.root-servers.net': not found
couldn't get address for 'l.root-servers.net': not found
couldn't get address for 'm.root-servers.net': not found
dig: couldn't get address for 'a.root-servers.net': no more

编辑:当前/etc/resolv.conf

代码语言:javascript
复制
### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.
EN

回答 1

Unix & Linux用户

发布于 2023-01-28 10:47:36

如果已经安装了命名/绑定,那么这些根IP地址应该是命名/绑定安装的一部分( Debian/Ubuntu中的/etc/bind 9/db.root和Red分支中的/var/named/named.root )。您可能有一个过时的文件,在这种情况下,您可以在https://www.internic.net/domain/named.root获得最新的文件。

如果您没有命名/绑定安装,那么解析主机名到IP地址的DNS服务器应该是解决这些问题的服务器。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/733442

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档