Windows Server DNS issue with Windows Client 10 Client machine

PerserPolis-1732 1,971 Reputation points
2024-07-01T11:40:02.1833333+00:00

Hi,

I have a issue with my Windows Client 10 machines (Notebooks). As you know Notebooks has as well LAN and as WLAN. If the user connected to the LAN, getting here a IP from for example 192.168.178.1 and the WLAN getting a different IP from DHCP for example 10.100.1.1. Either the LAN IP or WLAN IP are in recorded DNS server dependent on which network you are connected.

Sometime I cannot reach the machine either with ping or remote desktop or something else. I put in DNS Server the TTL value to "0", but sometime helps and sometimes not.

The only way is, I run the command line "ipconfig /registerdns" on the Client machine and on the DNS Server delete the Windows client record and run the "ipconfig /flushdns" , then I can reach the machine. I have to mention only if can access to the Client machine, I can run the above command line.

The best way is in that situation to run a logon script with power shell or batch with command "ipconfig /registerdns" and "ipconfig /flushdns". But how?

I have really no idea how I can resolve that issue. Any Idea?

Regards

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.