Comments (11)
为啥不手动把dnsmasq端口改成非53
from smartdns.
为啥不手动把dnsmasq端口改成非53
额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效
from smartdns.
证实该问题存在。应该是ImmortalWRT与原版openwrt有什么差异
from smartdns.
有点怪啊 在我这不是设置端口问题 而是直接崩溃了
Thu Jan 25 17:28:40 2024 kern.info kernel: [ 1653.259810] smartdns[10400]: segfault at 25 ip 00007fc2911e57f4 sp 00007fc2916719c0 error 6 in smartdns[7fc29114e000+353000]
Thu Jan 25 17:28:40 2024 kern.info kernel: [ 1653.264737] Code: 4c ff ff ff 48 8b 45 f8 89 d1 48 8d 15 90 b9 20 00 48 89 c7 b8 00 00 00 00 e8 16 58 1f 00 89 45 ec 8b 45 ec 89 c2 48 8b 45 f0 <66> 89 50 25 48 8d 85 60 ff ff ff be 80 00 00 00 48 89 c7 e8 74 7c
Thu Jan 25 17:28:40 2024 daemon.info procd: Instance smartdns::smartdns s in a crash loop 7 crashes, 5 seconds since last crash
from smartdns.
为啥不手动把dnsmasq端口改成非53
额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效
通过启动脚本实现的 https://github.com/pymumu/smartdns/blob/master/package/openwrt/files/etc/init.d/smartdns
from smartdns.
因为我在测试ImmortalWRT在LXC里的稳定性,没有配置lan,我定位了一下问题是uci get network.lan.ipaddr
获取为空,导致init.d脚本里hostip为空直接跳过了后续dnsmasq设置,等后续我完整配置下环境再来测试反馈吧
具体脚本代码如下:
set_main_dns()
{
local hostip
hostip="$(uci -q get network.lan.ipaddr)"
dnsmasq_port="$(uci -q get dhcp.@dnsmasq[0].port)"
[ -z "$dnsmasq_port" ] && dnsmasq_port="53"
[ -z "$hostip" ] && return
from smartdns.
为啥不手动把dnsmasq端口改成非53
额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效
通过启动脚本实现的 https://github.com/pymumu/smartdns/blob/master/package/openwrt/files/etc/init.d/smartdns
感谢,刚才看了下源码找到实现方式了
from smartdns.
空的问题我考虑过,但是我试了不空也报错
from smartdns.
Crash问题看看能不能提供复现方法,提供gdb调用栈
from smartdns.
我的也有这个问题
from smartdns.
因为我在测试ImmortalWRT在LXC里的稳定性,没有配置lan,我定位了一下问题是
uci get network.lan.ipaddr
获取为空,导致init.d脚本里hostip为空直接跳过了后续dnsmasq设置,等后续我完整配置下环境再来测试反馈吧具体脚本代码如下:
set_main_dns() { local hostip hostip="$(uci -q get network.lan.ipaddr)" dnsmasq_port="$(uci -q get dhcp.@dnsmasq[0].port)" [ -z "$dnsmasq_port" ] && dnsmasq_port="53" [ -z "$hostip" ] && return
添加br-lan后,功能测试正常,可以正常替代dnsmasq绑定到53端口
from smartdns.
Related Issues (20)
- ipv6能过,不能用 HOT 29
- doh不支持RFC8484 get方法吗?会不会影响http缓存? HOT 1
- 云编译lede openwrt时使用懒人脚本更新smartdns版本不一致 HOT 4
- DNS 解析问题? HOT 16
- luci-lite测试召集。 HOT 1
- 返回ip数量问题 恩山域名 HOT 4
- 用的最新版为什么配置文件正确 log错误 HOT 8
- 【讨论】科学上网用的vps大家都安装smartdns做上游了吗 HOT 4
- force-no-CNAME 这个功能具体是做什么用的呢. HOT 4
- 请教一些配置的逻辑问题 HOT 6
- rr-ttl-min对first-ping有影响吗? HOT 5
- 如何用好 github 提供的ip 白名单 HOT 4
- ip-alias 似乎没有起作用 HOT 2
- cache-size 设置为 -1 启动失败 HOT 1
- 双栈域名的解析结果只返回IPV4地址,其他情况正常返回
- 上游DNS不可访问时自动回退(fallback) HOT 5
- cache-checkpoint-time是不是设定了最小时间? HOT 2
- s3.amazonaws.com奇怪的问题 HOT 12
- DOT服务端突然不能用了 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns.