uts_namespaces(7)
๐ uts_namespaces(7) ๐
Miscellaneous Information Manual ยท bestie welcome to the UTS namespace corner of the manual, section 7 ๐
โจ NAME โจ
uts_namespaces โ the whole entire overview of Linux UTS namespaces, no cap ๐ธ
๐ฆ DESCRIPTION ๐ฆ
okay so. UTS namespaces are the vibe-check isolation layer for two system identifiers: the hostname and the NIS domain name. that's it. those two. iconic little duo ๐
- the hostname gets set with
sethostname(2) - the domain name gets set with
setdomainname(2) - and you can read them back with
uname(2),gethostname(2), andgetdomainname(2)
here's the tea ๐: changes you make to these identifiers are visible to all other processes in the same UTS namespace, but they are NOT visible to processes in other UTS namespaces. it's giving "what happens in this namespace stays in this namespace." periodt.
When a process creates a new UTS namespace using clone(2) or unshare(2) with the CLONE_NEWUTS flag, the hostname and domain name of the new UTS namespace are copied from the corresponding values in the caller's UTS namespace. so your new namespace literally inherits its parent's whole identity. main character energy, inherited ๐
โ ๏ธ heads up bestie: use of UTS namespaces requires a kernel that is configured with the CONFIG_UTS_NS option. no config, no namespace. fr fr.
๐ SEE ALSO ๐
nsenter(1)unshare(1)clone(2)getdomainname(2)gethostname(2)setns(2)uname(2)unshare(2)namespaces(7)
and that's the whole page, bestie โ go forth and isolate your hostnames responsibly ๐งโจ
๐ Linux man-pages 6.20 ยท 2026-02-08 ๐
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: Linux-man-pages-copyleft
- Copyright 2019, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms