# Updating DNS records for yunohost domain returns error

**URL:** <https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852>\
**Category:** Support\
**Tags:** dyndns, yunohost, english\
**Created:** [January 17, 2025, 5:42pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852 "2025-01-17T17:42:16Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 17, 2025, 5:42pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/1 "2025-01-17T17:42:17Z")

</div>

**What type of hardware are you using** : Other ARM board  
**What YunoHost version are you running** : 12.0.9.1  
**How are you able to access your server** : The webadmin  
SSH  
**Are you in a special context or did you perform specific tweaking on your YunoHost instance ?** : No

### Describe your issue

Hi,  
My device is a Zimablade connected directly to my router with an ethernet cable.  
I initially configured Yunohost with a domain that I no longer use and I wished to register one of the free domains Yunohost offers. So I deleted the old domains and added the new one.  
However, both DNS updates and LetsEncrypt certificate installation fail.  
I would try to fix it myself but I don’t really know how to interpret these obscure errors.  
Thank you

### Share relevant logs or error messages

[https://paste.yunohost.org/raw/licoticodu](https://paste.yunohost.org/raw/licoticodu)

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 17, 2025, 10:10pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/2 "2025-01-17T22:10:02Z")

</div>

Hi imawhitecat,

Welcome to the forums!

The log has as subject: “error: Could not update IP address to DynDNS”

I don’t have experience yet with the free domains, or with dynamic DNS, but I just registered a .noho.st address to try it out. I got the same subject for [the log,](https://paste.yunohost.org/raw/ayejafozep) but a different cause.

Is your domain also at [noho.st](http://noho.st)? If not, which one?

Seeing that you previously used your own domain, and perhaps some time has slipped since then, could it be that your server got a new IP from your router, and that the ports are not being redirected to the right device?

Edit to add: this was a new server. After running the diagnosis, the process ran without an error.

Are there any warnings in your diagnosis results?

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 18, 2025, 1:52pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/3 "2025-01-18T13:52:37Z")

</div>

Hi, thank you for replying. Here is a paste of my latest diagnosis: [https://paste.yunohost.org/raw/sedejitura](https://paste.yunohost.org/raw/sedejitura)

There are many errors on the DNS configuration but that’s precisely because the domain won’t update successfully as I laid out on my original post.

If there was indeed a mismatch in the IPs, should I check my router’s config then?

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 18, 2025, 2:55pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/4 "2025-01-18T14:55:08Z")

</div>

> [@imawhitecat](#):
>
> If there was indeed a mismatch in the IPs, should I check my router’s config then?

It seems the router forwards traffic correctly to your Yunohost, so there is no mismatch there.

```auto
[ERROR] Some DNS records are missing or incorrect for domain maindomain.tld (category basic)
  - This domain's DNS configuration should automatically be managed by YunoHost. If that's not the case, you can try to force an update using 'yunohost dyndns update --force'.

```

You could try the suggested command after logging in via SSH:

`$ sudo yunohost dyndns update --force`

Does that command give any output?

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 18, 2025, 3:11pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/5 "2025-01-18T15:11:51Z")

</div>

Yes, this is the output:

```auto
helscn@helscn:~$ sudo yunohost dyndns update --force
Info: Updated needed, going on...
Error: id 58223
opcode UPDATE
rcode REFUSED
flags QR RA
;ZONE
ynh.fr. IN SOA
;PREREQ
;UPDATE
;ADDITIONAL
Info: The operation 'Update the IP associated with your YunoHost subdomain 'helscn.ynh.fr'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250118-150641-dyndns_update-helscn.ynh.fr' to get help
Error: Could not update IP address to DynDNS

```

This is the full log: [https://paste.yunohost.org/raw/odizadubir](https://paste.yunohost.org/raw/odizadubir)

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 18, 2025, 3:33pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/6 "2025-01-18T15:33:22Z")

</div>

It seems that what is needed is not so much an update, as an initial configuration.

When I run the command on the server where I configured a [noho.st](http://noho.st) domain, there’s only very short output:

```auto

$ sudo yunohost dyndns update -d frankfurt.noho.st --force
Info: Updated needed, going on...
Success! Updated your IP on DynDNS
$

```

Yours complains about being refused. Did you enter a recovery password when setting the [ynh.fr](http://ynh.fr) domain the first time? If not, that could be the problem; if yes, maybe retype it in the configuration:

 ![image](https://forum.yunohost.org/uploads/default/original/2X/2/2d352397b93cfbebb945f8702484e0b3aef27994.png)

Edit to add:

There is a _somewhat_ similar issue going on, where [metyun suggests](https://forum.yunohost.org/t/recuperation-de-domaine-par-mot-de-passe/34763/2) running a subscribe command :

```auto
$ sudo yunohost domain dyndns subscribe yourdomain.ynh.fr -p yourpassword

```

Again, the password is the recovery password that you gave in during registration of the domain.

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 20, 2025, 8:13pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/7 "2025-01-20T20:13:44Z")

</div>

Hi,

Trying the subscribe command does nothing since the domain is already subscribed.

I’ve tried with other domains ([noho.st](http://noho.st) instead of [ynh.fr](http://ynh.fr)) and same thing happens.

When I try to access the DNS options on the Yunohost interface, it leads me directly to a yunohost crash report, since I suppose the first thing it does when I access it is try to update the options. So I don’t have access to the menu. Is there a command to do what you say?

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 20, 2025, 8:55pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/8 "2025-01-20T20:55:53Z")

</div>

> [@imawhitecat](#):
>
> Is there a command to do what you say?

I don’t understand what you ask 😛

PS:  
From the diagnostics:

> [SUCCESS] Domain maindomain.tld is reachable through HTTP from outside the local network.  
> [INFO] Domain domain2.tld is based on a special-use top-level domain (TLD) such as .local or .test and is therefore not expected to have actual DNS records.

How many domains do you have configured?

Have you tried registering a completely different domain?

Did you run the --force command as suggested by diagnostics? Please post the output!

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 21, 2025, 3:37pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/9 "2025-01-21T15:37:31Z")

</div>

> I don’t understand what you ask 😛

Haha sorry. I meant if there’s some way to enter the recovery password on the dns settings without a GUI just in case, to see if that was the issue.

I have two domains, a local one for tests and the one I’m having problems with. Yesterday as I said I tried to register a different domain on a different namespace and the same thing happens. This is the log for that one [https://paste.yunohost.org/raw/awacicebak](https://paste.yunohost.org/raw/awacicebak)

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 21, 2025, 3:46pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/10 "2025-01-21T15:46:46Z")

</div>

> [@imawhitecat](#):
>
> different domain on a different namespace and the same thing happens

```auto
2025-01-21 16:34:29,814: ERROR - id 25814
opcode UPDATE
rcode REFUSED

```

Any chance your IP got banned? No idea whether that is actually possible…

Do you have an option to take your ARM board to friends, and try running it through their internet connection?

> [@imawhitecat](#):
>
> enter the recovery password on the dns settings without a GUI

It is the command that you ran before, with `--password ` at the end, for which you forgot to paste the output.

And what about using `--force`, as suggested in the previous post?

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 22, 2025, 2:40pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/11 "2025-01-22T14:40:10Z")

</div>

> Any chance your IP got banned? No idea whether that is actually possible…

If that were the case, wouldn’t the diagnostics show that?

And I don’t think I have friends that would be willing to open their router ports for me to test this 😛 I will check if my IP is banned for some reason once I get home.

Update commands with `--force` have the same result, that is, nay. Same error. If my IP is not banned, my last resort might be to reinstall Yunohost in case I have unknowingly messed up something. Do you have any other ideas?

I will update you on the IP thing in a few hours.

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 22, 2025, 2:56pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/12 "2025-01-22T14:56:43Z")

</div>

> [@imawhitecat](#):
>
> open their router ports for me to test this

They don’t have to open their routers. Your Yunohost will contact [noho.st](http://noho.st) or [ynh.fr](http://ynh.fr), and shout “Wohoo guys, I’m here! Please check you got the right IP registered for my domain. By the way, my current IP is the IP of my friends house!”

Later on you’d want to get a Letsencrypt certificate; that would need a working webserver. But without that, you can already see whether the error persists, or that you get something else.

- In the case it _did_ work, your [imawhitecat.noho.st](http://imawhitecat.noho.st) domain now points to the IP of your friends house. You can check that by using any online DNS / host checker by asking for the details of your domain.
- If it did not work with another error, there’s more to investigate
- If it did not work, with the same error, then you might have messed up something.

> [@imawhitecat](#):
>
> Do you have any other ideas?

I assume you use [ynh.fr](http://ynh.fr) / [noho.st](http://noho.st) because you have not registered your own domain? Do you know whether your IP adresses stay fixed for extended periods of time, or do you explicitly need the dynamic DNS feature?

That reminds me, what kind of connection does your Yunohost have to the internet? You mention the cable from YNH to router.

- Regular modem, with copper or optical connection : no mobile / 4G / 5G
- Normal network, with regular IPv4 and IPv6 : no double NAT, fake IPv4, or missing IPv6
- Free access to your Yunohost: no VPN or ISP-provided child safe connection

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 22, 2025, 6:43pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/13 "2025-01-22T18:43:23Z")

</div>

> They don’t have to open their routers  
> Oh, okay, then I might be able to convince a friend or two. I might try reinstalling Yunohost first or troubleshoot further before doing that.

A rule of thumb for my router is that the IPs change every few days. I’ve checked the current one and it’s not blacklisted anywhere. It’s a common Vodafone router with fiber internet, my host is connected directly with an Ethernet cable.

I’m also going to try using other domain providers such as NoIp in the meantime. Will report

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 22, 2025, 6:44pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/14 "2025-01-22T18:44:53Z")

</div>

Woops I messed up the blockquote.

---

<div class="post-metadata">

**Author:** ![imawhitecat](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/eb8c5e/32.png) [@imawhitecat](https://forum.yunohost.org/u/imawhitecat)\
**Post date:** [January 27, 2025, 6:15pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/15 "2025-01-27T18:15:18Z")

</div>

Ok so the only way I could find to fix this was to reinstall yunohost. I updated it from bullseye to bookworm and something seems to have clicked - domain records now work. What an odd issue - there must have been something wrong with my machine.

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 27, 2025, 8:39pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/16 "2025-01-27T20:39:16Z")

</div>

> [@imawhitecat](#):
>
> there must have been something wrong with my machine.

Strange. Maybe there was.

Glad you got it fixed; I hope you got all your backed-up apps back up and running!

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [February 26, 2025, 8:40pm UTC](https://forum.yunohost.org/t/updating-dns-records-for-yunohost-domain-returns-error/34852/17 "2025-02-26T20:40:00Z")

</div>

Closed on February 26, 2025, 8:40pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
