Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smartdns目前程序是否支持热加载 #1854

Open
maojianyou opened this issue Nov 10, 2024 · 4 comments
Open

smartdns目前程序是否支持热加载 #1854

maojianyou opened this issue Nov 10, 2024 · 4 comments

Comments

@maojianyou
Copy link

目前我弄了一个脚本反复切换域名的脚本,但生效只能使用/etc/init.d/smartdns restart 能否支持热加载也生效,比如
domain-set -name google-file /etc/smartdns/google.conf
domain-rules /domain-set:google/ -c none -nameserver google
google.conf我会自动新增绝对域名,但也会自动删除,那么就需要反复重启,但反复重启就可能导致,解析卡顿慢,因为53进程down了,如果本身热加载53进程就不会down,但配置也就生效了,可以实现这个功能不

@lalasou
Copy link

lalasou commented Nov 10, 2024

/etc/init.d/smartdns reload 你看看怎么实现的不知道可不可以

@maojianyou
Copy link
Author

/etc/init.d/smartdns reload 你看看怎么实现的不知道可不可以

image
不支持

@PikuZheng
Copy link
Contributor

谷歌的域名可以穷举 为啥要来回切换

@pymumu
Copy link
Owner

pymumu commented Nov 19, 2024

restart就可以了,加载速度应该是比较快的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants