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)

Posted on Sep 7, 2012 7:44 AM

Reply
1 reply
Sort By: 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Hostname Lookup

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.