Giter Club home page Giter Club logo

Comments (6)

init-js avatar init-js commented on August 25, 2024

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.

AnalogJ avatar AnalogJ commented on August 25, 2024

Hmm, I'm not really familiar with NSOne's link feature. Is this something you can open a PR to fix?

from lexicon.

init-js avatar init-js commented on August 25, 2024

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.

AnalogJ avatar AnalogJ commented on August 25, 2024

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.

init-js avatar init-js commented on August 25, 2024

Created PR #157 .

from lexicon.

AnalogJ avatar AnalogJ commented on August 25, 2024

This should be fixed now thanks to @init-js . Closing.

from lexicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.