tinydns-get

## Name

tinydns-get — query a content DNS server's database file directly

## Synopsis

`tinydns-get` {`t`} {`fqdn`} [`addr`]

## Description

tinydns-get looks up resource records of type `t` for `fqdn` by directly reading a content DNS server's `data.cdb` file, in exactly the same way that tinydns(1) and axfrdns(1) obtain their results from that same file. It prints the results in a compact human-readable format, the same as dnsq(1).

`data.cdb` is located in the current directory. `t` may be a name or a number. Currently recognized names are: `any`, `a`, `ns`, `mx`, `ptr`, `txt`, `cname`, `soa`, `loc`, `hinfo`, `rp`, `sig`, `key`, `aaaa`, `axfr`, and `srv`. If `addr` is supplied tinydns-get simulates making a query from that location; this matters if `data.cdb` differentiates among clients in different locations.

### Caution

tinydns-get is a diagnostic tool, and thus permits using improper values of `t`.

### Note

tinydns-get axfr , tinydns-get any , and tinydns-get opt simulate things that valid DNS clients will not actually do. See RFC 8482 for the particular case of any passing into desuetude, and RFC 6891 for why opt is never a valid client query type.

## See also

dnsq(1)

  a similar tool that makes requests to content DNS servers using the DNS protocol

dnsqr(1)

  a tool that makes requests to proxy DNS servers

## History

tinydns-get was originally part of Daniel J. Bernstein's djbdns toolset in 2000.

## Author

Original code and documentation by Daniel J. Bernstein. Documentation modernizations by Jonathan de Boyne Pollard.