ADIG(1)

πŸ“¦
version 1.34.9 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, nixos 26.05, opensuse-leap 16.0

πŸ’… ADIG(1) β€” DNS info, but make it cute πŸ’…

okay so you're in ADIG(1), and the manual name is General Commands Manual β€” very official, very demure. this page is all about adig, and it's here to print information collected from Domain Name System (DNS) servers. no cap. πŸ¦‹

🌸 NAME 🌸

adig β€” print information collected from Domain Name System (DNS) servers. periodt. πŸ’–

🌈 SYNOPSIS 🌈

adig [@server] [-c class] [-p port#] [-q name] [-t type] [-x addr]
       [name] [type] [class] [queryopt...]

✨ DESCRIPTION ✨

Send queries to DNS servers about name and print the received information, where name is a valid DNS name (e.g. www.example.com, 1.2.3.10.in-addr.arpa). πŸŽ€

This utility comes with the c-ares asynchronous resolver library. πŸ¦‹

It is possible to specify default arguments for adig via ${XDG_CONFIG_HOME}/adigrc. yes bestie, your fave little config file. πŸ’…

πŸŽ€ ARGS πŸŽ€

  • @server β€” Server ip address. May specify multiple in comma delimited format. May be specified in URI format. πŸ‘‘
  • name β€” Name of the resource record that is to be looked up.
  • type β€” What type of query is required. e.g. A, AAAA, MX, TXT, etc. If not specified, A will be used. πŸ’–
  • class β€” Sets the query class, defaults to IN. May also be HS or CH.

πŸ’… FLAGS πŸ’…

  • -c class β€” Sets the query class, defaults to IN. May also be HS or CH.
  • -h β€” Prints the help. tiny helper moment. 🫢
  • -p port β€” Sends query to a port other than 53. Often recommended to set the port using @server instead.
  • -q name β€” Specifies the domain name to query. Useful to distinguish name from other arguments.
  • -r β€” Skip adigrc processing. ✨
  • -s β€” Server (alias for @server syntax), compatibility with old cmdline.
  • -t type β€” Indicates resource record type to query. Useful to distinguish type from other arguments.
  • -x addr β€” Simplified reverse lookups. Sets the type to PTR and forms a valid in-arpa query string. πŸ”₯

🌸 QUERY OPTIONS 🌸

  • +[no]aaonly β€” Sets the aa flag in the query. Default is off.
  • +[no]aaflag β€” Alias for +[no]aaonly.
  • +[no]additional β€” Toggles printing the additional section. On by default.
  • +[no]adflag β€” Sets the ad (authentic data) bit in the query. Default is off.
  • +[no]aliases β€” Whether or not to honor the HOSTALIASES file. Default is on.
  • +[no]all β€” Toggles all of +[no]cmd, +[no]stats, +[no]question, +[no]answer, +[no]authority, +[no]additional, +[no]comments.
  • +[no]answer β€” Toggles printing the answer. On by default.
  • +[no]authority β€” Toggles printing the authority. On by default.
  • +bufsize=# β€” UDP EDNS 0 packet size allowed. Defaults to 1232.
  • +[no]cdflag β€” Sets the CD (checking disabled) bit in the query. Default is off.
  • +[no]class β€” Display the class when printing the record. On by default.
  • +[no]cmd β€” Toggles printing the command requested. On by default.
  • +[no]comments β€” Toggles printing the comments. On by default.
  • +[no]defname β€” Alias for +[no]search.
  • +domain=somename β€” Sets the search list to a single domain.
  • +[no]dns0x20 β€” Whether or not to use DNS 0x20 case randomization when sending queries. Default is off.
  • +[no]edns[=#] β€” Enable or disable EDNS. Only allows a value of 0 if specified. Default is to enable EDNS.
  • +[no]ignore β€” Ignore truncation on UDP, by default retried on TCP.
  • +[no]keepopen β€” Whether or not the server connection should be persistent. Default is off.
  • +ndots=# β€” Sets the number of dots that must appear before being considered absolute. Defaults to 1.
  • +[no]primary β€” Whether or not to only use a single server if more than one server is available. Defaults to using all servers.
  • +[no]qr β€” Toggles printing the request query. Off by default.
  • +[no]question β€” Toggles printing the question. On by default.
  • +[no]recurse β€” Toggles the RD (Recursion Desired) bit. On by default.
  • +retry=# β€” Same as +tries but does not include the initial attempt.
  • +[no]search β€” To use or not use the search list. Search list is not used by default.
  • +[no]stats β€” Toggles printing the statistics. On by default.
  • +[no]tcp β€” Whether to use TCP when querying name servers. Default is UDP.
  • +tries=# β€” Number of query tries. Defaults to 3.
  • +[no]ttlid β€” Display the TTL when printing the record. On by default.
  • +[no]vc β€” Alias for +[no]tcp.

πŸŽ€ FILES πŸŽ€

  • ${XDG_CONFIG_HOME}/adigrc

πŸ¦‹ REPORTING BUGS πŸ¦‹

Report bugs to the c-ares github issues tracker: https://github.com/c-ares/c-ares/issues πŸ’œ

🌈 SEE ALSO 🌈

Also go peek at ahost(1). πŸ’–


okay that's the whole page, bestie 🫢 β€” brought to you by c-ares utilities, dated Sept 2024, and filed under ADIG(1). periodt. πŸ’…βœ¨