When configuring Windows Server 2012 R2 DirectAccess with a dedicated network location server, the Remote Access Setup Wizard may fail with the following error:
The configuration was rolled back successfully. The URL specified for the network location server cannot be resolved to an IP address.
However, the name can be resolved successfully and when stepping through the remote access setup, validation of the network location server is successful.
This has been identified as an issue with the DNS client in Windows Server 2012 R2. Microsoft has been made aware of the issue and may in the future release an update for this. For now, if you encounter this issue you can implement a workaround by opening an elevated PowerShell prompt on the DirectAccess server and entering the following command:
Set-ItemProperty -Path ‘HKLM:SYSTEM\CurrentControlSet\Services\Dnscache\Parameters’ -Name DisableServerUnreachability -Value 1
Once complete, the DirectAccess setup wizard should complete successfully.