Comments (5)
@mr-karan I see your point, but I actually agree with @sekrause that it is not practical to always type @ServerName to get a quick resolve. There should be at least an option to query just one DNS server (first one or random one or both options) available to the user. Also, it would be nice to have a file like ~/.doggo.rc to put all needed options, like dig has ~/.digrc. Otherwise kudos to developer, nice job!
P.S. One more note - doggo output is wider than dig and this breaks results on narrower terminals. It would be nice to have an option to narrow the available output (maybe DNS resolver address not needed if we already specify @ option?). This narrow option could be also used in ~/.doggo.rc for people who want dig-like output.
from doggo.
No, I think the current implementation is correct. dig
chooses one resolver randomly and you won't know which one unless you read the whole output. I want doggo
to act in the most deterministic way possible, no surprises for the end user.
If you want to query a single nameserver, you can always do that with @
.
from doggo.
There should be at least an option to query just one DNS server (first one or random one or both options) available to the user
Ah yeah. This makes sense, I can make it configurable, the default however will be to query all. 👍
Also, it would be nice to have a file like ~/.doggo.rc to put all needed options, like dig has ~/.digrc
I'd thought about it too, will explore :)
This narrow option could be also used in ~/.doggo.rc for people who want dig-like output
Yeah, I can remove the nameserver
field in --narrow
but then again, the terminal windows can be resized even smaller which would break. Maybe it makes sense to add an option similar to dig +x
here instead.
from doggo.
Indeed! For the terminal window, the width of the output depends on the length of the record queried, of course, but for the dig it is usually less than 100 symbols and often even less than 80. That fits to the default terminal size for most distros, so this is something a future --narrow option could aim for :)
from doggo.
Released a new version: #35
./bin/doggo.bin mrkaran.dev --strategy=<first|random|all>
It's set to all
to maintain backward compatibility.
In addition, have added a --short
flag too for just emitting the answer
section like dig
.
Please feel free to re-open in case I missed something. Thanks!
from doggo.
Related Issues (20)
- Mia_Furman
- Alternative port HOT 11
- compile question HOT 1
- Feature request: need option to specific ip of DoH HOT 4
- Feature request(?): config var/file HOT 1
- zsh completion is broken
- Feature Suggestion: Http3 Support HOT 4
- Release new version to support Go 1.19 HOT 2
- Bug: wrong domain name when querying a non existing record HOT 2
- [Request] Binary releases for arm 32 bits HOT 2
- Is it possible to test localhost DoH server ? HOT 1
- Feature request: set source-interface
- CLI exits with zero code even when there are errors and no responses
- doq request don't work HOT 2
- Release new version to support Go 1.20 HOT 2
- Feature Request: Print Extended DNS Errors (EDE)
- DNS over QUIC slow
- Installing from source fails with `cannot use h.allow0RTT` HOT 3
- ERROR i/o timeout not showing in json Output when --json
- a new way to use doggo: `x doggo` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doggo.