环境:windows Server 2012 + Win10 客户端

问题:使用计算机名和 IP 地址可以正常连接打印机,但是使用另外的 A 记录或 CN 记录无法连接,报此错误

原因:这是打印服务 DNS 解析的问题

故障补充:假设你的服务器电脑名称叫 print01,但是你又建了一条 A 记录或者 CNname 叫 PR01,就会发现使用额外的 A 记录或 CN 记录就无法连接

故障截图:

操作不能完成 (错误 0x00000709)

解决办法:

  1. 注册表加入下列值
1
2
3
4
5
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 kspr01
10.1.1.1 kspr01
  1. 修改服务器的 host 文件 加入 cname 或者 A 记录
1
2
3
4
5
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 kspr01
10.1.1.1 kspr01

如果想知道原理,请参考:

https://support.microsoft.com/en-us/help/979602/error-message-when-you-try-to-connect-to-a-printer-by-using-an-alias-c

https://support.microsoft.com/zh-cn/help/2546625/operation-could-not-be-completed-error-0x00000709-error-when-you-use-a