You can find some good examples of usage of the inet_dns module in the load balancing dns implementation of Eddie, an open source project at http://www.eddieware.org.