Vipshop Quality Engineering
Jun 6, 2019 · Fundamentals
How to Dynamically Override Java DNS Resolution for Automated Tests
This article explains how to replace Java's default DNS resolver with a custom NameService, disable DNS caching, and manipulate DNS entries at runtime using reflection, enabling flexible, environment‑agnostic automated test cases without hard‑coding IP addresses.
Custom NameServiceDNSJava
0 likes · 16 min read
