An example of how to lookup hostnames within your systems DNS configuration, using C code.