내 호스트(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
당신을 위해 그것을 찾을 것입니다.