rblckeck(1)

πŸ“¦
version 0.7 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

rblckeck β€” a DNSBL lookup utility πŸ’… (yes bestie, the manual page is literally titled rblckeck, that's the page name we're working with, and the command inside it is rblcheck, we're keeping both exactly as they are, no cap)


πŸŽ€ SYNOPSYS πŸŽ€

rblcheck [-s zone] [-S zone-file] [-c] [-tmvq] [-n nsaddr] address...
Not me noticing the original spells the section "SYNOPSYS" β€” keeping it, that's canon now, it's part of the lore 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So rblcheck is a simple command-line tool that does DNSBL lookups β€” DNSBL meaning DNS-based blocklists, iykyk. It's giving "is this IP on the naughty list" but make it a whole utility. πŸ‘‘

Here's the vibe: for every IP address you hand it β€” or a name, and if it's a name it'll get resolved to an address first, no worries β€” the utility verifies whenever it is listed in a (list of) DNS blocklists that you specified with the -s or -S options. Optionally it also snags the text associated with the listing (usually that's either some description about the reason of the listing, or an URL referring to such a description, so like a little receipt for why you got listed πŸ“), and then it displays results on standard output.

The program is implemented on top of udns(3) library. That's the whole architecture, that's the flex. ✨


πŸ’– OPTIONS πŸ’–

The following options are recognized by rblcheck:

  • -s zone β€” add the given zone DNSBL name to the list of active zones. Like, this one goes on the list. βœ…
  • -S zone-file β€” add list of zones from the named zone-file to the list of active zones. Heads up on the file format bestie: the file specifies one zone as the first word on a line, and empty lines and lines starting with a `#` character are ignored. πŸ“„
  • -c β€” reset active zone list. Fresh start, we love a clean slate. 🧼
  • -v β€” be more verbose, produce more detailed output. She's talking more now. πŸ—£οΈ
  • -q β€” the opposite for -v β€” produce less detailed output. She's being mysterious. 🀫
  • -t β€” obtain text for listed addresses. Get the receipts, get the tea. β˜•
  • -n nsaddr β€” Use the given nameserver (given as IPv4 or IPv6 address) instead of the default. The same effect may be achieved by setting $NSCACHEIP environment variable. 🌐
  • -m β€” stop after first hit, ie after the first address which is found to be listed. First one's enough, we're out. πŸƒβ™€οΈ
  • -h β€” print short help and exit. Little emergency exit for when you're lost. πŸ†˜

If no -s, -S and -c options are given, rblcheck will try to obtain list of zones using $RBLCHECK_ZONES environment variable, or ~/.rblcheckrc, or /etc/rblckechrc files, in that order. If no zones are found, it will exit unsuccessfuly. πŸ’€


🌈 RETURN VALUE 🌈

  • When no addresses given are listed and no errors occurred, rblcheck exits with code 0. Clean, unproblematic, main character energy. ✨
  • If at least one address is listed, rblcheck returns 100. Caught in 4K. πŸ“Έ
  • In case of DNS errors, rblcheck returns 2. Something went sideways. 😭

🌸 ENVIRONMENT 🌸

  • $RBLCHECK_ZONES β€” if no -s, -S or -c option is given, rblcheck tries this variable to obtain list of DNSBL zones to check against. The environment variable is the first stop on the zone-acquisition tour. 🎟️

πŸ“ FILES πŸ“

  • $HOME/.rblcheckrc and /etc/rblcheckrc β€” if no -s, -S or -c option is given, and no $RBLCHECK_ZONES environment variable is set, rblcheck will try the two files (the first one that exists) to obtain list of DNSBL zones to check against. Each line specifies one zone (only first word in each line is used). Empty lines and lines starting with a `#` character are ignored. πŸ“‚

🧚 SEE ALSO 🧚

dnsget(1) resolv.conf(5) udns(3).


πŸ‘‘ AUTHOR πŸ‘‘

This program and manual pages are written by Michael Tokarev. Respect the author, they ate. 🫢


okay and that's the whole page bestie, go forth and check those blocklists πŸ’…

User Utilities Β· Apr 2005 Β· rblckeck(1) β€” that's the source, the version vibe and the date, all wrapped up in a little bow, mwah πŸŽ€