Look up DNS record name of type type.
The name to look up
The type of record to look up (e.g., AAAA)
AAAA
if name or type are invalid
if the lookup was unsuccessful