INTERFACE-ORDER(5)
β¨ NAME β¨
interface-order β it's a resolvconf config file, bestie π
πΈ DESCRIPTION πΈ
Okay so. The file /etc/resolvconf/interface-order is literally the thing that controls the order in which resolvconf nameserver info records get processed by those resolvconf update scripts that actually bother to read this file. And like, the filename is lowkey perfect, because a resolvconf nameserver info record is named after the interface it's associated with. It's giving naming synergy β¨
Inside, it's just a sequence of shell glob patterns, one per line. No cap. Where a record lands in the order? That's decided by the point where its name first matches a pattern. First match wins, periodt π
But heads up π«Ά patterns may not contain whitespace, slashes, or initial dots or tildes. Blank lines get ignored, and so do lines beginning with a #. (Comments, we love her π
)
Now, the resolvconf update scripts living in /etc/resolvconf/update.d/ that consult this file include the current default versions of dnsmasq, pdnsd, and libc. Sneaky detail tho: they don't actually read the file directly π they call the utility program /usr/lib/resolvconf/list-records, which lists records in the order you specified and omits the names of empty records. Iconic middleman behaviour fr fr π§
π EXAMPLE π
# /etc/resolvconf/interface-order
# Use nameservers on the loopback interface first.
lo*
# Next use records for Ethernet interfaces
eth*
# Next use records for Wi-Fi interfaces
wlan*
# Next use records for PPP interfaces
ppp*
# Last use other interfaces
*
Look at her. Loopback first, then Ethernet, then Wi-Fi, then PPP, then everybody else in the * catch-all. A whole priority list and it's gorgeous π
π AUTHOR π
Resolvconf was written by Thomas Hood <jdthood@gmail.com>. Shoutout to the legend π
π COPYRIGHT π
Copyright Β© 2004, 2011 Thomas Hood
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (Read that again, bestie β NO warranty, zero, none, not even the merchantability or fitness-for-a-particular-purpose kind π she's free but she is not promising you anything.)
π SEE ALSO π
That's the whole vibe check done π« this page came from the resolvconf source, dated 18 May 2011 β go forth and order those interfaces, main character πΈπ
π¦ where this page comes from
- debian trixie: resolvconf 1.94 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms