#!/bin/bash RULE_DIR=/etc/dnsdist/rules TMP=/tmp/geosite mkdir -p $TMP wget -q -O $TMP/cn.txt \ https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt if [ $? -eq 0 ]; then mv $TMP/cn.txt $RULE_DIR/cn.txt dnsdist --check-config if [ $? -eq 0 ]; then systemctl reload dnsdist fi fi