Hello,
Enabling DNS scavenging in your Windows Server 2012 R2 environment can help you clean up stale DNS records. Here are some important steps and considerations to ensure everything works smoothly:
Steps to Enable DNS Scavenging:
- Enable Aging and Scavenging:
- Open the DNS Manager.
- Right-click the DNS server and select Properties.
- Go to the Advanced tab.
- Check the option Enable automatic scavenging of stale records and set the scavenging period (e.g., 7 days).
- Set Aging for Resource Records:
- Right-click the relevant DNS zone and select Properties.
- Go to the General tab.
- Click on Aging.
- Enable Scavenge stale resource records.
- Set the No-Refresh and Refresh intervals. These intervals determine how often records will be refreshed and when they will be eligible for scavenging. For example, 7 days for both.
- Verify and Apply:
- Apply the settings and ensure that the changes propagate to the relevant DNS zones and records.
Important Considerations:
- Static IP Addresses:
- Since your clients have static IP addresses, ensure that each of them is configured correctly and consistently, with the
Register this connection's addresses in DNS
option checked in the IP settings of each network adapter.
- Since your clients have static IP addresses, ensure that each of them is configured correctly and consistently, with the
- Computer Logon after Scavenging:
- Regarding your concern about users logging on after being away for more than two weeks, if the DNS record is scavenged, the computer should still be able to log on to the domain. When the computer is powered on and connected to the network, it will attempt to register its DNS record again. However, ensure that the No-refresh and Refresh intervals are configured correctly to avoid premature deletion of records.
For more detailed information, refer to the documents: Troubleshoot DNS scavenging issues - Windows Server | Microsoft Learn
- Client Side Configuration:
- Ensure that your clients are configured to dynamically update DNS records.
- Go to the network adapter settings on the client.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Go to Advanced > DNS and make sure Register this connection's addresses in DNS is checked.
- DNS Record Timestamps:
- The timestamp of a DNS record is updated when the record is refreshed.
- Dynamic updates occur when the client boots up, renews its lease, or every 24 hours as per the configured settings.
- Testing:
- After applying these settings, it is beneficial to monitor a few clients to ensure that the records are being updated and scavenged as expected.
- Use tools like
ipconfig /registerdns
on client machines to force a DNS update if necessary.
By following these steps and considerations, you should be able to implement DNS scavenging in your Windows Server 2012 R2 environment while ensuring that users can still log on to the domain after periods of inactivity.
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.