diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,6 +2,12 @@
 
 # Revision history for `resolv`
 
+## 0.2.0.1
+
+_2023-03-31, Alexey Radkov and Andreas Abel_
+
+* Fix 0.2.0.0: Ship updated `configure` script.
+
 ## 0.2.0.0
 
 _2023-03-31, Alexey Radkov and Andreas Abel_
diff --git a/cbits/hs_resolv_config.h.in b/cbits/hs_resolv_config.h.in
--- a/cbits/hs_resolv_config.h.in
+++ b/cbits/hs_resolv_config.h.in
@@ -3,6 +3,10 @@
 /* Define to 1 if you have the <arpa/nameser.h> header file. */
 #undef HAVE_ARPA_NAMESER_H
 
+/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
+   don't. */
+#undef HAVE_DECL_H_ERRNO
+
 /* Define to 1 if you have the declaration of `res_nquery', and to 0 if you
    don't. */
 #undef HAVE_DECL_RES_NQUERY
@@ -31,6 +35,9 @@
 
 /* Define to 1 if you have the <string.h> header file. */
 #undef HAVE_STRING_H
+
+/* Define to 1 if `res_h_errno' is a member of `struct __res_state'. */
+#undef HAVE_STRUCT___RES_STATE_RES_H_ERRNO
 
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -1823,6 +1823,66 @@
   as_fn_set_status $ac_retval
 
 } # ac_fn_c_compute_int
+
+# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
+# ----------------------------------------------------
+# Tries to find if the field MEMBER exists in type AGGR, after including
+# INCLUDES, setting cache variable VAR accordingly.
+ac_fn_c_check_member ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
+printf %s "checking for $2.$3... " >&6; }
+if eval test \${$4+y}
+then :
+  printf %s "(cached) " >&6
+else $as_nop
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$5
+int
+main (void)
+{
+static $2 ac_aggr;
+if (ac_aggr.$3)
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+  eval "$4=yes"
+else $as_nop
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$5
+int
+main (void)
+{
+static $2 ac_aggr;
+if (sizeof ac_aggr.$3)
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+  eval "$4=yes"
+else $as_nop
+  eval "$4=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$4
+	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_member
 ac_configure_args_raw=
 for ac_arg
 do
@@ -3782,7 +3842,20 @@
 printf "%s\n" "#define HAVE_DECL_RES_NQUERY $ac_have_decl" >>confdefs.h
 
 
+ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
+#include <netdb.h>
 
+" "$ac_c_undeclared_builtin_options" "CFLAGS"
+if test "x$ac_cv_have_decl_h_errno" = xyes
+then :
+  ac_have_decl=1
+else $as_nop
+  ac_have_decl=0
+fi
+printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h
+
+
+
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
 printf %s "checking for library containing res_query... " >&6; }
 if test ${ac_cv_search_res_query+y}
@@ -3972,6 +4045,26 @@
 USE_RES_NQUERY=0
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which C library contains res_nquery(3)" >&5
 printf "%s\n" "$as_me: WARNING: could not figure out which C library contains res_nquery(3)" >&2;}
+
+fi
+
+
+ac_fn_c_check_member "$LINENO" "struct __res_state" "res_h_errno" "ac_cv_member_struct___res_state_res_h_errno" "
+#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+# include <arpa/nameser.h>
+#endif
+#include <resolv.h>
+
+"
+if test "x$ac_cv_member_struct___res_state_res_h_errno" = xyes
+then :
+
+printf "%s\n" "#define HAVE_STRUCT___RES_STATE_RES_H_ERRNO 1" >>confdefs.h
+
 
 fi
 
diff --git a/resolv.cabal b/resolv.cabal
--- a/resolv.cabal
+++ b/resolv.cabal
@@ -1,7 +1,7 @@
 cabal-version:       2.2
 
 name:                resolv
-version:             0.2.0.0
+version:             0.2.0.1
 
 synopsis:            Domain Name Service (DNS) lookup via the libresolv standard library routines
 description: {
