We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Address bar does not resolve local DNS (on Desktop and Android)

  • 3 个回答
  • 0 人有此问题
  • 6 次查看
  • 最后回复者为 Archirk

more options

I try to configure DNS server on Synology NAS. NAS has static ip address(192.168.0.30) on local network. I installed DNS server and added zone(nas with A record my.nas - 192.168.0.30). DNS server also added to router.

I am sure that DNS server configured properly because when I do in command line: curl my.nas and curl 192.168.0.30 provide same successful response and dig my.nas also show expected response.

Proxy options and DoH **are disabled** in my Firefox. Futhermore, on page `about:networking#dnslookuptool` browser resolves `my.nas` correctly.(scrrenshot)

However when i enter `my.nas` into address bar in Firefox(Desktop and mobile) it can not resolve it (in my case forward me to NAS login page)

I try to configure DNS server on Synology NAS. NAS has static ip address(192.168.0.30) on local network. I installed DNS server and added zone(nas with A record ''my.nas - 192.168.0.30''). DNS server also added to router. I am sure that DNS server configured properly because when I do in command line: ''curl my.nas'' and ''curl 192.168.0.30'' provide same successful response and ''dig my.nas'' also show expected response. Proxy options and DoH **are disabled** in my Firefox. Futhermore, on page `about:networking#dnslookuptool` browser resolves `my.nas` correctly.(scrrenshot) However when i enter `my.nas` into address bar in Firefox(Desktop and mobile) it can not resolve it (in my case forward me to NAS login page)
已附加屏幕截图

所有回复 (3)

more options

Try updating your local host file (/etc/hosts) with something like this...

192.168.0.30 my.nas

由jonzn4SUSE于修改

more options

I like to block Facebook. My host file has 127.0.0.1 facebook and when I enter facebook in the address bar I get nothing.

由jonzn4SUSE于修改

more options

jonzn4SUSE said

Try updating your local host file (/etc/hosts) with something like this... 192.168.0.30 my.nas

That not desired solution even if it works.

Current workaround is to disable google-search from address bar. Because, apparently, if zone is not publicly available(like com, net, dev etc) Firefox does not try to resolve it and redirects query to search engine.

由Archirk于修改