I'm trying to write a bit of code that checks to ensure that the contents
of a Host header in an HTTP request resolves to the same IP as is the
destination of the packet which contains the http request. This should be
fairly quick, so I only want to do the minimum number of lookups. Is
there a DNS library that lets me do something like
getrecord(nameOrIP,type,[server]) that would return an array of records
returned? 

Thanks,
Mathew Johnston