Skip to content

Using linked zones with nsone won't resolve to the main zone #1990

@dittnamn

Description

@dittnamn

Using NS1, if there's two domains example1.tld and example2.tld, where example2.tld is a linked zone to example1.tld, Lexicon won't follow this link and fails with this error:

lexicon nsone create example2.tld TXT --name="test1" --content="test2" --auth-token="..."

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.nsone.net/v1/zones/example2.tld/test1.example2.tld/TXT

I noticed that linked records were fixed in issue #151, and I'd guess some similar approach would work with linked zones.

Using the NS1 API, it's possible to do a zone info request, View zone details and the linked zone is returned as the "link" property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions