大网数据广告活动
服务器运维问答

Why does nsupdate fail with "operation canceled"?

· 52CE 我爱测

I'm trying to dynamically update a DNS server using nsupdate , running nsupdate -k mykey.private -d -v ./my-nsupdate-commands.txt . But I get the error: Communication with 192.0.2.0#53 failed: operation canceled In which cases ca…

问题原文

原帖链接 · nh2 · CC BY-SA 4.0

I'm trying to dynamically update a DNS server using nsupdate, running nsupdate -k mykey.private -d -v ./my-nsupdate-commands.txt.

But I get the error:

Communication with 192.0.2.0#53 failed: operation canceled

In which cases can nsupdate result in operation canceled?


Full output:

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

已采纳解答

原帖链接 · nh2 · CC BY-SA 4.0

The target server's firewall may be blocking TCP port 53.

Even though DNS usually uses UDP, nsupdate sometimes needs TCP; see man nsupdate:

By default, nsupdate uses UDP to send update requests to the name server unless they are too large to fit in a UDP request, in which case TCP is used.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-06-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。