Multiple DHCP reservations - selection
I'm hoping somebody can help point me in the right direction. In our environment we use mostly laptops. Our DHCP server provided reservations for both the LAN port (from docking stations) and the WLAN adapter. Our problem is that PDQ is selecting the WLAN reservation instead of the LAN reservation. When the devices are on the docks, the WLAN adapter is disconected and the system shows as offline.
How does PDQ select which DNS entry to use? I'm assuming it's the first one to be returned. In our case sometimes that's the WLAN. Would moving the WLAN IP range to be higher than our LAN range be the recommended fix?
We use AD sync to get our systems into PDQ.
Comments
You can use scheduled task to update the DNS record use
(Get-WmiObject -Class BatteryStatus -Namespace root\wmi).PowerOnlineto determine if a laptop is connected to the dock. If the laptop is plugged in (docked), invoke "ipconfig /registerdns" to update its A record.https://devblogs.microsoft.com/scripting/use-powershell-to-detect-power-state-and-to-set-power-plan/
Or you can use Event ID 10000 (Network Connected under Applications and Services Logs -> Microsoft -> Windows -> NetworkProfile) as the trigger to run "ipconfig /registerdns" in scheduled task.
PDQ Deploy has option for "Test Multiple Address in Name Resolution", once enabled it will ping all the A records and use the first one that reponds.
https://www.youtube.com/watch?v=thDnmkvgx8Y&t=2312s
BTW don't forget flush DNS cache on your PDQ server regularly.