dns:对我的访客的空响应(特定域)

dns:对我的访客的空响应(特定域)

在我的主机(Windows)中,我能够获取我的域后面的IP:

> nslookup.exe setools.t-systems.es
Servidor:  clients-susu1.dns.telekom.de
Address:  10.199.135.102

Respuesta no autoritativa:
Nombre:  setools.t-systems.es
Address:  10.49.89.9

在我的访客(archlinux)中,我试图访问我的服务,但正如你所看到的,我得到了一个空响应:

$ dig setools.t-systems.es
; <<>> DiG 9.18.21 <<>> setools.t-systems.es
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54338
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;setools.t-systems.es.      IN  A

;; Query time: 3 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Jan 25 14:33:28 CET 2024
;; MSG SIZE  rcvd: 49

使用dog

$ dog setools.t-systems.es -J
{
  "responses": [
    {
      "additionals": [],
      "answers": [
        {
          "address": "10.49.89.9",
          "class": "IN",
          "name": "setools.t-systems.es.",
          "ttl": 27,
          "type": "A"
        }
      ],
      "authorities": [],
      "queries": [
        {
          "class": "IN",
          "name": "setools.t-systems.es.",
          "type": 1
        }
      ]
    }
  ]
}

但是,它也可以从以下位置获取 ip api.ocpdes.t-systems.es

$ dog api.ocpdes.t-systems.es -J
{
  "responses": [
    {
      "additionals": [],
      "answers": [
        {
          "address": "10.49.99.166",
          "class": "IN",
          "name": "api.ocpdes.t-systems.es.",
          "ttl": 331,
          "type": "A"
        }
      ],
      "authorities": [],
      "queries": [
        {
          "class": "IN",
          "name": "api.ocpdes.t-systems.es.",
          "type": 1
        }
      ]
    }
  ]
}

我的/etc/resolv.conf

# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search lan lan\044tse.ads.t-systems.es

有任何想法吗?

答案1

你只需要 Linux 端真正的 dns 服务器。 8.8.8.8 和 8.8.4.4 是 google 的。它们非常容易配置。 /var 中有一个resolv.conf。删除那个。它会再次生成,因为它是一个套接字。这可能会找到你的 isp dns。$ locate -A var resolv.conf会为您找到的。

相关内容