BORE(1)
π¦ BORE(1) β the DNS query tool that ate π
okay so bestie, welcome to bore(1) β she's a DNS query tool and she is so that girl. this is the General Commands Manual page for her, and we're gonna get through it together, no cap β¨
πΈ SYNOPSIS πΈ
bore [--encode | --decode | --show-resolvers] [--load] [--dump]
[--host host] [--port port] [--timeout timeout] [-x | --reverse]
[--class class] [--color when] [@host] [name] [type]
π DESCRIPTION π
So what does she do. She sends a DNS query and prints the response in zone format. That's it, that's the vibe. π
If you don't give her a host, bore uses your system's resolvers β and like, she gets those from GetAdaptersAddresses on Windows, from dns_configuration_copy on macOS, or from resolv.conf(5) on other Unix-like platforms, and she's falling back on localhost if all that comes up empty. resourceful queen π«Ά
β οΈ Real talk for a sec: your platform's native name resolution probably supports other sources besides DNS β think a hosts(5) file, or mDNS (Bonjour). bore only uses native resolution for host itself, and otherwise she only sends DNS queries, so the results may differ from how your system would resolve a name as a hostname. iykyk, don't come for her π
By default, bore will follow four steps, in order, always:
- build a query based on the given arguments
- send the query to the given host
- receive a response from the given host
- decode and pretty-print the message
β¨ OPTIONS β¨
The following options and positional arguments may be given in any order β she's flexible like that π
π Positional arguments
@hostβ Sends the query to host (see--host). cute little shorthand, love that for us.name[default:.] β Question name. Names are parsed in zone format, with dots separating labels unless escaped,\000through\255to escape an octet, and\xwith any non-digit character 'x' to escape that character.
π¨ Two things bestie, listen up: when--reverseis given, name is required, and it should instead be an IPv4 or IPv6 address. Also, a trailing dot must be added when querying top-level domains, otherwise they will be treated as a type (and probably fail π). And names starting with '@' must be escaped, otherwise they'll be treated as a@host. escaping is self-care, fr.
type[default:A] β Question type. The default is 'PTR' if--reverseis given, or 'A' if a name is given, or 'NS' otherwise. For unknown types, use 'TYPE' followed by the type number, e.g. 'type65535'. she's got range π
π Mode options
--encodeβ Writes the raw query to stdout, instead of sending it (step 1 only). just the query, ma'am π--loadβ Reads the raw query from stdin, instead of building one (skip step 1).--dumpβ Writes the raw response to stdout, instead of pretty-printing it (skip step 4).--decodeβ Reads a raw message from stdin, then decodes and pretty-prints it (step 4 only). reverse girlie π--show-resolversβ Prints details about your system's resolvers, and a list of hosts we would actually send queries to (after taking--hostand--portinto account), without doing anything else. pure vibes, zero queries π₯
π¦ Network options
--hosthost β Sends the query to host, instead of your system's resolvers. If host is a domain name, we use your platform's native name resolution to turn it into a list of IP addresses. iconic behaviour ngl.--portport [default:53] β Sends the query to the given port. The default is port 53, or on macOS, the custom port (if any) that each of your system's resolvers and nameservers is configured to use. macOS stays doing the most π--timeouttimeout [seconds; default:5] β Give up on waiting for the query after timeout seconds, and if there are more hosts available, try the next one. This timeout spans the whole query attempt, so the query needs to be sent and a response received within that time. clock is ticking bestie β°
π§ Building queries
-x,--reverseβ Makes a reverse DNS query, converting name (required) from an IP address to a domain name in 'in-addr.arpa.' (IPv4) or 'ip6.arpa.' (IPv6). yes bestie, required required π--classclass [default:IN] β Question class. For unknown classes, use 'CLASS' followed by the class number, e.g. 'class65535'. number go brrr β¨
πΈ Other options
--colorβ¨auto | never | alwaysβ© [default:auto] β Controls when to use colours or other text styles. In auto mode, we decide whether or not to use them as follows:- no, if standard output is not a tty (Unix) or console (Windows)
- no, if the environment has
TERM=dumb(all platforms) - no, if the environment has no
TERM(Unix) - yes, otherwise
aesthetically speaking? she ate π
π SEE ALSO π
hosts(5), resolv.conf(5) β go read those too, they're part of the lore π
π AUTHORS π
bore is written and maintained by Delan Azabani <delan@azabani.com>. give her a round of applause fr fr π«Ά
okay and for the little credits corner: this page ships from Debian, dated $Mdocdate$, and she's filed under BORE(1) in the General Commands Manual. mwah, that's a wrap πβ¨π¦
π¦ where this page comes from
- nixos 26.05: bore 0.4.1
- nixpkgs unstable: bore 0.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms