diff -uNr c-ares-1.13.0/ares_private.h c-ares-1.13.0.mod/ares_private.h
--- c-ares-1.13.0/ares_private.h	2017-06-16 15:53:03.000000000 +0300
+++ c-ares-1.13.0.mod/ares_private.h	2017-09-12 11:24:17.332992105 +0300
@@ -84,7 +84,7 @@
 #ifdef ETC_INET
 #define PATH_HOSTS              "/etc/inet/hosts"
 #else
-#define PATH_HOSTS              "/etc/hosts"
+#define PATH_HOSTS              "@TERMUX_PREFIX@/etc/hosts"
 #endif
 
 #endif
