Provided by: manpages-zh_1.5.2-1_all bug

NAME()

       hostname -
       domainname - NIS/YP
       dnsdomainname - DNS
       nisdomainname - NIS/YP
       ypdomainname - NIS/YP
       nodename - DECnet

SYNOPSIS()

       hostname  [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-i] [--ip-
       address] [--long] [-s] [--short] [-y] [--yp] [--nis] [-n] [--node]

       hostname [-v] [-F filename] [--file filename] [hostname]

       domainname [-v] [-F filename] [--file filename] [name]

       nodename [-v] [-F filename] [--file filename] [name]

       hostname [-v] [-h] [--help] [-V] [--version]

       dnsdomainname [-v]
       nisdomainname [-v]
       ypdomainname [-v]

DESCRIPTION()

       Hostname ,.  .NIS/YP.

   GET NAME ()
       ,:

       hostname gethostname(2) .

       domainname,nisdomainname,ypdomainname getdomainname(2) .YP/NIS.

       nodename DECnet getnodename(2) .

       dnsdomainname FQDN().FQDN hostname --fqdn .

   SET NAME ()
        --file ,,NIS/YP.

       ,.

        dnsdomainname ( THE FQDN ) FQDNDNS.

       , /etc/rc.d/rc.inet1 /etc/init.d/boot (,,, /etc/hostname ).

   THE FQDN
       FQDN( hostname --fqdn ) DNS( dnsdomainname ).FQDN resolver(3) .

       :FQDN gethostbyname(2) gethostname (2) .  DNS.

       ( /etc/host.conf ).(hostsDNSNIS) /etc/hosts .

OPTIONS()

       -a,--alias
              ().

       -d,--domain
              DNS.  domainname DNS,NISDNS.  dnsdomainname .

       -F,--file filename
              .(`#').

       -f,--fqdn,--long
              FQDN().FQDNDNS.bind NIS,/etc/hostsFQDNDNS(FQDN ).

       -h,--help
              .

       -i,--ip-address
              IP().

       -n,--node
              DECnet.( --file name ),root.

       -s,--short
              ..

       -V,--version
              .

       -v,--verbose
              .

       -y,--yp,--nis
              NIS.( --file name ),rootNIS.

FILES()

       /etc/hosts

AUTHOR()

       Peter Tobias, <tobias@et-inf.fho-emden.de>
       ernd Eckenfels, <net-tools@lina.inka.de> (NIS and manpage).
       Steve Whitehouse, <SteveW@ACM.org> (DECnet support and manpage).

[]

       riser <boomer@ccidnet.com>

[]

       2000/12/14

linuxman:

       http://cmpp.linuxforum.net