segregdomain(1)

πŸ“¦ version 2026.09.03, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

✨ segregdomain(1) ✨

okay bestie, so this is the segregdomain(1) page, and the actual command you're gonna meet is setregdomain. it's giving very niche, very system-level, very "your wifi knows where it lives" energy πŸ¦‹


🌸 NAME 🌸

setregdomain β€” set regulatory domain based on country code πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

setregdomain

✨ DESCRIPTION ✨

so setregdomain sets the regulatory domain for your system. that's it, that's the job 🫢

it takes no arguments β€” literally zero, it's not asking β€” and it's normally called via a system script (eg, udev) rather than manually by an administrator. so like, it's not really a "hey bestie run this yourself" situation, it's more of a "the system handles this behind the scenes, you just live your life" situation 🌈

the regulatory domain is represented by an ISO / IEC 3166-1 alpha2 country code. by default, setregdomain attempts to determine the appropriate country code by examining the target of the /etc/localtime symbolic link. that information is used to look-up the matching country code in the /usr/share/zoneinfo/zone.tab file. it's basically reading your timezone's whole vibe and going "oh ok, we're here then" 🧚

πŸ’€ heads up though: the country code look-up may fail. this could be due to faulty or incomplete information in the /usr/share/zoneinfo/zone.tab file, or the use of an actual file rather than a symlink for /etc/localtime, among other possibilities. no cap, it just happens sometimes.

in those cases the system administrator should define a COUNTRY environment variable in the /etc/sysconfig/regdomain file. that value will be used as the country code and the country code look-up will be skipped. so like, you're telling it directly instead of making it guess πŸ™ˆ


πŸ’– FILES πŸ’–

  • /etc/sysconfig/regdomain
  • /etc/localtime
  • /usr/share/zoneinfo/zone.tab

πŸ‘‘ SEE ALSO πŸ‘‘

  • iw(1)

and that's the whole page, bestie πŸ’œ this one comes to you from CRDA, dated 2014-11-19 β€” yes, it's an icon from 2014 and it still ate. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from