Guessing Here,
Uninstall dnsmasq and reinstall.
Use Firefox
Tried. Didn’t work
I guess I’ll have to stick with two links for now, one for local and one for external access.
Thanks anyways!
@GrahamS Are you sure that this dnsmasq config works?
This is the syntax based on the documentation:
{
"defaults": ["8.8.8.8", "8.8.4.4"],
"forwards": [
{"domain": "mystuff.local", "server": "192.168.1.40"}
],
"hosts": [
{"host": "home.mydomain.io", "ip": "192.168.1.10"}
],
"interface": "eth1"
}
I just don’t know what to put where Think I tried all the combos. There are 4 parameters to fill in, in your example there are only 2 (host and ip).
Here is my setup.
{
"defaults": [
"8.8.8.8",
"8.8.4.4"
],
"forwards": [],
"hosts": [
{
"host": "redacted.duckdns.org",
"ip": "192.168.1.65"
}
]
}
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.
Due to some DNS setup problem I can’t use this URL on Windows 10 PC.
I use
https://192.168.1.65:8123/states
Using your exact configuration (with my duck address and ip) on my android S7 edge phone connected to my wifi:
https://redacted.duckdns.org:8123 - site can’t be reached
https://redacted.duckdns.org - takes me to my router 192.168.1.1
I have no idea why this is failing
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.
Thanks, I’ll give it another try
Really appreciate the effort!
Thanks GrhamS with that now it works with my domain inside my network too =D!
@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
Duckdns plugin set as
{
“lets_encrypt”: {
“accept_terms”: true,
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
},
“token”: “xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxx”,
“domains”: [
“xxxxxxxxx.duckdns.org”
],
“seconds”: 300
}
and my log shows this…
Thu Apr 19 18:26:09 CDT 2018: OK
xxx.xxx.xxx.xx
NOCHANGE
Thanks
Hi,
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?
Levent
ping xxxxx.duckdns.org
and
https://xxxxx.duckdns.org:8123
now works on Windows 10
I added the pi IP address to the ethernet network adapter properties AND TURNED OFF ipv6.
Now using same URL on Windows and iPhone at home or away.
@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…
Does your ISP block ports or do they use CG-NAT? Can you ping your domain when you are external to your WiFi/Network?
@DavidFW1960 newbee / noob to networking this how can i check that? please help me
i find these NAT settings in my router is this is causing the issue?
@ashfaaaa There are 3 steps.
- Install the duckdns add-on Use ONLY port 8123
This will allow access from EXTERNAL network using https://redacted.duckdns.org:8123 ( ie iPhone over cellular 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.
thanks… but i found out my ISP doesn’t support port forwarding… yep its weird… i need to check out Tor for time being until i change my ISP…
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
What do you mean?
doesn’t start
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:
In configuration.yaml
http:
base_url: YOUR.duckdns.org
In Dnsmasq Add-on
{
"defaults": [
"8.8.8.8",
"8.8.4.4"
],
"forwards": [],
"hosts": [
{
"host": "YOUR.duckdns.org",
"ip": "Your Raspberry IP address"
}
]
}
In NGINX Add-on:
{
"domain": "YOUR.duckdns.org",
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"hsts": "max-age=31536000; includeSubDomains",
"cloudflare": false,
"customize": {
"active": false,
"default": "nginx_proxy_default*.conf",
"servers": "nginx_proxy/*.conf"
}
}
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.
GrahamS,
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
If the config doesn’t save you have something wrong with your formatting. A missing comma, parentheses, etc most likely.