Setup Local DNS Server on Macbook

Zhimin Wen
2 min readSep 14, 2019

When testing cloud technologies, frequently we are required to point to some DNS entries or even some wildcard DNS names. We commonly see these in Cloudfoundry, Openshift and so on.

On the server-side, we can set up the DNS server to resolve the requirement. On the client-side, the DevOps’ laptop, a short-term solution is to add those wildcard entries into the /etc/hosts. However, probably a better approach is to set up a local DNS server to address the issue.

Thanks to the Linux flavor of Mac OS, the once looks like daunting work is actually…

--

--