-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
nsone -- list index out of range. #151
Comments
Adding more info. Dumping the record information before processing reveals that the problem is with nsone "linked" records.
In this case. www.sitelabs.io is linked to sitelabs.ca I'll let you decide whether you should recurse (and fetch the linked record), just fake a CNAME, or just skip, but that's a corner case that needs special treatment in any case. |
Hmm, I'm not really familiar with NSOne's link feature. Is this something you can open a PR to fix? |
It's a way for nsone users to de-duplicate dns record information, without requiring dns clients to pay the price of a CNAME. It effectively makes a record a symbolic link to another one on their database. https://ns1.com/articles/cname-alias-and-linked-records I'm happy to patch it, but should the "linked" status be exposed in the lexicon output? Fetching details for a linked record would require another dnsone API lookup. Is there another provider which has a similar feature, and from which the behaviour could be replicated? |
Looking at what you said, I think it would make sense to fake a CNAME record for it, with another API lookup. I don't think there's an example of another provider doing anything similar, unfortunately. |
- if a linked record is encountered, the code will resolve the link, recursively, up to 3 times. - refactoring: filter records before fetching them, as much as possible.
- if a linked record is encountered, the code will resolve the link, recursively, up to 3 times. - refactoring: filter records before fetching them, as much as possible. Note: Linked records point to records in the same or another zone on NS1, but the source and target are always the same type.
Created PR #157 . |
This should be fixed now thanks to @init-js . Closing. |
- if a linked record is encountered, the code will resolve the link, recursively, up to 3 times. - refactoring: filter records before fetching them, as much as possible. Note: Linked records point to records in the same or another zone on NS1, but the source and target are always the same type.
using dns-lexicon 2.1.11
I'm getting a list index out of range in the process of cleaning up acme/certbot TXT records on nsone.
The current record list for TXT records is (from the nsone panel):
Has there been an nsone response format change?
The text was updated successfully, but these errors were encountered: