VPN DNS issues

Seemed to have a conflict w/ IPv6 VPN vs the IPv4 one, first had priority. Then I had an issue where the VPN IP was the same as the IP of my router. Fixed by moving router IP. Learned a lot about how DNS works.

Lookup website using particular DNS

  • nslookup somewebsite.com 8.8.8.8 looks up the website using the provided 8.8.8.8 DNS server.
  • systemd-resolve --status gives the current DNS settings.
  • sudo systemd-resolve --flush-caches flushes the DNS caches.