Create a (caching only) Domain Name Server (DNS) in 60 seconds,
or less.


NOTICE:

As of 10.5.5 (client only) it is not as easy as it was with 10.5.4 and earlier.
The current version of named (9.4.2-P2) has a ton of new stuff we have to deal with in /etc/dns/ ...


WARNING:

A vulnerability has been found (2008-July) in the DNS Apple uses !
Use Dan Kaminsky test to see if yours is vulnerable.

- To check it manually do,
dig @ip-address-of-your-server-goes-here +short porttest.dns-oarc.net TXT

OK, start the clock...


NOTES:

  1. So to START or STOP it use  load  or  unload .

  2. To make it survive a boot, add the  -w  switch.

  3. Be carefull if you do NOT have a firewall running or others will try to use your server too !

  4. As long as you have NOT mucked around with the named files in /var/named/ or /etc/named.conf all the defaults are ok.

  5. This trick will work for both Leopard (and Tiger too) client and server versions of OS-X.

  6. Check the logfile more /Library/Logs/named.log often, because periodic may not know about it.

  7. Do not forget to add it as your primary DNS in your network prefs.
    - Your more /etc/resolv.conf should have nameserver 127.0.0.1 as the top server.

  8. And as a BONUS, it will even resolve ip-v6 names for you too !

  9. Wanna have some fun, use
    cute pic
    Little Snitch
    and watch named go nuts !


  10. Or edit the plist,
    /System/Library/LaunchDaemons/org.isc.named.plist
    with Lingon or nano

back

© Gary Sullivan Maintainer of this page.
The URL of this page is:
http://www.hackerskitchen.com/mac-old/caching-dns.html
Constructive Comments, Suggestions and Requests are welcome.

Hello

Go Home