Use specified UDP port to connect to DNS server

adig

  • Prints information received from Domain Name System (DNS) servers.
    More information: <https://manned.org/adig>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

adig -U {{port}} {{example.com}}

click the source code to copy install adig on any operating system with command-not-found.com