Skip to content
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

Add support for AS identifiers #248

Closed
ShubhamRasal opened this issue Oct 14, 2022 · 2 comments · Fixed by #249
Closed

Add support for AS identifiers #248

ShubhamRasal opened this issue Oct 14, 2022 · 2 comments · Fixed by #249
Assignees
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Milestone

Comments

@ShubhamRasal
Copy link
Contributor

ShubhamRasal commented Oct 14, 2022

  • dnsx should accept the asn number eg AS15133 and do the processing on the IP addresses available for that ASN.

eg:
echo AS15133 | dnsx -resp -ptr

  • Add asn flag to get asn details
$ echo example.com | dnsx -asn -silent

example.com [AS15133, EDGECAST, US]
@ShubhamRasal ShubhamRasal added Type: Enhancement Most issues will probably ask for additions or changes. Priority: Medium This issue may be useful, and needs some attention. Status: In Progress This issue is being worked on, and has someone assigned. labels Oct 14, 2022
@ShubhamRasal ShubhamRasal self-assigned this Oct 14, 2022
@ShubhamRasal ShubhamRasal linked a pull request Oct 14, 2022 that will close this issue
@ehsandeep ehsandeep added Status: Completed Nothing further to be done with this issue. Awaiting to be closed. and removed Status: In Progress This issue is being worked on, and has someone assigned. labels Oct 19, 2022
@Techbrunch
Copy link

@ehsandeep I don't think it is completed, it looks like the pull request only add support for asn input and not output. I would really like if output of the ASN was supported

@ehsandeep
Copy link
Member

@Techbrunch it's in the dev branch

$ echo example.com | ./dnsx -asn -silent
example.com [AS15133, EDGECAST, US]
$ echo example.com | ./dnsx -asn -silent -json | jq .
{
  "host": "example.com",
  "resolver": [
    "1.0.0.1:53"
  ],
  "a": [
    "93.184.216.34"
  ],
  "all": [
    "example.com.\t75703\tIN\tA\t93.184.216.34",
    "\n;; OPT PSEUDOSECTION:\n; EDNS: version 0; flags: ; udp: 1232"
  ],
  "status_code": "NOERROR",
  "timestamp": "2022-12-20T21:37:52.47871+05:30",
  "asn": {
    "as-number": "AS15133",
    "as-name": "EDGECAST",
    "as-country": "US",
    "as-range": [
      "93.184.215.0/24",
      "93.184.216.0/24"
    ]
  }
}

@ehsandeep ehsandeep added this to the dnsx v1.1.2 milestone Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This issue may be useful, and needs some attention. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants