DNS libary in Haskell