Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

dns records -name "" should find the root record.  #6

@markstos

Description

@markstos

A valid record for the apex record may look like this:

   {
      "ttl" : 86000,
      "data" : "1.2.3.4",
      "type" : "A",
      "name" : "",
      "gtdLocation" : "DEFAULT",
      "id" : 12263564
   },

This is a natural way to express a lookup to find the id for the apex record:

 dnsme records  -name "" -o json example.com

But the filter fails and all records for the domain instead. I realize in option parsing you would normally want to treat the empty string as a missing value, but for a DNS API, it seems it should work to look up apex records. Otherwise it's not clear how they would be found.

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