base on :dog: Command-line DNS Client for Humans. Written in Golang <!-- PROJECT LOGO --> <br /> <p align="center"> <h2 align="center">doggo</h2> <p align="center"> 🐶 <i>Command-line DNS client for humans</i> <br/> </p> <p align="center"> <a href="https://doggo.mrkaran.dev/" target="_blank">Web Interface</a> · <a href="https://doggo.mrkaran.dev/docs/" target="_blank">Documentation</a> </p> <img src="www/static/doggo.png" alt="doggo CLI usage"> </p> --- **doggo** is a modern command-line DNS client (like _dig_) written in Golang. It outputs information in a neat concise manner and supports protocols like DoH, DoT, DoQ, and DNSCrypt as well. It's totally inspired by [dog](https://github.com/ogham/dog/) which is written in Rust. I wanted to add some features to it but since I don't know Rust, I found it as a nice opportunity to experiment with writing a DNS Client from scratch in `Go` myself. Hence the name `dog` + `go` => **doggo**. ## Installation ### Easy Install (Recommended) ```shell curl -fsSL https://raw.githubusercontent.com/mr-karan/doggo/main/install.sh | sh ``` ### Package Managers - Homebrew: `brew install doggo` - MacPorts (macOS): `port install doggo` - Arch Linux: `yay -S doggo-bin` - [Mise](https://github.com/jdx/mise): `mise use -g doggo@latest` - Nix: `nix profile install nixpkgs#doggo` - Scoop (Windows): `scoop install doggo` - Winget (Windows): `winget install doggo` - Eget: `eget mr-karan/doggo` ### Binary Install You can download pre-compiled binaries for various operating systems and architectures from the [Releases](https://github.com/mr-karan/doggo/releases) page. ### Go Install If you have Go installed on your system, you can use the `go install` command: ```shell go install github.com/mr-karan/doggo/cmd/doggo@latest ``` The binary will be available at `$GOPATH/bin/doggo`. ### Docker ```shell docker pull ghcr.io/mr-karan/doggo:latest docker run --rm ghcr.io/mr-karan/doggo:latest example.com ``` For more installation options, including binary downloads and Docker images, please refer to the [full installation guide](https://doggo.mrkaran.dev/docs/intro/installation/). ## Quick Start Here are some quick examples to get you started with doggo: ```shell # Simple DNS lookup doggo example.com # Query MX records using a specific nameserver doggo MX github.com @9.9.9.9 # Use DNS over HTTPS doggo example.com @https://cloudflare-dns.com/dns-query # JSON output for scripting doggo example.com --json | jq '.responses[0].answers[].address' # Reverse DNS lookup doggo --reverse 8.8.8.8 --short # Using Globalping doggo example.com --gp-from Germany,Japan --gp-limit 2 ``` ## Features - Human-readable output with color-coded and tabular format - JSON output support for easy scripting and parsing - Multiple transport protocols: DoH, DoT, DoQ, TCP, UDP, DNSCrypt - EDNS support with Client Subnet (ECS), NSID, Cookies, Padding, and Extended Errors - Additional section support for glue records and supplementary data - Internationalized Domain Names (IDN) with automatic punycode conversion - Support for `ndots` and `search` configurations - Multiple resolver support with customizable query strategies - IPv4 and IPv6 support - Web interface available - Shell completions for `zsh` and `fish` - Reverse DNS lookups - Flexible query options including various DNS flags - Debug mode for troubleshooting - Response time measurement - Cross-platform support ## Documentation For comprehensive documentation, including detailed usage instructions, configuration options, and advanced features, please visit our [official documentation site](https://doggo.mrkaran.dev/docs/). ## Sponsorship If you find doggo useful and would like to support its development, please consider becoming a sponsor. Your support helps maintain and improve this open-source project. [![GitHub Sponsors](https://img.shields.io/github/sponsors/mr-karan?style=for-the-badge&logo=github)](https://github.com/sponsors/mr-karan) Every contribution, no matter how small, is greatly appreciated and helps keep this project alive and growing. Thank you for your support! 🐶❤️ ## License [LICENSE](./LICENSE) ", Assign "at most 3 tags" to the expected json: {"id":"11066","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"