1 --- hostname/hostname.1.orig 2012-12-06 16:18:46.000000000 +0100
2 +++ hostname/hostname.1 2012-12-09 11:54:21.413750393 +0100
10 +is used to get the hostname. When the
11 +.BR "hostname \-a, \-d, \-f or \-i"
14 +be called. The difference in
20 +is network aware, so it consults
21 +.IR /etc/nsswitch.conf
24 +to decide whether to read information in
25 +.IR /etc/sysconfig/network
29 +To add another dimension to this,
32 +is also set when the network interface is brought up.
35 When called with one argument or with the
39 .BR setdomainname (2).
40 Note, that this is effective only until the next reboot.
41 -Edit /etc/hostname for permanent change.
42 +After reboot original names from \fI/etc/hosts\fR are used again.
44 Note, that only the super-user can change the names.
49 The host name is usually set once at system startup in
50 -.I /etc/init.d/hostname.sh
51 +.I /etc/rc.d/rc.sysinit
52 (normally by reading the contents of a file which contains
55 +.IR /etc/sysconfig/network ).
58 The FQDN (Fully Qualified Domain Name) of the system is the name that the
60 Display the short host name. This is the host name cut at the first dot.
63 -Be verbose and tell what's going on.
64 +Verbose output was removed.
67 Print version information on standard output and exit successfully.
70 .BR /etc/resolv.conf .
73 +.B /etc/sysconfig/network
74 Historically this file was supposed to only contain the hostname and not the
75 full canonical FQDN. Nowadays most software is able to cope with a full FQDN
76 here. This file is read at boot time by the system initialization scripts to
77 --- hostname/Makefile.orig 2012-02-16 16:00:52.000000000 +0100
78 +++ hostname/Makefile 2012-02-27 19:50:50.216326829 +0100
82 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lnsl
83 - ln -fs hostname dnsdomainname
84 - ln -fs hostname domainname
85 - ln -fs hostname ypdomainname
86 - ln -fs hostname nisdomainname
89 install -d ${BASEDIR}/usr/share/man/man1
90 - install -o root -g root -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
91 + install -m 0644 hostname.1 ${BASEDIR}/usr/share/man/man1
92 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/dnsdomainname.1
93 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/domainname.1
94 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/ypdomainname.1
95 ln -fs hostname.1 ${BASEDIR}/usr/share/man/man1/nisdomainname.1
96 - #install -o root -g root -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
97 + install -d ${BASEDIR}/usr/share/man/fr/man1
98 + install -m 0644 hostname.1.fr ${BASEDIR}/usr/share/man/fr/man1/hostname.1
99 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/dnsdomainname.1
100 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/domainname.1
101 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/ypdomainname.1
102 + ln -fs hostname.1 ${BASEDIR}/usr/share/man/fr/man1/nisdomainname.1
104 install -d ${BASEDIR}/bin
105 - install -o root -g root -m 0755 hostname ${BASEDIR}/bin
106 + install -m 0755 hostname ${BASEDIR}/bin
107 ln -f hostname ${BASEDIR}/bin/dnsdomainname
108 ln -f hostname ${BASEDIR}/bin/domainname
109 ln -f hostname ${BASEDIR}/bin/nisdomainname