How-To: Fix my Mac VPN DNS resolution

So I assume a lot of people who read my blog are techies (even if you are not feel free to read! This might help you!), but I had a rather odd issue with my Cisco VPN client and my Mac. It appears that I would be able to access my servers via their IPs no problem; why I know my servers by IP is a maddening thing, don’t ask. However, whenever I tried to reach my servers via their hostname, my Mac would just flat out reject it. It would sometimes auto correct itself, but I am in the tech field! I am spoiled by having the world at my fingertips, and want my information now! So after much browsing, I found a solution from my coworker vijay360!

sudo launchctl unload -w /System/Library/LaunchDaemons/

sudo launchctl load -w /System/Library/LaunchDaemons/

Basically, doing the above resets your Mac’s DNS 🙂 In short, for the non-techies out there, DNS is just a fancy way of saying what an IP should resolve to. For example, the internet would be a dark and scary place if was only accessible via: . DNS helps you as a human be able to enter and have the computer (and the internet) translate that for you! The story behind DNS is very simple, yet some facts about it are truly awesome and unbelievable. More on this soon 🙂

Hope this helps someone out there!

Original Source: