[FR]
Traduit avec Google Translate. Je m’excuse si j’ai accidentellement dit quelque chose de méchant à propos de votre mère … o.O En tout cas …
J’essaie de résoudre un problème où mon routeur n’a pas de bouclage en épingle à cheveux / NAT et je ne peux pas éditer le fichier / etc / hosts sur mon téléphone sans racine. Pour cette raison, mon téléphone ne peut pas accéder à mes domaines lorsque je suis chez moi avec le wifi à la maison.
Je pense cependant avoir trouvé une solution. Cela semble-t-il fonctionner?
Configurez DNSmasq pour faire pointer mes domaines Yunohost vers l’adresse IP interne du serveur YunoHost au lieu de l’adresse IP publique.
[Nebulo] (https://git.frostnerd.com/PublicAndroidApps/smokescreen) est une application FOSS Android, qui vous permet d’indiquer à votre téléphone d’utiliser un DNS spécifique pour des noms de domaine spécifiques. Pointez-le sur mon serveur YunoHost pour mes domaines YunoHost.
Bénéfice?
[EN]
Translated with Google Translate. I appologize if I have accidentally said anything nasty about your mother… o.O Anyway…
I’m trying to get around a problem where my router doesn’t have hairpinning / NAT loopback, and I can’t edit the /etc/hosts on my unrooted phone. Because of this, my phone can’t access my domains when I’m at home on my home wifi.
I think I may have found a solution though. Does this sound like it would work?
Configure DNSmasq to point my Yunohost domains to the YunoHost server internal IP address instead of the public IP address.
Nebulo is a FOSS android app, which lets you tell your phone to use a specific DNS for specific domain names. Point it to my YunoHost server for my YunoHost domains.
Hmmm I’m not 100% familiar with all that stuff but maybe what you’re looking for is something like Pi-hole https://github.com/YunoHost-Apps/pihole_ynh - though maybe it does too much stuff compared to what you’re looking for.
Otherwise yup, you could tweak DNSmasq’s conf so that it acts as a resolver, idk if that’d work out of the box or require a lot of tweaking.
I have recently implemented this at home. But I only needed to configure DNSmasq. My phone (with Samsung default ROM) remembers the DNS settings per WiFi network. I only had to set the YNH server’s IP address in the DNS field of the WiFi configuration once. (No need for additional app)
Maniack_Crudelis’ tutorial was enough for me to set everything up. It is in French though, don’t hesitate to let us know if you need a translation.
I have a Samsung phone with Android 9. Where are you changing the DNS settings? The closest thing I can see is under Connections>WiFi>{My SSID}>Advanced>Proxy>Manual but I don’t see any mention of where to put a DNS server IP, just a proxy.
That’s weird. Same versions here. Mine is a brand new install of everything, so the only thing I can think of is that maybe you had an older version you upgraded and it kept the old config file?
I guess I can just try copying yours and see what happens…