How to Check and Fix DNS Leaks with a VPN

Ensure your online privacy by learning how to check and fix DNS leaks after connecting to a VPN.

Key takeaway: follow the security steps carefully and prefer AES-256 encryption where available.

Understanding DNS Leaks When you connect to a VPN (Virtual Private Network), your internet traffic is encrypted, and your real IP address is hidden. However, if your DNS (Domain Name System) queries are exposed, it can compromise your privacy. This is known as a DNS leak. Understanding and fixing DNS leaks is crucial to maintaining your online privacy. Before You Start • A computer or device with internet access • A reliable VPN service (like Astraguard VPN) • Basic understanding of network settings • A DNS leak test tool (many are available online for free) Checking for DNS Leaks Follow these steps to check if your VPN connection is leaking DNS information: 1. Connect to your VPN. 2. Open your web browser and go to a DNS leak test website. 3. Run a test to check your DNS servers. 4. If the results show DNS servers from your ISP (Internet Service Provider) and not from your VPN, you have a DNS leak. Fixing DNS Leaks If you discover a DNS leak, follow these steps to fix it based on your operating system: Windows 1. Go to 'Control Panel'. 2. Select 'Network and Sharing Center'. 3. Click on 'Change adapter settings'. 4. Right-click on your active network connection and choose 'Properties'. 5. Select 'Internet Protocol Version 4 (TCP/IPv4)' and click 'Properties'. 6. Choose 'Use the following DNS server addresses' and enter your VPN's DNS addresses. 7. Click 'OK' to save the settings. macOS 1. Open 'System Preferences'. 2. Go to 'Network'. 3. Select your active network connection and click 'Advanced'. 4. Click the 'DNS' tab. 5. Remove any ISP DNS addresses and add your VPN's DNS addresses. 6. Click 'OK' and then 'Apply'. Linux 1. Open a terminal. 2. Edit the file '/etc/resolv.conf' using a text editor. 3. Replace existing DNS entries with your VPN's DNS addresses. 4. Save and close the file. Android 1. Go to 'Settings'. 2. Tap 'Network & internet'. 3. Select 'Advanced' and then 'Private DNS'. 4. Enter your VPN's DNS hostname. 5. Save the settings. iPhone 1. Open 'Settings'. 2. Tap 'Wi-Fi' and select your active network. 3. Tap 'Configure DNS'. 4. Switch to 'Manual' and add your VPN's DNS addresses. 5. Save the changes. Key Takeaways • DNS leaks can compromise your online privacy by revealing your browsing activity. • Regularly test for DNS leaks using online tools. • Fix DNS leaks by configuring your device's DNS settings to use your VPN's DNS servers. • Always verify the latest settings from your VPN provider. FAQs Q: What is a DNS leak? A: A DNS leak occurs …

Related reading

VPN guides and use cases

More blog articles · VPN plans