I asked this question on Stackoverflow already, but I realized this might be a better place to post it.
I am using IIS 10 on Windows Server 2016.
I have successfully configured IIS to use Windows Authentication when going onto the site. This works well when using the IP address or hostname of the server.
However I am going to host several sites on the same server so I tried configuring some DNS records to point to the IP of the server (
A records) and by defining a hostname in the IIS binding for that site I have managed to properly connect to the right site when using that name in the browser.
But for some reason, this breaks the Windows Authentication. When putting the username and password into the browser login-box it simply fails to authenticate.
I read this answer but it didn't provide a solution (https://stackoverflow.com/questions/15366649/iis-windows-authentication-weirdness)
I tried writing the username in different ways:
username domain\username domain.local\username
but it doesn't make any difference.
I looked at this page but it doesn't seem to be applicable.
I was advised to try turning off reverse DNS checking in the IIS metbase with this command:
adsutil set w3svc/EnableReverseDNS FALSE. In order to do it, I had to add the role IIS 6 Management Compatibility.
Does anyone know how to make this work?