Code Monkey home page Code Monkey logo

Comments (5)

pinkiepiemeetsrainbowdash avatar pinkiepiemeetsrainbowdash commented on May 28, 2024 1

@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.

mr-karan avatar mr-karan commented on May 28, 2024

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.

mr-karan avatar mr-karan commented on May 28, 2024

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.

pinkiepiemeetsrainbowdash avatar pinkiepiemeetsrainbowdash commented on May 28, 2024

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.

mr-karan avatar mr-karan commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.