為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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 於 修改