我正在尝试使用nsupdate
, running动态更新 DNS 服务器nsupdate -k mykey.private -d -v ./my-nsupdate-commands.txt
。
但我得到了错误:
Communication with 192.0.2.0#53 failed: operation canceled
在哪些情况下会nsupdate
导致operation canceled
?
完整输出:
Creating key...
Sending update to 192.0.2.0#53
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 47216
;; flags:; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 1
;; ZONE SECTION:
;example.com. IN SOA
;; UPDATE SECTION:
mydomain.example.com. 0 ANY A
mydomain.example.com. 61 IN A 212.51.139.142
;; TSIG PSEUDOSECTION:
mydomain.example.com. 0 ANY TSIG hmac-sha512. 1623020003 300 64 ... ... 47216 NOERROR 0
; Communication with 192.0.2.0#53 failed: operation canceled
目标服务器的防火墙可能会阻止 TCP 端口 53。
即使DNS通常使用UDP,
nsupdate
有时也需要TCP;见man nsupdate
: