Hello lalajee, I am Henry and I want to help you with this issue
The root cause is a combination of traditional CNAME requirements and the mandatory security hardening introduced to fix the "PrintNightmare" vulnerability (CVE-2021-34527).
While the server-side settings you've configured allow the server to listen on the alias, the security updates now require a higher level of RPC authentication from the client. When using a CNAME, this process can fail.
Here are the complete steps for server-side configuration. Please verify every step is complete. A reboot is recommended after all changes are made.
- Service Principal Names (SPNs): Kerberos will fail without these. All commands are taken from the section “Register the Kerberos service principal names (SPNs)”
- Command:
setspn -A HOST/OldPrintServer NewPrintServer - Command:
setspn -A HOST/OldPrintServer.yourdomain.com NewPrintServer - Verification:
setspn -L NewPrintServer
- Command:
- DisableStrictNameChecking: Allows the server to accept connections for names other than its own.
- Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
- Value: DisableStrictNameChecking
- Type: REG_DWORD
- Data: 1
- BackConnectionHostNames: (Alternative to DisableStrictNameChecking but often used together). Explicitly tells the server which aliases to accept.
- Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
- Value: BackConnectionHostNames
- Type: REG_MULTI_SZ
- Data: OldPrintServer and OldPrintServer.yourdomain.com (each on a new line).
- DnsOnWire: Forces the spooler to use DNS for name resolution.
- Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print
- Value: DnsOnWire
- Type: REG_DWORD
- Data: 1
For the configuration steps at 2 and 4, you can refer to the public document “Unable to connect to a printer using a CNAME record”
I hope this information and these keywords help point you in the right direction for your research. Let me know how it goes, and if this answer helps, feel free to hit “Accept Answer” so others can benefit too