MQUERY(1)
π MQUERY(1) β the mquery girlies' manual π
okay so bestie, welcome to the mquery page, section 1 of the general commands manual. it's tiny, it's niche, it's giving "multicast DNS but make it a little gremlin". let's get into it π¦
β¨ NAME β¨
mquery β a small query tool for multicast DNS. that's it. that's the whole job. she's little and she queries. periodt π
β¨ SYNOPSIS β¨
mquery [-hsv] [-i IFACE] [-t TYPE] [-w SEC] [NAME]
look at her. compact. iconic. no notes πΈ
β¨ DESCRIPTION β¨
so mquery is the companion tool to mdnsd(8) β like, they're besties β but ngl she can also fly solo as a stand-alone with other mDNS servers. she formats and sends mDNS service queries, kind of the same way mdns-scan(1) does, except with a fraction of the usability π like yes she does the thing, no she is not user-friendly about it, and we respect that honestly.
she runs on the system default interface, which gets derived from the routing table (iykyk). wanna run her somewhere else? hit her with the -i IFACE command line option and she'll relocate π«
and then she justβ¦ keeps going. she runs continuously, monitoring for responses to that initial query β and by default that query is _services._dns-sd._udp.local. she's a listener. she's patient. she's lowkey just vibing there forever π
β¨ OPTIONS β¨
this program follows the usual UNIX command line syntax. the options are as follows:
-hβ prints a bare bones help message and exits. that's it, that's the help, she's not doing a whole TED talk π-iIFACEβ which interface to run the query on. by default the system default interface is used, derived from the routing table.
only available on Linux! soz to everyone else π«Ά
-sβ by defaultmquerybehaves a lot likemdns-scan(1), which, after receiving an initial reply to a scan, sends a specific PTR query to whoever answered. this option skips that specific scan and runsmqueryin a simple mode. she's off the clock, she's just chilling β¨-tTYPEβ query type. default is12(PTR). pick your fighter π-hβ print a help message and exit. yes, again. she said it twice. she's thorough, she's committed, she contains multitudes π-vβ show program version. know your girl's era π-wSECβ delay (approximate) in seconds before automatically exiting. she sets a timer and dips. main character exit πͺβ¨
β¨ SEE ALSO β¨
go read the whole friend group π«Ά
β¨ AUTHORS β¨
this mDNS-SD implementation was created back in 2003 by Jeremie Miller <jer@jabber.org> β an actual pioneer, an OG, a legend fr fr π
much later, in 2016, it was adopted by Joachim Wiberg <troglobit@gmail.com> for further development and maintenance at GitHub: β¨https://github.com/troglobit/mdnsdβ©. glow-up era, we love to see it π
and that's the page babes β this version came from Debian, dated Jan 4 2022, and it's filed under MQUERY(1) in the manual. now go query something, you absolute icon ππ
π¦ where this page comes from
- debian bookworm: mdnsd 0.12-3 Β· BSD-3-Clause
- debian trixie: mdnsd 0.12-5 Β· BSD-3-Clause
- ubuntu noble: mdnsd 0.12-3.1build1 Β· BSD-3-Clause
- ubuntu questing: mdnsd 0.12-5
- ubuntu resolute: mdnsd 0.12-6 Β· BSD-3-Clause
- Copyright (c) 2021-2022 Joachim Wiberg <troglobit@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms