1 diff -uNr ldns-1.7.0/ldns/resolver.h ldns-1.7.0.mod/ldns/resolver.h
2 --- ldns-1.7.0/ldns/resolver.h 2016-12-20 12:48:22.000000000 +0200
3 +++ ldns-1.7.0.mod/ldns/resolver.h 2017-10-04 16:27:10.112448953 +0300
7 /** Default location of the resolv.conf file */
8 -#define LDNS_RESOLV_CONF "/etc/resolv.conf"
9 +#define LDNS_RESOLV_CONF "@TERMUX_PREFIX@/etc/resolv.conf"
10 /** Default location of the hosts file */
11 -#define LDNS_RESOLV_HOSTS "/etc/hosts"
12 +#define LDNS_RESOLV_HOSTS "@TERMUX_PREFIX@/etc/hosts"
14 #define LDNS_RESOLV_KEYWORD -1
15 #define LDNS_RESOLV_DEFDOMAIN 0
16 diff -uNr ldns-1.7.0/resolver.c ldns-1.7.0.mod/resolver.c
17 --- ldns-1.7.0/resolver.c 2016-12-20 12:48:22.000000000 +0200
18 +++ ldns-1.7.0.mod/resolver.c 2017-10-04 16:28:34.203407382 +0300
20 if(!line_nr) line_nr = &lnr;
23 - myfp = fopen("/etc/resolv.conf", "r");
24 + myfp = fopen("@TERMUX_PREFIX@/etc/resolv.conf", "r");
26 return LDNS_STATUS_FILE_ERR;