Debian Codegraph @

upstream/fedora-44/man5/org.freedesktop.hostname1.5

raw
1 '\" t
2 .TH "ORG\&.FREEDESKTOP\&.HOSTNAME1" "5" "" "systemd 259.5" "org.freedesktop.hostname1"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 org.freedesktop.hostname1 \- The D\-Bus interface of systemd\-hostnamed
24 .SH "INTRODUCTION"
25 .PP
26 \fBsystemd-hostnamed.service\fR(8)
27 is a system service that can be used to control the hostname and related machine metadata from user programs\&. This page describes the hostname semantics and the D\-Bus interface\&.
28 .SH "THE D\-BUS API"
29 .PP
30 The service exposes the following interfaces on the bus:
31 .sp
32 .if n \{\
33 .RS 4
34 .\}
35 .nf
36 node /org/freedesktop/hostname1 {
37 interface org\&.freedesktop\&.hostname1 {
38 methods:
39 SetHostname(in s hostname,
40 in b interactive);
41 SetStaticHostname(in s hostname,
42 in b interactive);
43 SetPrettyHostname(in s hostname,
44 in b interactive);
45 SetIconName(in s icon,
46 in b interactive);
47 SetChassis(in s chassis,
48 in b interactive);
49 SetDeployment(in s deployment,
50 in b interactive);
51 SetLocation(in s location,
52 in b interactive);
53 GetProductUUID(in b interactive,
54 out ay uuid);
55 GetHardwareSerial(out s serial);
56 Describe(out s json);
57 properties:
58 readonly s Hostname = \*(Aq\&.\&.\&.\*(Aq;
59 readonly s StaticHostname = \*(Aq\&.\&.\&.\*(Aq;
60 readonly s PrettyHostname = \*(Aq\&.\&.\&.\*(Aq;
61 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
62 readonly s DefaultHostname = \*(Aq\&.\&.\&.\*(Aq;
63 readonly s HostnameSource = \*(Aq\&.\&.\&.\*(Aq;
64 readonly s IconName = \*(Aq\&.\&.\&.\*(Aq;
65 readonly s Chassis = \*(Aq\&.\&.\&.\*(Aq;
66 readonly s Deployment = \*(Aq\&.\&.\&.\*(Aq;
67 readonly s Location = \*(Aq\&.\&.\&.\*(Aq;
68 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
69 readonly s KernelName = \*(Aq\&.\&.\&.\*(Aq;
70 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
71 readonly s KernelRelease = \*(Aq\&.\&.\&.\*(Aq;
72 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
73 readonly s KernelVersion = \*(Aq\&.\&.\&.\*(Aq;
74 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
75 readonly s OperatingSystemPrettyName = \*(Aq\&.\&.\&.\*(Aq;
76 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
77 readonly s OperatingSystemCPEName = \*(Aq\&.\&.\&.\*(Aq;
78 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
79 readonly t OperatingSystemSupportEnd = \&.\&.\&.;
80 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
81 readonly s HomeURL = \*(Aq\&.\&.\&.\*(Aq;
82 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
83 readonly s OperatingSystemImageID = \*(Aq\&.\&.\&.\*(Aq;
84 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
85 readonly s OperatingSystemImageVersion = \*(Aq\&.\&.\&.\*(Aq;
86 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
87 readonly s HardwareVendor = \*(Aq\&.\&.\&.\*(Aq;
88 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
89 readonly s HardwareModel = \*(Aq\&.\&.\&.\*(Aq;
90 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
91 readonly s HardwareSKU = \*(Aq\&.\&.\&.\*(Aq;
92 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
93 readonly s HardwareVersion = \*(Aq\&.\&.\&.\*(Aq;
94 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
95 readonly s FirmwareVersion = \*(Aq\&.\&.\&.\*(Aq;
96 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
97 readonly s FirmwareVendor = \*(Aq\&.\&.\&.\*(Aq;
98 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
99 readonly t FirmwareDate = \&.\&.\&.;
100 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
101 readonly ay MachineID = [\&.\&.\&.];
102 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
103 readonly ay BootID = [\&.\&.\&.];
104 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
105 readonly u VSockCID = \&.\&.\&.;
106 @org\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal("const")
107 readonly s ChassisAssetTag = \*(Aq\&.\&.\&.\*(Aq;
108 };
109 interface org\&.freedesktop\&.DBus\&.Peer { \&.\&.\&. };
110 interface org\&.freedesktop\&.DBus\&.Introspectable { \&.\&.\&. };
111 interface org\&.freedesktop\&.DBus\&.Properties { \&.\&.\&. };
112 };
113 .fi
114 .if n \{\
115 .RE
116 .\}
117 .sp
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158 .PP
159 Whenever the hostname or other metadata is changed via the daemon,
160 \fBPropertyChanged\fR
161 signals are sent out to subscribed clients\&. Changing a hostname using this interface is authenticated via
162 \m[blue]\fBpolkit\fR\m[]\&\s-2\u[1]\d\s+2\&.
163 .SH "SEMANTICS"
164 .PP
165 The
166 \fIStaticHostname\fR
167 property exposes the "static" hostname configured in
168 /etc/hostname\&. It is not always in sync with the current hostname as returned by the
169 \fBgethostname\fR(3)
170 system call\&. If no static hostname is configured this property will be the empty string\&.
171 .PP
172 When
173 \fBsystemd\fR(1)
174 or
175 \fBsystemd-hostnamed.service\fR(8)
176 set the hostname, this static hostname
177 \fIhas the highest priority\fR\&.
178 .PP
179 The
180 \fIHostname\fR
181 property exposes the actual hostname configured in the kernel via
182 \fBsethostname\fR(2)\&. It can be different from the static hostname\&. This property is never empty\&.
183 .PP
184 The
185 \fIPrettyHostname\fR
186 property exposes the
187 \fIpretty hostname\fR
188 which is a free\-form UTF\-8 hostname for presentation to the user\&. User interfaces should ensure that the pretty hostname and the static hostname stay in sync\&. E\&.g\&. when the former is
189 "Lennart\(cqs Computer"
190 the latter should be
191 "lennarts\-computer"\&. If no pretty hostname is set this setting will be the empty string\&. Applications should then find a suitable fallback, such as the dynamic hostname\&.
192 .PP
193 The
194 \fIDefaultHostname\fR
195 property exposes the default hostname (configured through
196 \fBos-release\fR(5), or a fallback set at compilation time)\&.
197 .PP
198 The
199 \fIHostnameSource\fR
200 property exposes the origin of the currently configured hostname\&. One of
201 "static"
202 (set from
203 /etc/hostname),
204 "transient"
205 (a non\-permanent hostname from an external source),
206 "default"
207 (the value from
208 os\-release
209 or the compiled\-in fallback)\&.
210 .PP
211 The
212 \fIIconName\fR
213 property exposes the
214 \fIicon name\fR
215 following the XDG icon naming spec\&. If not set, information such as the chassis type (see below) is used to find a suitable fallback icon name (i\&.e\&.
216 "computer\-laptop"
217 vs\&.
218 "computer\-desktop"
219 is picked based on the chassis information)\&. If no such data is available, the empty string is returned\&. In that case an application should fall back to a replacement icon, for example
220 "computer"\&. If this property is set to the empty string, the automatic fallback name selection is enabled again\&.
221 .PP
222 The
223 \fIChassis\fR
224 property exposes a
225 \fIchassis type\fR, one of the currently defined chassis types:
226 "desktop",
227 "laptop",
228 "server",
229 "tablet",
230 "handset", as well as the special chassis types
231 "vm"
232 and
233 "container"
234 for virtualized systems\&. Note that in most cases the chassis type will be determined automatically from DMI/SMBIOS/ACPI firmware information\&. Writing to this setting is hence useful only to override misdetected chassis types, or to configure the chassis type if it could not be auto\-detected\&. Set this property to the empty string to reenable the automatic detection of the chassis type from firmware information\&.
235 .PP
236 Note that
237 systemd\-hostnamed
238 starts only on request and terminates after a short idle period\&. This effectively means that
239 \fBPropertyChanged\fR
240 messages are not sent out for changes made directly on the files (as in: administrator edits the files with vi)\&. This is the intended behavior: manual configuration changes should require manual reloading\&.
241 .PP
242 The transient (dynamic) hostname exposed by the
243 \fIHostname\fR
244 property maps directly to the kernel hostname\&. This hostname should be assumed to be highly dynamic, and hence should be watched directly, without depending on
245 \fBPropertyChanged\fR
246 messages from
247 systemd\-hostnamed\&. To accomplish this, open
248 /proc/sys/kernel/hostname
249 and
250 \fBpoll\fR(3)
251 for
252 \fBSIGHUP\fR
253 which is triggered by the kernel every time the hostname changes\&. Again: this is special for the transient (dynamic) hostname, and does not apply to the configured (fixed) hostname\&.
254 .PP
255 Applications may read the hostname data directly if hostname change notifications are not necessary\&. Use
256 \fBgethostname\fR(2),
257 /etc/hostname
258 (possibly with per\-distribution fallbacks), and
259 \fBmachine-info\fR(5)
260 for that\&. For more information on these files and syscalls see the respective man pages\&.
261 .PP
262 \fIKernelName\fR,
263 \fIKernelRelease\fR, and
264 \fIKernelVersion\fR
265 expose the kernel name (e\&.g\&.
266 "Linux"), release (e\&.g\&.
267 "5\&.0\&.0\-11"), and version (i\&.e\&. the build number, e\&.g\&.
268 "#11") as reported by
269 \fBuname\fR(2)\&.
270 \fIOperatingSystemPrettyName\fR,
271 \fIOperatingSystemCPEName\fR, and
272 \fIHomeURL\fR
273 expose the
274 \fIPRETTY_NAME=\fR,
275 \fICPE_NAME=\fR
276 and
277 \fIHOME_URL=\fR
278 fields from
279 \fBos-release\fR(5)\&. The purpose of those properties is to allow remote clients to access this information over D\-Bus\&. Local clients can access the information directly\&.
280 .PP
281 \fIMachineID\fR
282 expose the 128bit machine ID, see
283 \fBmachine-id\fR(5)
284 for details\&.
285 .PP
286 \fIBootID\fR
287 expose the 128bit boot ID, as per
288 /proc/sys/kernel/random/boot_id\&.
289 .PP
290 \fIVSockCID\fR
291 exposes the system\*(Aqs local
292 \fBAF_VSOCK\fR
293 CID (Context Identifier, i\&.e\&. address) for the system, if one is available in the virtual machine environment\&. Set to
294 \fBUINT32_MAX\fR
295 otherwise\&. See
296 \fBvsock\fR(7)
297 for details\&.
298 .PP
299 \fIOperatingSystemSupportEnd\fR
300 exposes when the OS\*(Aq vendor support ends, if this information is known\&. It\*(Aqs an unsigned 64bit value, in \(mcs since the UNIX epoch, UTC\&. If this information is not known carries the value 2^64\-1, i\&.e\&.
301 \fBUINT64_MAX\fR\&.
302 .PP
303 \fIOperatingSystemImageID\fR
304 and
305 \fIOperatingSystemImageVersion\fR
306 expose the OS image name and version if available, or contain empty strings otherwise\&. This mostly corresponds to the
307 \fIIMAGE_ID=\fR
308 and
309 \fIIMAGE_VERSION=\fR
310 fields of the
311 os\-release
312 file\&.
313 .PP
314 \fIHardwareVendor\fR,
315 \fIHardwareModel\fR,
316 \fIHardwareSKU\fR, and
317 \fIHardwareVersion\fR
318 expose vendor information about the hardware of the system\&. The stock keeping unit (SKU) describes a distinct type of hardware for sale, purchase or inventory management\&. The SKU and version are only available if they deviate from the model and among each other\&. Thereby the version is more specific and only available if it differs from the model and SKU\&. If no such information can be determined these properties are set to empty strings\&.
319 .PP
320 \fIFirmwareVersion\fR
321 and
322 \fIFirmwareVendor\fR
323 expose information about the system\*(Aqs firmware, i\&.e\&. a version string and a vendor name\&. If no such information can be determined these properties are set to empty strings\&.
324 .PP
325 \fIFirmwareDate\fR
326 exposes the firmware build date, if that information is known\&. It\*(Aqs an unsigned 64bit value, in \(mcs since the UNIX epoch, UTC\&. If not known
327 \fBUNIT64_MAX\fR\&.
328 .PP
329 \fIChassisAssetTag\fR
330 exposes an unique identifier of the system chassis\&. If this information is not known this property is set to an empty string\&.
331 .SS "Methods"
332 .PP
333 \fBSetHostname()\fR
334 sets the transient (dynamic) hostname, which is used if no static hostname is set\&. This value must be an internet\-style hostname, 7\-bit lowercase ASCII, no special chars/spaces\&. An empty string will unset the transient hostname\&.
335 .PP
336 \fBSetStaticHostname()\fR
337 sets the static hostname which is exposed by the
338 \fIStaticHostname\fR
339 property\&. When called with an empty argument, the static configuration in
340 /etc/hostname
341 is removed\&. Since the static hostname has the highest priority, calling this function usually affects also the
342 \fIHostname\fR
343 property and the effective hostname configured in the kernel\&.
344 .PP
345 \fBSetPrettyHostname()\fR
346 sets the pretty hostname which is exposed by the
347 \fIPrettyHostname\fR
348 property\&.
349 .PP
350 \fBSetIconName()\fR,
351 \fBSetChassis()\fR,
352 \fBSetDeployment()\fR, and
353 \fBSetLocation()\fR
354 set the properties
355 \fIIconName\fR
356 (the name of the icon representing for the machine),
357 \fIChassis\fR
358 (the machine form factor),
359 \fIDeployment\fR
360 (the system deployment environment), and
361 \fILocation\fR
362 (physical system location), respectively\&.
363 .PP
364 \fIPrettyHostname\fR,
365 \fIIconName\fR,
366 \fIChassis\fR,
367 \fIDeployment\fR, and
368 \fILocation\fR
369 are stored in
370 /etc/machine\-info\&. See
371 \fBmachine-info\fR(5)
372 for the semantics of those settings\&.
373 .PP
374 \fBGetProductUUID()\fR
375 returns the "product UUID" as exposed by the kernel based on DMI information in
376 /sys/class/dmi/id/product_uuid\&. Reading the file directly requires root privileges, and this method allows access to unprivileged clients through the polkit framework\&.
377 .PP
378 \fBGetHardwareSerial()\fR
379 returns the "hardware serial" as exposed by the kernel based on DMI information\&. Reading the file directly requires root privileges, and this method allows access to unprivileged clients through the polkit framework\&.
380 .PP
381 \fBDescribe()\fR
382 returns a JSON representation of all properties in one\&.
383 .SS "Security"
384 .PP
385 The
386 \fIinteractive\fR
387 boolean parameters can be used to control whether polkit should interactively ask the user for authentication credentials if required\&.
388 .PP
389 The polkit action for
390 \fBSetHostname()\fR
391 is
392 org\&.freedesktop\&.hostname1\&.set\-hostname\&. For
393 \fBSetStaticHostname()\fR
394 and
395 \fBSetPrettyHostname()\fR
396 it is
397 org\&.freedesktop\&.hostname1\&.set\-static\-hostname\&. For
398 \fBSetIconName()\fR,
399 \fBSetChassis()\fR,
400 \fBSetDeployment()\fR
401 and
402 \fBSetLocation()\fR
403 it is
404 org\&.freedesktop\&.hostname1\&.set\-machine\-info\&.
405 .SH "RECOMMENDATIONS"
406 .PP
407 Here are three examples that show how the pretty hostname and the icon name should be used:
408 .sp
409 .RS 4
410 .ie n \{\
411 \h'-04'\(bu\h'+03'\c
412 .\}
413 .el \{\
414 .sp -1
415 .IP \(bu 2.3
416 .\}
417 When registering DNS\-SD services: use the pretty hostname in the service name, and pass the icon name in the TXT data, if there is an icon name\&. Browsing clients can then show the server icon on each service\&. This is especially useful for WebDAV applications or UPnP media sharing\&.
418 .RE
419 .sp
420 .RS 4
421 .ie n \{\
422 \h'-04'\(bu\h'+03'\c
423 .\}
424 .el \{\
425 .sp -1
426 .IP \(bu 2.3
427 .\}
428 Set the bluetooth name to the pretty hostname\&.
429 .RE
430 .sp
431 .RS 4
432 .ie n \{\
433 \h'-04'\(bu\h'+03'\c
434 .\}
435 .el \{\
436 .sp -1
437 .IP \(bu 2.3
438 .\}
439 When your file browser has a "Computer" icon, replace the name with the pretty hostname if set, and the icon with the icon name, if it is set\&.
440 .RE
441 .PP
442 To properly handle name lookups with changing local hostnames without having to edit
443 /etc/hosts, we recommend using
444 systemd\-hostnamed
445 in combination with
446 \fBnss-myhostname\fR(8)\&.
447 .PP
448 Here are some recommendations to follow when generating a static (internet) hostname from a pretty name:
449 .sp
450 .RS 4
451 .ie n \{\
452 \h'-04'\(bu\h'+03'\c
453 .\}
454 .el \{\
455 .sp -1
456 .IP \(bu 2.3
457 .\}
458 Generate a single DNS label only, not an FQDN\&. That means no dots allowed\&. Strip them, or replace them with
459 "\-"\&.
460 .RE
461 .sp
462 .RS 4
463 .ie n \{\
464 \h'-04'\(bu\h'+03'\c
465 .\}
466 .el \{\
467 .sp -1
468 .IP \(bu 2.3
469 .\}
470 It\*(Aqs probably safer to not use any non\-ASCII chars, even if DNS allows this in some way these days\&. In fact, restrict your charset to
471 "a\-zA\-Z0\-9"
472 and
473 "\-"\&. Strip other chars, or try to replace them in some smart way with chars from this set, for example
474 "ä"
475 →
476 "ae", and use
477 "\-"
478 as the replacement for all punctuation characters and whitespace\&.
479 .RE
480 .sp
481 .RS 4
482 .ie n \{\
483 \h'-04'\(bu\h'+03'\c
484 .\}
485 .el \{\
486 .sp -1
487 .IP \(bu 2.3
488 .\}
489 Try to avoid creating repeated
490 "\-", as well as
491 "\-"
492 as the first or last char\&.
493 .RE
494 .sp
495 .RS 4
496 .ie n \{\
497 \h'-04'\(bu\h'+03'\c
498 .\}
499 .el \{\
500 .sp -1
501 .IP \(bu 2.3
502 .\}
503 Limit the hostname to 63 chars, which is the length of a DNS label\&.
504 .RE
505 .sp
506 .RS 4
507 .ie n \{\
508 \h'-04'\(bu\h'+03'\c
509 .\}
510 .el \{\
511 .sp -1
512 .IP \(bu 2.3
513 .\}
514 If after stripping special chars the empty string is the result, you can pass this as\-is to
515 systemd\-hostnamed
516 in which case it will automatically use a suitable fallback\&.
517 .RE
518 .sp
519 .RS 4
520 .ie n \{\
521 \h'-04'\(bu\h'+03'\c
522 .\}
523 .el \{\
524 .sp -1
525 .IP \(bu 2.3
526 .\}
527 Uppercase characters should be replaced with their lowercase equivalents\&.
528 .RE
529 .PP
530 Note that while
531 systemd\-hostnamed
532 applies some checks to the hostname you pass they are much looser than the recommendations above\&. For example,
533 systemd\-hostnamed
534 will also accept
535 "_"
536 in the hostname, but we recommend not using this to avoid clashes with DNS\-SD service types\&. Also
537 systemd\-hostnamed
538 allows longer hostnames, but because of the DNS label limitations, we recommend not making use of this\&.
539 .PP
540 Here are a couple of example conversions:
541 .sp
542 .RS 4
543 .ie n \{\
544 \h'-04'\(bu\h'+03'\c
545 .\}
546 .el \{\
547 .sp -1
548 .IP \(bu 2.3
549 .\}
550 "Lennart\*(Aqs PC"
551 →
552 "lennarts\-pc"
553 .RE
554 .sp
555 .RS 4
556 .ie n \{\
557 \h'-04'\(bu\h'+03'\c
558 .\}
559 .el \{\
560 .sp -1
561 .IP \(bu 2.3
562 .\}
563 "Müllers Computer"
564 →
565 "muellers\-computer"
566 .RE
567 .sp
568 .RS 4
569 .ie n \{\
570 \h'-04'\(bu\h'+03'\c
571 .\}
572 .el \{\
573 .sp -1
574 .IP \(bu 2.3
575 .\}
576 "Voran!"
577 →
578 "voran"
579 .RE
580 .sp
581 .RS 4
582 .ie n \{\
583 \h'-04'\(bu\h'+03'\c
584 .\}
585 .el \{\
586 .sp -1
587 .IP \(bu 2.3
588 .\}
589 "Es war einmal ein Männlein"
590 →
591 "es\-war\-einmal\-ein\-maennlein"
592 .RE
593 .sp
594 .RS 4
595 .ie n \{\
596 \h'-04'\(bu\h'+03'\c
597 .\}
598 .el \{\
599 .sp -1
600 .IP \(bu 2.3
601 .\}
602 "Jawoll\&. Ist doch wahr!"
603 →
604 "jawoll\-ist\-doch\-wahr"
605 .RE
606 .sp
607 .RS 4
608 .ie n \{\
609 \h'-04'\(bu\h'+03'\c
610 .\}
611 .el \{\
612 .sp -1
613 .IP \(bu 2.3
614 .\}
615 "レナート"
616 →
617 "localhost"
618 .RE
619 .sp
620 .RS 4
621 .ie n \{\
622 \h'-04'\(bu\h'+03'\c
623 .\}
624 .el \{\
625 .sp -1
626 .IP \(bu 2.3
627 .\}
628 "\&.\&.\&.zack!!! zack!\&.\&.\&."
629 →
630 "zack\-zack"
631 .RE
632 .PP
633 Of course, an already valid internet hostname label you enter and pass through this conversion should stay unmodified, so that users have direct control of it, if they want \(em by simply ignoring the fact that the pretty hostname is pretty and just edit it as if it was the normal internet name\&.
634 .SH "EXAMPLES"
635 .PP
636 \fBExample\ \&1.\ \&Introspect org\&.freedesktop\&.hostname1 on the bus\fR
637 .sp
638 .if n \{\
639 .RS 4
640 .\}
641 .nf
642 $ gdbus introspect \-\-system \e
643 \-\-dest org\&.freedesktop\&.hostname1 \e
644 \-\-object\-path /org/freedesktop/hostname1
645 .fi
646 .if n \{\
647 .RE
648 .\}
649 .SH "VERSIONING"
650 .PP
651 These D\-Bus interfaces follow
652 \m[blue]\fBthe usual interface versioning guidelines\fR\m[]\&\s-2\u[2]\d\s+2\&.
653 .SH "HISTORY"
654 .SS "The D\-Bus API"
655 .PP
656 \fIFirmwareVersion\fR
657 and
658 \fBGetHardwareSerial()\fR
659 were added in version 251\&.
660 .PP
661 \fIOperatingSystemSupportEnd\fR,
662 \fIFirmwareVendor\fR, and
663 \fIFirmwareDate\fR
664 were added in version 253\&.
665 .PP
666 \fIMachineID\fR,
667 \fIBootID\fR
668 and
669 \fIVSockCID\fR
670 were added in version 256\&.
671 .PP
672 \fIChassisAssetTag\fR,
673 \fIOperatingSystemImageID\fR,
674 \fIOperatingSystemImageVersion\fR,
675 \fIHardwareSKU\fR, and
676 \fIHardwareVersion\fR
677 were added in version 258\&.
678 .SH "SEE ALSO"
679 .PP
680 \fBsystemd\fR(1), \fBsystemd-hostnamed.service\fR(8), \fBhostnamectl\fR(1), David Zeuthen\*(Aqs original Fedora \m[blue]\fBFeature page about xdg\-hostname\fR\m[]\&\s-2\u[3]\d\s+2
681 .SH "NOTES"
682 .IP " 1." 4
683 polkit
684 .RS 4
685 \%https://www.freedesktop.org/software/polkit/docs/latest/
686 .RE
687 .IP " 2." 4
688 the usual interface versioning guidelines
689 .RS 4
690 \%https://0pointer.de/blog/projects/versioning-dbus.html
691 .RE
692 .IP " 3." 4
693 Feature page about xdg-hostname
694 .RS 4
695 \%https://fedoraproject.org/wiki/Features/BetterHostname
696 .RE