RTQUERY(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… RTQUERY β€” rtquery(8)

okay so bestie, picture this: a whole manual page from the System Manager's Manual section 8, and it's about rtquery. that's the vibe. let's get into it πŸŽ€


✨ NAME ✨

rtquery β€” query routing daemons for their routing tables πŸ›°οΈ


πŸ’€ DEPRECATION NOTICE πŸ’€

okay so this is the part where i hold your hand. rtquery is deprecated and it will be removed in FreeBSD 16.0. so like… enjoy it while it's here, bestie, because it's giving end-of-an-era 😭


🌸 SYNOPSIS 🌸

rtquery [-np1] [-w timeout] [-r addr] [-a secret] host ...
rtquery [-t op] host ...

like, two whole forms. pick your fighter πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so rtquery is the little utility that hits up a RIP network routing daemon (think routed(8)) and asks it for its routing table β€” by sending a request or poll command. and the routing info that comes back in any routing response packets? it gets displayed numerically and symbolically, both. iconic ✨

by default, rtquery uses the request command. but when you throw the -p option in there, it uses the poll command instead β€” which is an undocumented extension to the RIP protocol, supported by the commercial gated routing product. πŸ‘‘

and when you're querying gated, the poll command is highkey preferred over request because:

  • the response is not subject to Split Horizon and/or Poisoned Reverse πŸŒ€
  • some versions of gated literally do not answer the request command πŸ™ˆ

meanwhile routed(8) does not answer the poll command β€” but it does recognize requests coming from rtquery, so it answers completely. teamwork, fr fr 🫢

also, fun fact: rtquery is also used to turn tracing on or off in routed(8). multi-talented. main character energy.

the following options are available:


πŸ’– OPTIONS πŸ’–

  • -n β€” displays only the numeric network and host numbers, instead of both numeric and symbolic. no names, just digits, we love a minimalist πŸ’…
  • -p β€” uses the poll command to request full routing information from gated. this is an undocumented extension RIP protocol supported only by gated. exclusive behavior πŸ‘‘
  • -1 β€” queries using RIP version 1 instead of RIP version 2. throwback era πŸ•°οΈ
  • -w timeout β€” changes the delay for an answer from each host. by default, each host is given 15 seconds to respond. clock's ticking bestie ⏰
  • -r addr β€” asks about the route to destination addr. like "hey what's the way to this place" πŸ—ΊοΈ
  • -a passwd=XXX β€” the cleartext password flavor of -a πŸ“
  • -a md5_passwd=XXX|KeyID β€” causes the query to be sent with the indicated cleartext or MD5 password. MD5 flavor, spicy 🌢️
  • -t op β€” changes tracing, where op is one of the following:
    • on=tracefile β€” turns tracing on into the specified file. that file must usually have been specified when the daemon was started, or be the same as a fixed name, often /etc/routed.trace. πŸ“
    • more β€” increases the debugging level. more chaos, more info πŸ”₯
    • off β€” turns off tracing. lights out πŸŒ™
    • dump β€” dumps the daemon's routing table to the current tracefile. spill the tea, daemon β˜•
⚠️ important caveat bestie: requests from processes not running with UID 0, or on distant networks, are generally ignored by the daemon β€” except for a message in the system log. and gated is likely to ignore these debugging requests. so don't come crying if nothing happens 😭

🌈 SEE ALSO 🌈


and that's the whole page, bestie πŸ’œ this one's from the Debian crew, dated May 20, 2025 β€” so go forth, query those routing daemons, and slay βœ¨πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from