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

Initial lookup command #10

Merged
merged 2 commits into from
May 10, 2024
Merged

Initial lookup command #10

merged 2 commits into from
May 10, 2024

Conversation

tertsdiepraam
Copy link
Contributor

Some example output:

> dnsi lookup nlnetlabs.nl google.com blablablablabla.bla 185.199.110.153 192.168.5.5
nlnetlabs.nl
  2a04:b900::1:0:0:10
  185.49.140.10

google.com
  2a00:1450:400e:810::200e
  142.250.179.174

blablablablabla.bla
  <no addresses found>

185.199.110.153
  cdn-185-199-110-153.github.com

192.168.5.5
  <no hosts found>

I worked around a missing method in domain. See this PR: https://github.com/NLnetLabs/domain/pull/316/files

@tertsdiepraam tertsdiepraam force-pushed the lookup-command branch 2 times, most recently from 594b11d to a8bfd73 Compare May 10, 2024 12:10
@partim
Copy link
Member

partim commented May 10, 2024

Looks good!

If you could add a stub man page for dnsi-lookup and update the one for dnsi, we could merge it and add more stuff in future PRs.

@partim partim merged commit 3228b97 into main May 10, 2024
24 checks passed
@partim partim deleted the lookup-command branch May 10, 2024 13:55
partim added a commit that referenced this pull request Jun 20, 2024
Breaking changes

* Renamed the `man` command to `help`. ([18])
* The default query type for the `query` command is now `AAAA`. ([#4])

New

* Added a new `lookup` command. ([#10])
* Added new output formats `friendly` and `table`. The `friendly` format
  is the new default format. ([#20], [#27])
* Output a placeholder for unparseable record data rather than erroring
  out. ([#22])
* Flags can now be set and unset in the `query` command. ([#23])
* The `query` command now also supports TLS. ([#24])
* IP addresses can now be used as the query name of the `query` command.
  They will be translated into the standard reverse pointer names. In this
  case, if no explicit query type is given, `PTR` will be used. ([#25])

Other changes

* Increased minimum supported Rust version to 1.78.
* Binary packages are now built and distributed via the [NLnetLabs Package
  repository](https://nlnetlabs.nl/packages/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an addr command that lists all the addresses for a given query name.
2 participants