Skip to content

Instantly share code, notes, and snippets.

@kalou
Created October 17, 2017 21:23
Show Gist options
  • Save kalou/f2b83e34dddf14a4750774f818ee445e to your computer and use it in GitHub Desktop.
Save kalou/f2b83e34dddf14a4750774f818ee445e to your computer and use it in GitHub Desktop.
Another CDSCHECK example
https://tools.ietf.org/html/draft-ietf-regext-dnsoperator-to-rrr-protocol-04
1/ Check if service is available for your TLD:
In [15]: sess.get('https://rdap.gandi.net/domain/rdap.lol').json()['links']
Out[15]: [... {'href': 'https://cdscheck.gandi.net/v1/domains/rdap.lol/cds',
'rel': 'https://rdap.io/tpda/cdscheck'}]
2/ Publish your CDS and sign it with your existing DNSKEY - make sure everything is signed by the new keys on all nameservers.
The checker is going the validate that as well.
3/ DS check
In [17]: cds.put('https://cdscheck.gandi.net/v1/domains/rdap.lol/cds').text
Out[23]: '{"status": "success", "rel": 99439172}'
The new DS will replace the existing ones at the registry shortly after.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment