diff --git a/system/arm/bin/update-static-dns b/system/arm/bin/update-static-dns index 6be236f..4a430c5 100755 --- a/system/arm/bin/update-static-dns +++ b/system/arm/bin/update-static-dns @@ -2,7 +2,7 @@ export PATH=/system/bin -echo "127.0.0.1 localhost $(hostname)" > /system/etc/hosts +echo "127.0.0.1 localhost $(busybox hostname)" > /system/etc/hosts echo "::1 ip6-localhost" >> /system/etc/hosts for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do diff --git a/system/x86/bin/update-static-dns b/system/x86/bin/update-static-dns index 6be236f..4a430c5 100755 --- a/system/x86/bin/update-static-dns +++ b/system/x86/bin/update-static-dns @@ -2,7 +2,7 @@ export PATH=/system/bin -echo "127.0.0.1 localhost $(hostname)" > /system/etc/hosts +echo "127.0.0.1 localhost $(busybox hostname)" > /system/etc/hosts echo "::1 ip6-localhost" >> /system/etc/hosts for host in $(busybox cat /system/etc/static-dns-hosts.txt | busybox grep -vE '^\s*#'); do