Giter Club home page Giter Club logo

dnslookup's Introduction

Go Report Card Latest release Snap Store

dnslookup

Simple command line utility to make DNS lookups. Supports all known DNS protocols: plain DNS, DoH, DoT, DoQ, DNSCrypt.

How to install

  • Using homebrew:
    brew install ameshkov/tap/dnslookup
    
  • From source:
    go get github.com/ameshkov/dnslookup
    
  • You can get a binary from the releases page.
  • You can install it from the Snap Store

Examples:

Plain DNS:

./dnslookup example.org 94.140.14.14

DNS-over-TLS:

./dnslookup example.org tls://dns.adguard.com

DNS-over-TLS with IP:

./dnslookup example.org tls://dns.adguard.com 94.140.14.14

DNS-over-HTTPS:

./dnslookup example.org https://dns.adguard.com/dns-query

DNS-over-HTTPS with IP:

./dnslookup example.org https://dns.adguard.com/dns-query 94.140.14.14

DNSCrypt (stamp):

./dnslookup example.org sdns://AQIAAAAAAAAAFDE3Ni4xMDMuMTMwLjEzMDo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20

DNSCrypt (parameters):

./dnslookup example.org 176.103.130.130:5443 2.dnscrypt.default.ns1.adguard.com D12B:47F2:52DC:F2C2:BBF8:9910:86EA:F79C:E449:5D8B:16C8:A0C4:322E:52CA:3F39:0873

DNS-over-QUIC (experimental, uses port 784):

./dnslookup example.org quic://dns.adguard.com

Machine-readable format:

JSON=1 ./dnslookup example.org 94.140.14.14

Disable certificates verification:

VERIFY=0 ./dnslookup example.org tls://127.0.0.1

Specify the type of resource record (default A):

RRTYPE=AAAA ./dnslookup example.org tls://127.0.0.1
RRTYPE=HTTPS ./dnslookup example.org tls://127.0.0.1

Specify the class of query (default IN):

CLASS=CH ./dnslookup example.org tls://127.0.0.1

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.