Comments (6)
Adding more info.
Dumping the record information before processing reveals that the problem is with nsone "linked" records.
...
{u'domain': u'sitelabs.io', u'short_answers': [u'dns1.p03.nsone.net', u'dns2.p03.nsone.net', u'dns3.p03.nsone.net', u'dns4.p03.nsone.net'], u'ttl': 3600, u'tier': 1, u'type': u'NS', u'id': u'599ce1d3a632f60001a95c76'}
{u'domain': u'sitelabs.io', u'short_answers': [u'v=spf1 mx -all'], u'link': None, u'ttl': 3600, u'tier': 1, u'type': u'TXT', u'id': u'59a479fda632f6000199e90b'}
{u'domain': u'www.sitelabs.io', u'short_answers': [], u'link': u'sitelabs.ca', u'ttl': 3600, u'tier': 1.0, u'type': u'A', u'id': u'59ac55a1a632f60001df4361'}
...
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.
from lexicon.
Hmm, I'm not really familiar with NSOne's link feature. Is this something you can open a PR to fix?
from lexicon.
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?
from lexicon.
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.
from lexicon.
Created PR #157 .
from lexicon.
This should be fixed now thanks to @init-js . Closing.
from lexicon.
Related Issues (20)
- Docs specify wrong environment variable for tldextract cache
- lexicon cannot find the route53.py HOT 3
- GoDaddy listing records fails if given --content option
- Add Technitium DNS server API HOT 4
- Hover usage broken by mandatory 2FA HOT 25
- importlib-metadata package not needed HOT 2
- Can't use lexicon with pending Cloudflare domains
- Cloudflare - 405 while deleting a TXT record (cloudflare.py#L172-L183) HOT 1
- Error in certbot-dns-ovh using lexicon HOT 10
- Wrong requests requirement HOT 2
- Gandi API key method is deprecated HOT 2
- certificate domain tld is added to gandi request since dnsrobocert 3.25.0
- Add all-inkl as supported Provider
- DDNS provider is not responding to error conditions correctly
- Cannot make SRV on CloudFlare HOT 1
- Add support for dynv6.com? HOT 3
- RFE: use `zoneinfo` instead of `pytz` HOT 1
- [easyname] provider broken (security code/2FA, REST API) HOT 5
- Update of docs
- Using linked zones with nsone won't resolve to the main zone HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexicon.