add support for dns lookups

Signed-off-by: Eric <erich@xaos-ia.com>