b8d2c8
diff --git a/ncat/ncat_core.c b/ncat/ncat_core.c
b8d2c8
index b76d5ea..9f0b0cf 100644
b8d2c8
--- a/ncat/ncat_core.c
b8d2c8
+++ b/ncat/ncat_core.c
b8d2c8
@@ -289,6 +289,7 @@ int resolve(const char *hostname, unsigned short port,
b8d2c8
     int result;
b8d2c8
 
b8d2c8
     flags = 0;
b8d2c8
+    flags |= AI_ADDRCONFIG;
b8d2c8
     if (o.nodns)
b8d2c8
         flags |= AI_NUMERICHOST;
b8d2c8