# Automatic DNS fails to push some values

**URL:** https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428
**Category:** Support
**Tags:** domain, dns, english
**Created:** [November 29, 2022, 10:20pm UTC](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428 "2022-11-29T22:20:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tommi](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tommi/32/4537_2.png) [@tommi](https://forum.yunohost.org/u/tommi)
#### Post date: [November 29, 2022, 10:20pm UTC](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428/1 "2022-11-29T22:20:51Z")

</div>

Continuing the discussion from [YunoHost 4.3 testing](https://forum.yunohost.org/t/yunohost-4-3-testing/17222/7):

I am having the same error with all of my domains.

> [@YunoHost 4.3 testing](https://forum.yunohost.org/t/yunohost-4-3-testing/17222/7):
>
> ```auto
> 2021-09-21 12:09:10,682: INFO - [#################...] > create AAAA / @
> 2021-09-21 12:09:13,172: ERROR - Failed to create record AAAA/maindomain.tld : list indices must be integers or slices, not str
> 2021-09-21 12:09:17,614: INFO - [###################.] > create MX / @
> 2021-09-21 12:09:19,071: ERROR - Failed to create record MX/maindomain.tld : list indices must be integers or slices, not str
> 2021-09-21 12:09:19,076: INFO - [####################] > create TXT / @
> 2021-09-21 12:09:20,375: ERROR - Failed to create record TXT/maindomain.tld : list indices must be integers or slices, not str
> 2021-09-21 12:09:20,412: WARNING - DNS records partially updated: some warnings/errors were reported.
> 
> ```

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [November 30, 2022, 12:32am UTC](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428/2 "2022-11-30T00:32:16Z")

</div>

Hmyeah unfortunately there’s not enough info to debug this here

This simple trick might be enough to get the information we need tho (or at least a better understanding of what’s blocking):

```bash
sudo sed -i 's/logger.error(msg)/logger.exception(msg)/g' /usr/lib/python3/dist-packages/yunohost/dns.py

```

This replaces `logger.error(msg)` with `logger.exception(msg)` here : [yunohost/dns.py at dev · YunoHost/yunohost · GitHub](https://github.com/YunoHost/yunohost/blob/dev/src/dns.py#L986)

that will display some spooky stacktrace when pushing records but that’s harmless, just more verbose

---

<div class="post-metadata">

### Author: ![tommi](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tommi/32/4537_2.png) [@tommi](https://forum.yunohost.org/u/tommi)
#### Post date: [November 30, 2022, 9:01am UTC](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428/3 "2022-11-30T09:01:06Z")

</div>

I fixed the DNS records manually in Gandi, I will paste here more detailed error logs in the future

---

<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: [December 30, 2022, 9:01am UTC](https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428/4 "2022-12-30T09:01:37Z")

</div>

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