Skip to content

[Bug] hosts不支持 .lan 的一级域名 #873

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

Open
4 tasks done
Matthew-Harris-36 opened this issue Feb 9, 2025 · 2 comments
Open
4 tasks done

[Bug] hosts不支持 .lan 的一级域名 #873

Matthew-Harris-36 opened this issue Feb 9, 2025 · 2 comments

Comments

@Matthew-Harris-36
Copy link

在提交之前,请确认

  • 我已经尝试搜索过 Issue ,但没有找到相关问题。
  • 我正在使用最新的 mosdns 版本(或者最新的 commit),问题依旧存在。
  • 我仔细看过 wiki 后仍然无法自行解决该问题。
  • 我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

mosdns 版本

v5.3.3-3

操作系统

openwrt

Bug 描述和复现步骤

rule/hosts.txt中不能指定.lan的一级域名,哪怕添加了,nslookup时也会有如下提示。不得已,只能改用.home的一级域名。我也找某个好友测试下,他也有这问题,希望开发者能修复下。

hosts内容
Image
报错提示
Image

使用的配置文件

domain:nas.home 192.168.2.14
test.lan 192.168.2.14

mosdns 的 log 记录

@sbwml
Copy link

sbwml commented Feb 11, 2025

有没有一种可能,这是 openwrt dnsmasq 的默认设置。

本地解析这些项目 /lan/
永不转发这些匹配的域名或子域名;只从 DHCP 或 hosts 文件进行解析。

@Matthew-Harris-36
Copy link
Author

@sbwml 谢谢解答,我找到了。

Image

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

2 participants