tunix / digitalocean-dyndns

Dynamic DNS using DigitalOcean's DNS Services
76 stars 30 forks source link

Getting no a record for domain #7

Closed thomas126 closed 4 years ago

thomas126 commented 5 years ago

Hello guys,

love the work here. Somehow I am getting error all over the place. I tried the docker image and script on my arm device and resolving in the error: no a record found for domain. But there is an a record set for it. Even deleted the one and recreated it. Any ideas?

Best regards

tunix commented 5 years ago

Hi @thomas126,

Many things may have caused this. Possible causes are:

What is the output of the following command?

DIGITALOCEAN_TOKEN="your_do_token"
DOMAIN="yourdomain.com"

curl -s -X GET \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
        https://api.digitalocean.com/v2/domains/$DOMAIN/records
thomas126 commented 5 years ago

I am getting a super long output which ends suddenly. Is it possible I have too many entries and that is the reason why it cannot find the last added one? I have 27 entries. Token is valid for sure. A record set aswell and correct domain...

Also when I search inside the output the specific subdominant which is cloud.* is not listed...

thomas126 commented 5 years ago

I can confirm trying another domain works fine. I did a workaround with a cname renters. Still is there a way to make larger entry’s per domain possible?

tunix commented 5 years ago

@thomas126 Would you mind sharing the entries as I have no clue for where the problem lies.

thomas126 commented 5 years ago

It’s the number of entries that is causing the problem. I have a Mailserver setup. So there are a lot of entries. Some TXT and so on. Seems like half of the entries of That Domain are not being read out because of this. I can share the output later when I am home...

tunix commented 4 years ago

@thomas126 - there is currently an open PR which wants to bring pagination support but its owner haven't responded to my comment yet. Would you consider improving it?