=================
== Attt's blog ==
=================
Tech otakus save the world

修改华硕TUF-AX3000 V2的hosts域名解析

- Permalink

shell登入路由器

新增dnsmasq.conf.add文件

# touch /jffs/configs/dnsmasq.conf.add
cd /jffs/configs
# touch dnsmasq.conf.add
vi dnsmasq.conf.add

写入

addn-hosts=/jffs/configs/custom_hosts

新增custom_hosts文件

# touch /jffs/configs/custom_hosts
cd /jffs/configs
# touch custom_hosts
vi custom_hosts

写入自定义hosts:

192.168.1.1 local.site
192.168.1.2 local1.site
# ....

重启dnsmasq

service restart_dnsmasq

其他

路由器要作为设备DNS或者存在于设备DNS链上。

官改固件

https://fw.koolcenter.com/KoolCenter_ASUS_Official_Mod/TUF-AX3000_V2/