Do you really have another DNS server to forward to? This is not mandatory.
What is “Interface” for? Not documented. My Raspberry PI plugs into my router via ethernet cable.
I can access HA using URL: https://redacted.duckdns.org:8123
with my Iphone connect to my local network using WIFI.
When I am connected using LTE or external network I can use the same URL.
This may help. Looking in my notes, I discovered that I went into my iPhone wireless settings to add the DNS server running on the raspberry PI.
Local Access from iPhone
Access your WiFi settings for your home wireless connection. (Click circled “i”)
Click on the DHCP tab, then the DNS row
Copy what you had in case you want to revert.
Replace with:
192.168.1.65, 8.8.8.8, 8.8.4.4
where 192.168.1.65 is replaced with the IP address fixed to your Raspberry Pi.
The 8.8.8.8 , 8.8.4.4 are backup DNS from Google in case the Raspberry Pi is down.
You need to do something similar on your Samsung phone.
Once working, you should see something like this in your dnsmasq log file:
dnsmasq[9]: query[AAAA] redacted.duckdns.org from 192.168.1.72
dnsmasq[9]: config redacted.duckdns.org is NODATA-IPv6
dnsmasq[9]: query[A] redacted.duckdns.org from 192.168.1.72
dnsmasq[9]: config redacted.duckdns.org is 192.168.1.65
192.168.1.72 is my iPhone
192.168.1.65 is hassio
I assume that you have checked the duckdns log to see that it is working, are using 8123 in your configuration.yaml and port forwarding 8213 to 8123 on your router.
PS.
dnsmasq is hard to test in hassio since system commands like ping don’t work as they did in hassbian.
@mikgabo could you share your duckdns configuration in yaml file and what your did in google wifi app to get the ports forwarded to hassio.
I have a ATT ZTE 2700a LTE modem/router
Google Wifi
PI on google wifi network with a static ip.
Did you use a static ip on your modem and google wifi? This has been a real pain trying to figure out.
I have my config yaml as below
duckdns:
base_url: xxxxxxxx.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
access_token: xxxxxxxxxxxxxxxxx
I have similer issue, I set up duck dns and it works, I can connect from my home on gprs but with wifi in same network it doesn’t work and I enter ip adress to safari and I can connect.
Why I can not connect to dns in the same network?
What kind of settings I need to make on my modem?
@GrahamS please help me with duckdns setup on HassOs. things what i have done : installed duckdns done token and domain setup saved it. i have opened port forwarding on 80 to 80 and 443 to 443 then i started duckdns from addon… added port 443 to 8123 entered domain and ssl_certificate and ssl_key in configuration… tried to access my domain with local and also mobile data but i can not access the Hass… i can still access with 192.168.xx.xxx:8123 from local network…
Install Dnsmasq add-on to allow access from INTERNAL network using https://redacted.duckdns.org:8123 (No calling your ISP!) You can stop here if you want. I went to step 3 to eliminate the port 8123 specification.
Install NGINX add-on to allow access https://redacted.duckdns.org Now port 8123 is removed and port 443 is used because it is the default for https. This also fixed the “Task Destroyed but still pending” warning messages.
GrahamS, Tried to start dnsmasq but doesn’t start. I changed the code to match yours do I need to change the ports info at the bottom of the page to get this to start. Please let me know.
Stan
Go to the add-on page for dnsmasq and check the log file.
I found this difficult to setup the first time too!
It is probably easier to setup a constant URL for your HA instance if you use the Nabucasa Cloud service. This service was not available when I got started so I used a combination of the dnsmaq and NGINX add-ons. This is a copy of my setup:
On your Router:
Forward port WAN:443 to LAN:443
Forward port WAN:443 to LAN:80 for setup only.
Finally, modify your DNS setting on iPhone and Windows PC to add “Your Raspberry IP address” to the top of DNS server list.
On iPhone:
WiFi settings circled “I” → Configure DNS → Manual → Add “Your Raspberry IP address” to top of list.
On Windows 10 PC:
Settings → Network and Internet - > Status → Change connection properties →
IP Settings → Edit → Edit IP Settings = Manual, Preferred DNS = “Your Raspberry IP address”,
Alternate DNS = 8.8.8.8, IPv6 = OFF
Now use URL YOUR.duckdns.org to access from anywhere. I believe the above is the full recipe.
Here is what I have in dnsmasq.
{
“defaults”: [
“8.8.8.8”,
“8.8.4.4”
],
“forwards”: [],
“hosts”: [
{
“host”: “retracked.duckdns.org”,
“ip”: “I92.168.x,xx”
}
]
}
And 443 in both Network spots. When I go to save the config section I doesn’t save. An
dnsmasq will not start. I go through the process and turns red at the end and stops. I can’t get anything from the log because it doesn’t start. I will try the things you said to do and hope to come back with some good news. Thanks for all your help with all of us here we need people like you.
Stan