openwrt / openwrt/packages

`smartdns`: update to latest upstream 47.1

Open Beginner friendly
#29,054 9 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted release/25.12 Update package
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

smartdns

Maintainer

Nick Peng pymumu@gmail.com

OpenWrt Version

25.12.2

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce

Install OpenWRT package smartdns 46.1.
Observe /etc/init.d/smartdns set_main_dns() behavior: adds LAN IP with CIDR to dhcp_option causing DHCP/DNS issues.
Compare with upstream smartdns 47.1, where CIDR is removed and uci batch used.

Actual Behaviour

On modern OpenWRT (DSA), network.lan.ipaddr contains CIDR notation: 192.168.1.1/24
Causes broken DHCP DNS assignment (6,192.168.1.1/24) → clients receive invalid DNS entries.
Bug traced to /etc/init.d/smartdns in OpenWRT package.
Upstream smartdns 47.1 has corrected this (sed 's/\/.*//g') and uses uci batch.

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the smartdns package definition and the /etc/init.d/smartdns entry point, then compare its set_main_dns() behavior with upstream smartdns 47.1. Update the package to upstream 47.1 and verify that LAN addresses lose their CIDR suffix and DHCP DNS configuration uses the corrected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.