Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of A record for DynU.com not working #1495

Open
madman1968 opened this issue Dec 7, 2022 · 0 comments
Open

Update of A record for DynU.com not working #1495

madman1968 opened this issue Dec 7, 2022 · 0 comments

Comments

@madman1968
Copy link

madman1968 commented Dec 7, 2022

Update of A record for DynU.com not working.

When trying to update an A record hosted at DynU.com, the result returned is TRUE but the change does not occur.

See my actions below (note: keys, domains, IPs, and domain record numbers have been obfuscated)

STEP 1 - List of barry2 on domain1.com of Dynu.com - this works perfectly.

lexicon dynu list domain1.com A --name barry2 --auth-token <MY_DYNU_TOKEN>
ID TYPE NAME CONTENT TTL
+++++++ ++++ ++++++++++++++++++++++ ++++++++++++++ +++
7673752 A barry2.domain1.com 192.222.33.44 60

STEP 2 - Update of barry2 on domain1.com of Dynu.com - Returns TRUE, and seems to work

lexicon dynu update domain1.com A --name barry2 --content '1.2.3.4' --auth-token <MY_DYNU_TOKEN> --log_level DEBUG
Arguments: Namespace(delegated=None, config_dir='/mnt/wrkspace/WorkInProgress/DynU', provider_name='dynu', action='update', domain='domain1.com', type='A', name='barry2', content='1.2.3.4', ttl=None, priority=None, identifier=None, log_level='DEBUG', output='TABLE', auth_token='<MY_DYNU_TOKEN>')
Attempting to acquire lock 139865677695872 on /james/.lexicon_tld_set/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock
Lock 139865677695872 acquired on /james/.lexicon_tld_set/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock
Attempting to release lock 139865677695872 on /james/.lexicon_tld_set/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock
Lock 139865677695872 released on /james/.lexicon_tld_set/publicsuffix.org-tlds/de84b5ca2167d4c83e38fb162f2e8738.tldextract.json.lock
Request: GET /dns with data None
Starting new HTTPS connection (1): api.dynu.com:443
https://api.dynu.com:443 "GET /v2/dns HTTP/1.1" 200 2260
Response: <Response [200]>
Request: GET /dns/123216408/record with data None
Starting new HTTPS connection (1): api.dynu.com:443
https://api.dynu.com:443 "GET /v2/dns/123216408/record HTTP/1.1" 200 2934
Response: <Response [200]>
list_records: removed 9, total 10
list_records: [{'id': 7673752, 'type': 'A', 'name': 'barry2.domain1.com', 'ttl': 60, 'options': {'enabled': True, 'lastUpdate': '2022-12-07T13:27:58', 'raw': {'id': 7673752, 'domainId': 123216408, 'domainName': 'domain1.com', 'nodeName': 'barry2', 'hostname': 'barry2.domain1.com', 'recordType': 'A', 'ttl': 60, 'state': True, 'content': 'barry2.domain1.com. 60 IN A 192.222.33.44', 'updatedOn': '2022-12-07T13:27:58', 'group': '', 'ipv4Address': '192.222.33.44'}, 'A': {'ipv4': '192.222.33.44', 'group': ''}}, 'content': '192.222.33.44'}]
Request: POST /dns/123216408/record/7673752 with data {"recordType": "A", "state": true, "nodeName": "barry2", "ipv4Address": "192.222.33.44"}
Starting new HTTPS connection (1): api.dynu.com:443
https://api.dynu.com:443 "POST /v2/dns/123216408/record/7673752 HTTP/1.1" 200 316
Response: <Response [200]>
update_record: {'id': 7673752, 'type': 'A', 'name': 'barry2.domain1.com', 'ttl': 60, 'options': {'enabled': True, 'lastUpdate': '2022-12-07T14:09:56.1431614+00:00', 'raw': {'statusCode': 200, 'id': 7673752, 'domainId': 123216408, 'domainName': 'domain1.com', 'nodeName': 'barry2', 'hostname': 'barry2.domain1.com', 'recordType': 'A', 'ttl': 60, 'state': True, 'content': 'barry2.domain1.com. 60 IN A 192.222.33.44', 'updatedOn': '2022-12-07T14:09:56.1431614+00:00', 'ipv4Address': '192.222.33.44'}, 'A': {'ipv4': '192.222.33.44'}}, 'content': '192.222.33.44'}

RESULT
++++++
True

STEP 3 - Again, list of barry2 on domain1.com of Dynu.com - Works but does not reflect update requested in STEP 2
Btw: Update not seen on website interface either.

lexicon dynu list domain1.com A --name barry2 --auth-token <MY_DYNU_TOKEN>
ID TYPE NAME CONTENT TTL
+++++++ ++++ ++++++++++++++++++++++ +++++++ +++
7673752 A barry2.domain1.com 192.222.33.44 300

STEP 4 - Update of barry2 on domain1.com of Dynu.com via CURL command as documented at DynU.com - Returns status 200

curl -X POST "https://api.dynu.com/v2/dns/123216408/record/7673752"
-H "accept: application/json"
-H "API-Key: <MY_DYNU_TOKEN>"
-H "Content-Type: application/json"
-d "{"nodeName":"barry2","recordType":"A","ttl":300,"ipv4Address":"1.1.1.1"}"

{"statusCode":200,"id":7673752,"domainId":123216408,"domainName":"domain1.com","nodeName":"barry2","hostname":"barry2.domain1.com","recordType":"A","ttl":300,"state":false,"content":"barry2.domain1.com. 300 IN A 1.1.1.1","updatedOn":"2022-12-07T14:11:28.9942261+00:00","ipv4Address":"1.1.1.1"}

STEP 5 - Again, list of barry2 on domain1.com of Dynu.com - Now shows updated IP of 1.1.1.1

lexicon dynu list domain1.com A --name barry2 --auth-token <MY_DYNU_TOKEN>
ID TYPE NAME CONTENT TTL
+++++++ ++++ ++++++++++++++++++++++ +++++++ +++
7673752 A barry2.domain1.com 1.1.1.1 300

For comparison, I perform the same action on one of my GoDaddy domains .... and that works fine!

lexicon godaddy list domain2.com A --name barry --auth-key <MY_GODADDY_KEY> --auth-secret <MY_GODADDY_SECRET>
ID TYPE NAME CONTENT TTL
+++++++ ++++ ++++++++++++ ++++++++++++++ ++++
991b155 A barry.domain2.com 192.222.33.4 3600

lexicon godaddy update domain2.com A --name barry --content "1.2.3.4" --auth-key <MY_GODADDY_KEY> --auth-secret <MY_GODADDY_SECRET>
RESULT
++++++
True

lexicon godaddy list domain2.com A --name barry --auth-key <MY_GODADDY_KEY> --auth-secret <MY_GODADDY_SECRET>
ID TYPE NAME CONTENT TTL
+++++++ ++++ ++++++++++++ +++++++ ++++
991b155 A barry.domain2.com 1.2.3.4 3600

Anything else I can do to help debug the issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant