this post was submitted on 24 Sep 2023
22 points (95.8% liked)

Firefox

17958 readers
629 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

[SOLVED] replaced router (for another reason) and new model works fine somehow

Hey guys, my Firefox on Android cant open selfhosted services using DNS host names on home wifi.

I moved to a new place, got new router, configured server with new local IP. On PC everything works fine, but on Android Firefox I get "Address Not Found" when I try to open local hostname. Using IP:port works, but its been working fine before we moved. Chrome on Android works fine, desktop PC works fine.

Im running pihole and nginx proxy manager on server (I reconfigured pihole, but settings should be the same as before). I have set server IP in router DNS settings. I have set static IP for wifi network on phone and DNS address of server (I think I didnt need this before, but now it doesnt work in chrome without it). I have 2nd pihole on rpi4 as secondary DNS server on both router and phone settings, but its not in use yet. When I reconnect to wifi firefox can open the page for like first 20 sec and then it stopps working.

What am I doing wrong? Ive been using firefox on android exclusively before we moved

top 11 comments
sorted by: hot top controversial new old
[–] graveyardchickenhunt 4 points 1 year ago (1 children)

Please check https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet

It might be that Firefox on Android is defaulting to only DNS over HTTPS for you

[–] [email protected] 1 points 1 year ago (1 children)

Thx. Is there anything I can do about that?

[–] graveyardchickenhunt 2 points 1 year ago* (last edited 1 year ago) (1 children)

As per the link you would have to set up the Canary domain. On pihole you can add custom domain names and that should be enough.

Reading the documentation again you should even just be able to blacklist the domain and it'll make Firefox use local DNS in the network.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

It took me a while because I replaced 2 routers in meantime. Thanks for tips, but didnt have time to try them. And seems like new router solved the problem somehow. I think it was something with ipv6 that was active while disabled, but just guessing. They replaced 1st router (ZTE) because it had super poor wifi and 2nd one (huawei) because ui was buggy and couldnt change some settings. New huawei seems fine for now and reverse proxy works great.

Thx for help

[–] toasteecup 3 points 1 year ago (1 children)

Check your Android's DNS settings. After that grab a tool like net-tools and see if you can resolve it from there.

[–] [email protected] 1 points 1 year ago (1 children)

After selecting home wifi ssid settings I changed from dhcp to static and set static IP and DNS (my server with pihole + another IP thats not in use yet). In wifi settings under DNS I can see both IP adress that Ive set, but I also see 3rd one that starts like IPV6 address from About Phone section.

Private DNS is off. Is there anything else? Im using Android 12 on Motorola Moto G42 (not rooted).

I got app called Net Tools from play store and I cant ping hostname (Unable to resolve). Pinging local IP works and I can scan opened ports, but cant ping https://192.168.100.40:3300

What can I do? Stupid chrome is working fine...

[–] toasteecup 1 points 1 year ago (1 children)

That's really weird. Is it a normal tld?

[–] [email protected] 2 points 1 year ago

Im not sure what you mean. Example is https://jellyfin.tride

Im using self signed certificates if that matters. I used to get certificate warning just like I get in chrome now

[–] [email protected] 2 points 1 year ago

That 3rd DNS is weird and also IPV6 that I havent set. IPV6 server is also disabled in router settings

[–] [email protected] 1 points 1 year ago (1 children)

Just to check I’m interpreting this correctly, Chrome on android works, on the same device? (This would verify that all your networking is fine, and that your dns entries are correct for your new network)

Can you see if the firefox local requests are making it to the pihole request log? If they’re not making it there, then we know that it’s got to be an in-app issue.

Could be an issue with dns prefetch caching or something else, narrowing down the scope of checks will focus the troubleshooting more effectively.

[–] [email protected] 1 points 1 year ago

Yes, Chrome on Android works. Firefox doesnt trigger anything in pihole query log. I tried to delete data and reinstall firefox, but didnt help. Chrome is making to pihole with no problem. Firefox can sometimes resolve hostname, but for short time only if I just reconnected to wifi.