diff --git a/cbits/check-mx.c b/cbits/check-mx.c
--- a/cbits/check-mx.c
+++ b/cbits/check-mx.c
@@ -7,5 +7,5 @@
 int check_mx(char *domain)
 {
   u_char nsbuf[4096];
-  return res_query(domain, ns_c_any, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0;
+  return res_query(domain, ns_c_in, ns_t_mx, nsbuf, sizeof (nsbuf)) > 0;
 }
diff --git a/check-email.cabal b/check-email.cabal
--- a/check-email.cabal
+++ b/check-email.cabal
@@ -1,26 +1,46 @@
-Name:                check-email
-Category:            Network
-License-File:        LICENSE
-Version:             1.0
-Cabal-version:       >= 1.2
-Build-type:          Simple
-Copyright:           2010 Chris Done
-Maintainer:          Chris Done <chrisdone@gmail.com>
-Author:              Chris Done
-License:             BSD3
-Synopsis:            Confirm whether an email is valid and probably existant.
-Description:         Confirm whether an email is valid and probably existant.
-Extra-source-files:  cbits/check-mx.h
+-- This file has been generated from package.yaml by hpack version 0.17.0.
+--
+-- see: https://github.com/sol/hpack
 
-Library
-  Build-depends:    base >= 4 && < 5
-                  , bytestring
-                  , email-validate >= 0.2
-  Extensions:       ForeignFunctionInterface
-  Exposed-Modules:  Network.Email.Check
-  Ghc-options:      -Wall
-  Include-dirs:     cbits
-  Install-includes: check-mx.h
-  C-sources:        cbits/check-mx.c
-  Extra-libraries:  resolv
-  Hs-source-dirs:   src
+name:                check-email
+version:             1.0.2
+synopsis:            Confirm whether an email is valid and probably existant.
+description:         See README at <https://github.com/qoelet/check-email#readme>
+category:            Network
+homepage:            https://github.com/qoelet/check-email#readme
+bug-reports:         https://github.com/qoelet/check-email/issues
+author:              Chris Done
+maintainer:          Kenny Shen <kenny@machinesung.com>
+copyright:           2010 Chris Done
+license:             BSD3
+license-file:        LICENSE
+build-type:          Simple
+cabal-version:       >= 1.10
+
+extra-source-files:
+    cbits/check-mx.h
+
+source-repository head
+  type: git
+  location: https://github.com/qoelet/check-email
+
+library
+  hs-source-dirs:
+      src
+  default-extensions: ForeignFunctionInterface
+  ghc-options: -Wall
+  include-dirs:
+      cbits
+  c-sources:
+      cbits/check-mx.c
+  extra-libraries:
+      resolv
+  build-depends:
+      base >= 4 && < 5
+    , bytestring
+    , email-validate >= 0.2
+  exposed-modules:
+      Network.Email.Check
+  other-modules:
+      Paths_check_email
+  default-language: Haskell2010
