Hostname Lookup
Is there a way to implement a different hostname lookup method for OSX?
I have written a small P2P DNS program for the IPv6 ages. I use it to keep track of my different hosts around different places. So, I am always able to use a specific hostname like mylovelyhost.p2p whatever its IP address is at the moment.
For Linux I added a module to the NSS system (/etc/nsswitch.conf). So my module gets queried after the hosts file and before DNS and Avahi/Bonjour. If a hostname ends on .p2p, it gets active. Otherwise the query gets passed on to the next module.
Is there an API within OSX to do the same?
Kind regards,
Aiko
OS X Mountain Lion (10.8.1)