From 0fb55395bbc9e0608eaa22ffd627798f84e7b151 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Fri, 18 Jul 2025 18:39:48 +1000 Subject: [PATCH] fix: explicitly specify ipv4 addresses in adguard script (#265) * fix: explicitly specify ipv4 addresses This change fixes the AdGuard Home generation script by disabling the return of ipv6 addresses. This would have been causing issues for users who are running dual stack with the addresses that accept both ipv4 and ipv6 traffic. * fix: explicitly block returning on ipv6 queries --- scripts/create-adguardhome.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/create-adguardhome.sh b/scripts/create-adguardhome.sh index abcd1c9..25df23a 100755 --- a/scripts/create-adguardhome.sh +++ b/scripts/create-adguardhome.sh @@ -60,6 +60,7 @@ while read entry; do fi for i in ${cacheip}; do echo "${domainprefix}${parsed}^\$dnsrewrite=${i}" >> ${outputfile} + echo "${domainprefix}${parsed}^\$dnstype=AAAA" >> ${outputfile} done done <<< $(cat ${basedir}/$filename | sort); done <<< $(jq -r ".cache_domains[${entry}].domain_files[${fileid}]" ${path})