Is there a portable way to do a DNS lookup? I am developing in Unix (Linux) but I would prefer avoiding the use of Unix specific command line tools. I need both translation from machine name to IP and from IP to machine name. Thanks.