#HA won't update my Namecheap DNS entry

89 messages · Page 1 of 1 (latest)

fringe mural
#

So I just bought a domain on Namecheap and tried to use namecheapdns integration to update it but it doesn't work.
I have put in my domain and the password generated on the dashboard and even restarted my server. It is still not working.

namecheapdns:
  domain: mydomain.onl
  password: passwordfromthedashboard
lime geode
#

is there anything in the log saying what the issue is?

#

its been a while since i messed with namecheap dns but i think you might have to create a dns entry on the control panel which can then be updated. i am not sure if it will be able to create one automagically

fringe mural
#

I have created the dynamic DNS password on the dashboard, which you use to update your DNS record.

#

I mean, it's all the same as DuckDNS, you just have to change the name for the integration before you do it, but I don't know if you can use DuckDNS and name cheap at the same time that might be the issue.

#

Like I have done everything like the instruction and the example tells you to do so, it is just not updating on the dashboard on namecheap.

lime geode
#

its been years and was a different tool but i remember something about having to create a placeholder so it could update.
if theres nothing to update it failed because "does not exist"
when i made a palceholder it could get to "updated"
but this could be out of date stuff. best bet is to look at the logs and find out what its doing

fringe mural
#
Error during setup of component namecheapdns: Cannot connect to host dynamicdns.park-your-domain.com:443 ssl:default [Could not contact DNS servers]

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/resolver.py", line 103, in resolve
    resp = await self._resolver.getaddrinfo(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
aiodns.error.DNSError: (11, 'Could not contact DNS servers')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1351, in _create_direct_connection
    hosts = await self._resolve_host(host, port, traces=traces)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 995, in _resolve_host
    return await asyncio.shield(resolved_host_task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1026, in _resolve_host_with_throttle
    addrs = await self._resolver.resolve(host, port, family=self._family)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp_asyncmdnsresolver/_impl.py", line 130, in resolve
    return await super().resolve(host, port, family)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/resolver.py", line 112, in resolve
    raise OSError(None, msg) from exc
OSError: [Errno None] Could not contact DNS servers
#

But I can reach it just fine using Firefox

#

Pi-Hole is also not blocking it when using Firefox

#
cederick@manager:~$ ping dynamicdns.park-your-domain.com
PING dynamicdns.park-your-domain.com.cdn.cloudflare.net (104.22.62.177) 56(84) bytes of data.
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=1 ttl=58 time=14.2 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=2 ttl=58 time=13.7 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=3 ttl=58 time=28.4 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=4 ttl=58 time=49.8 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=5 ttl=58 time=74.3 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=6 ttl=58 time=13.9 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=7 ttl=58 time=20.2 ms
64 bytes from 104.22.62.177 (104.22.62.177): icmp_seq=8 ttl=58 time=40.7 ms
^C
--- dynamicdns.park-your-domain.com.cdn.cloudflare.net ping statistics ---
9 packets transmitted, 8 received, 11.1111% packet loss, time 12027ms
rtt min/avg/max/mdev = 13.677/31.888/74.263/20.354 ms
#

⬆️ Ping via server also works just fine

lime geode
#

seems like your home assisstant is having dns issues of some sort. what type of install do you have?

fringe mural
#

Double checked Pi-hole: [i] No results found for dynamicdns.park-your-domain.com.cdn.cloudflare.net within the adlists

lime geode
#

UPDATE_URL = "https://dynamicdns.park-your-domain.com/update"

#

it looks like this is what its looking for

fringe mural
lime geode
#

thats the cloudflare server

fringe mural
#

Yeah but that is what could not be reached according to the error message from HA.
Could it be that the integration is borked?

lime geode
fringe mural
#

Sorry my bad it is what I reach when I ping it via the Server ^^

lime geode
#

dont worry about where the ping responce comes from

fringe mural
#

https://dynamicdns.park-your-domain.com/update can be reached from my home network via browser... Hmmm...

lime geode
#

your dns config is failing you somewhere

fringe mural
#

You mean in configuration.yaml ?

#

Oh yeah I forgot my server isn't even using my Pi-hole but the DNS provided by my ISP

#

I set the DNS in the Fritz!Box to 1.1.1.1 and did a full reset

lime geode
fringe mural
#
2025-02-15 14:59:35.438 WARNING (MainThread) [homeassistant.components.namecheapdns] Updating namecheap domain failed: xxxxx.onl
2025-02-15 14:59:35.438 ERROR (MainThread) [homeassistant.setup] Setup failed for 'namecheapdns': Integration failed to initialize.
#

But hey I got a new error

lime geode
#

do you currently have the domain pointing at something as a placeholder?
e.g. point it at 127.0.0.1 on the namecheap control panel
then see if it can update

fringe mural
#

I'm in their support chat now and they see if it is an error on their side

lime geode
#

i know this doesnt help for now but in the future probably best to move away from namecheap 😛

fringe mural
#

But it was cheap and the best page that I could find

lime geode
#

yeah i get that, but theres a reason its cheap and people are moving away from it

fringe mural
#

All I need is a domain that points to my server since we have dynamic IPs here

#

I mean how hard can it be? .-.

upper sky
#

You can change your DNS provider... you don't need to stick w/ Namecheap. You can use something like Cloudflare DNS for free

#

The error you're getting is on your side though with the inability to resolve that domain

fringe mural
#

I just bought the Domain on Namecheap

upper sky
#

Sure... registrar doesn't need to be coupled w/ DNS

fringe mural
#

Their software for Windows just says A record not found

upper sky
#

I'm not sure what their software you're referring to is, but the errors above are with your DNS configuration

lime geode
lime geode
fringe mural
lime geode
#

the ddns tool updates an A record that you specify.
if there is not an A record for the domain you specify then it fails

lime geode
upper sky
fringe mural
#

Well I have created an A + Dynamic record but I still can't connect to HA or my Minecraft Server

#

I used * for host to make sure because @ did nothing. Also used http and https in the network settings for external adress in HA

#

I hate this so much rn. How can duckdns be free and just work in comparision?

lime geode
#

@ means no subdomain

fringe mural
#

I know
just wanted to check regardless and changed it back to @

lime geode
#

so should look something like this:

fringe mural
#

The IP was set by me for now but it still won't work

lime geode
#

out of curiosity does the windows app still do the same thing as it did before now its set like this?

fringe mural
#

No the windows app works

#

ping also works fine but I still can't connect to HA or the server despite having set the DNS-Rebind-Protection settings accordingly

#

Ok it now works and I have just waited some minutes

#

Now i just need to check if HA crashes the integration again

#

btw should I get a SSL certificate?

lime geode
#

the correct answer to that question is "yes" but it probably depends on your use case and how security conscious you are

fringe mural
#

Also how can I check namecheap integration because I have 0 errors but no updated A record

lime geode
#

change it to the wrong ip on thee control panel then restart the integration and see if it corrects it i guess

#

might need time to propagate though. i am not sure how the tools work

fringe mural
#

I restarted my router and have a new IP but it didn't get updated

#

duckdns has done it without any issues already

lime geode
#

restart the integration. it probably doesnt poll that often

fringe mural
#

Can't find a button for it

lime geode
#

something like this. generic example using a different integration

#

reload button

fringe mural
lime geode
#

oh right its a non ui

#

restart home assistant is probably the qucikest way

lime geode
#

cos namecheap is a bit shit

#

thats the long and the short of it

fringe mural
#

Is it expensive to move with my domain?
What would be a good alternative?

lime geode
#

usually you have to add 1 or 2 years worth of time to it. cloudflare tends to be easy to work with

fringe mural
#

Mine did cost 3$

#

Even after 2 restarts of HA