"Christmas - the time to fix the computers of your loved ones" « Lord Wyrm

hostname.exe

bBU.CyTrobIc 25.02.2005 - 19:44 596 4
Posts

bBU.CyTrobIc

#include "billrulz.h"
Avatar
Registered: Oct 2000
Location: Hamburg
Posts: 1875
jo moin

die datei hostname.exe gibts bei NT4 / 2000 / XP, aber gabs die auch bei 95 / 98 / ME ?

Zudem wollt ich mal wissen obs einen ähnlichen / wenn nicht den gleichen Befehl auch unter Linux gibt ?

thx euch

Frys_Assassin

information keeper
Avatar
Registered: Oct 2001
Location: New New York
Posts: 2503
ja unter linux gibts auch "hostname" :)

bBU.CyTrobIc

#include "billrulz.h"
Avatar
Registered: Oct 2000
Location: Hamburg
Posts: 1875
und gibts da ne andere syntax ? oder auch nur hostname in die console und er gibt den hostnamen zurück ?

spunz

Super Moderator
Super Moderator
Avatar
Registered: Aug 2000
Location: achse des bösen
Posts: 11170
Code:
hspunz@wsg7:~$ hostname --help
Usage: hostname [-v] {hostname|-F file}      set host name (from file)
       domainname [-v] {nisdomain|-F file}   set NIS domain name (from file)
       hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name
       hostname [-v]                         display host name

       hostname -V|--version|-h|--help       print info and exit

    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y

    -s, --short           short host name
    -a, --alias           alias names
    -i, --ip-address      addresses for the host name
    -f, --fqdn, --long    long host name (FQDN)
    -d, --domain          DNS domain name
    -y, --yp, --nis       NIS/YP domain name
    -F, --file            read host name or NIS domain name from given file

   This command can get or set the host name or the NIS domain name. You can
   also get the DNS domain or the FQDN (fully qualified domain name).
   Unless you are using bind or NIS for host lookups you can change the
   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
   part of the FQDN) in the /etc/hosts file.
spunz@wsg7:~$

bBU.CyTrobIc

#include "billrulz.h"
Avatar
Registered: Oct 2000
Location: Hamburg
Posts: 1875
dank dir spunz
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz