Giter Club home page Giter Club logo

Comments (11)

PikuZheng avatar PikuZheng commented on June 4, 2024

为啥不手动把dnsmasq端口改成非53

from smartdns.

imEgo avatar imEgo commented on June 4, 2024

为啥不手动把dnsmasq端口改成非53

额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效

from smartdns.

PikuZheng avatar PikuZheng commented on June 4, 2024

证实该问题存在。应该是ImmortalWRT与原版openwrt有什么差异

from smartdns.

PikuZheng avatar PikuZheng commented on June 4, 2024

有点怪啊 在我这不是设置端口问题 而是直接崩溃了

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

dump.zip
init-trace.log

from smartdns.

PikuZheng avatar PikuZheng commented on June 4, 2024

为啥不手动把dnsmasq端口改成非53

额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效

通过启动脚本实现的 https://github.com/pymumu/smartdns/blob/master/package/openwrt/files/etc/init.d/smartdns

from smartdns.

imEgo avatar imEgo commented on June 4, 2024

因为我在测试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.

imEgo avatar imEgo commented on June 4, 2024

为啥不手动把dnsmasq端口改成非53

额,确实可以,但是看到UI配置里的描述,想知道这个底层是如何实现的,而且这个feature在我这边的确不能正常生效

通过启动脚本实现的 https://github.com/pymumu/smartdns/blob/master/package/openwrt/files/etc/init.d/smartdns

感谢,刚才看了下源码找到实现方式了

from smartdns.

PikuZheng avatar PikuZheng commented on June 4, 2024

空的问题我考虑过,但是我试了不空也报错

from smartdns.

pymumu avatar pymumu commented on June 4, 2024

Crash问题看看能不能提供复现方法,提供gdb调用栈

from smartdns.

snday avatar snday commented on June 4, 2024

我的也有这个问题

from smartdns.

imEgo avatar imEgo commented on June 4, 2024

因为我在测试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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.