INTERFACE-ORDER(5)

πŸ“¦
version 1.94 Β· 2 versions
, in debian trixie

✨ 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 Β© 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