跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 家中路由器 openwrt 只接 lan 口用, ping 不通域名无法自动安装 opkg,编辑/etc/resolv.conf 把 nameserver 指定为局域网网关可解(默认配置是 127.0.0.1),但是…
未分類
9 4 月 2021

家中路由器 openwrt 只接 lan 口用, ping 不通域名无法自动安装 opkg,编辑/etc/resolv.conf 把 nameserver 指定为局域网网关可解(默认配置是 127.0.0.1),但是…

家中路由器 openwrt 只接 lan 口用, ping 不通域名无法自动安装 opkg,编辑/etc/resolv.conf 把 nameserver 指定为局域网网关可解(默认配置是 127.0.0.1),但是…

資深大佬 : cathedrel 6

但是重启机器后设置就没了,需要重新来一遍,请问怎么固化这个操作?

大佬有話說 (7)

  • 資深大佬 : elfive

    Openwrt 如果用的是 dnsmasq 的话,可以直接指定 DNS 转发,转发给你的上游路由器或者 DNS Server 就行了

  • 資深大佬 : AllenHua

    <a href=”https://hellodk.cn/post/124″ target=”_blank”>使用 DNSmasq 部署家庭网络的公共 dns 和个性化的局域网内的 dns 域名服务</a> 分享一下我的做法,主可以参考一下

    这个文件的内容 重启后就没了?会不会是你本地的 dnsmasq 服务没有启动 或缺少配置

    resolv.conf is the name of a computer file used in various operating systems to configure the system’s Domain Name System (DNS) resolver. The file is a plain-text file usually created by the network administrator or by applications that manage the configuration tasks of the system. The resolvconf program is one such program on FreeBSD or other Unix machines which manages the resolv.conf file. (来自维基百科)

  • 資深大佬 : LiYanHong

    lan 口可以设置 dns 啊

  • 資深大佬 : CatCode

    只接 LAN 口你是想做网关服务器用吧(俗称旁路由)
    旁路由你得指定网关到你的出口路由器 /光猫上啊

  • 主 資深大佬 : cathedrel

    @elfive 现在的 openwrt 都有 dnsmasq,但是这个东西怎么用我完全不懂,怎么设置“指定 DNS 转发”??

  • 主 資深大佬 : cathedrel

    @CatCode 我指定了网关的,但是不设置一下 resolv.conf 就是不行

  • 主 資深大佬 : cathedrel

    @elfive 解决了,设置里面有个 DNS forwardings,网关地址添加进去就好

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具