MacResource
[uber-nerd] does anyone know how to (easily) set up a dns server on os x? - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? (/showthread.php?tid=131909)



[uber-nerd] does anyone know how to (easily) set up a dns server on os x? - mattkime - 02-12-2012

I'm curious if anyone here knows an "easy" way to set up a dns server on os x. i need my machine to point a domain name toward my machine rather than the machine that everyone else sees - for development purposes. (ACTUALLY....my iPhone needs to see that. otherwise i could just edit the hosts file. and my iPhone is using internet sharing with my mac. yes, its complicated but it keeps me employed)

I'm currently limping along with the help of a linux wielding coworker but i'd prefer to be in control.


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - C(-)ris - 02-13-2012

I don't think you need to setup a DNS server for that. I would think that adding an entry to your hosts file should take care of that. It is in the /etc/ directory.

You may need to flush your DNS cache after this, or a simple reboot.


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - C(-)ris - 02-13-2012

Sure, edit your post and add a requirement.

Download the Lion server app and then you can setup your own DNS. You will also need to setup DHCP and NAT to share the internet connection. It is a bit on the complicated side getting it all setup correctly but I think it is your only option. Good luck!


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - mattkime - 02-13-2012

does the Lion server app complicate other OS network features? For instance, if i want to turn on file or internet sharing, can i simply use the standard System prefs or do i need to use the Lion server app for that?


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - C(-)ris - 02-13-2012

mattkime wrote:
does the Lion server app complicate other OS network features? For instance, if i want to turn on file or internet sharing, can i simply use the standard System prefs or do i need to use the Lion server app for that?

Yes, you would have to use the server app for configuring most things. I'm not really sure it is a great idea for you, but I can't think of an easier way to do it. Maybe something with OpenDNS?


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - mattkime - 02-13-2012

it seems that bind is installed as part of the OS, at least in earlier versions. (i'm running lion) so its a matter of getting it configured and to start up at boot.


Re: [uber-nerd] does anyone know how to (easily) set up a dns server on os x? - mattkime - 02-14-2012

this might be a solution - http://www.justincarmony.com/blog/2011/07/27/mac-os-x-lion-etc-hosts-bugs-and-dns-resolution/