/windows-dns-suffixes-gpo-bug

This repository is about a bug that impact Windows Servers OS with the DNS suffix searchlist configured by Group Policies. It provides also the solution.

MIT LicenseMIT

This article is about a bug that impact Windows Servers OS that uses a GPO to define the DNS suffix searchlist.

Impacted versions: Windows Server 2012 R2 and 2016. Non-impacted versions: Windows Pro

1. Issue context and how to reproduce it.

This bug appeared while playing with domain relationship infrastructure, but can be reproced without any relationship. It appeared when trying to ping NETBIOS name of computer of another domain name.
It affects the DNS suffix search list, which is made up of DNS suffixes that the computer appends to a NetBIOS short name to resolve the machine’s full domain name (e.g., when you ping MACHINE, the computer attempts ping MACHINE.example.com, ping MACHINE.test.com, and so on).

On the following scheme: red domain uses manual suffix searchlist configuration in the computers. Blue domain uses a group policy to deploy it.

  • Blue computer can ping red computers with NETBIOS names.
  • Blue server cannot ping red computers with NETBIOS names. But it works with full FQDN name.
scheme

When doing ipconfig /all on both computer and server, we can see the bug appearing.

  • Computers got both suffixes.
  • Server applied only one suffix.

But when going on the network card configuration on the server, both suffixes are installed. Here is the issue !

2. The solution.

In order to solve the issue, you must deny the policy on Windows server. Then you will have to set manually the suffix searchlist in the network card.

3. Reproducing the issue

First we have to setup a Windows server 2012 R2 domain controler and add a group policy object that defines the DNS suffix searchlist: image

Then apply it on another Windows sever 2012 R2. You can check it's working by watching the network card settings: image

But when you try an ipconfig /all, only the first suffix will appear. Here is the issue: image