From 26a7b3d80864045fc946b1d0ee568497c59fab70 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Fri, 18 Jul 2025 18:16:54 +1000 Subject: [PATCH] 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. --- scripts/create-adguardhome.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-adguardhome.sh b/scripts/create-adguardhome.sh index abcd1c9..7118ab7 100755 --- a/scripts/create-adguardhome.sh +++ b/scripts/create-adguardhome.sh @@ -59,7 +59,7 @@ while read entry; do continue fi for i in ${cacheip}; do - echo "${domainprefix}${parsed}^\$dnsrewrite=${i}" >> ${outputfile} + echo "${domainprefix}${parsed}^\$dnsrewrite=${i},dnstype=A" >> ${outputfile} done done <<< $(cat ${basedir}/$filename | sort); done <<< $(jq -r ".cache_domains[${entry}].domain_files[${fileid}]" ${path})