Журнал лабораторных работ

Содержание

Журнал

Пятница (08/07/09)

/dev/ttyp3
20:11:18
#. /etc/bash_completion

20:12:38
#host
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] hostname [server]
       -a is equivalent to -v -t *
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
20:12:44
#hostname
debian5
20:12:57
#hostname -h
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.
20:13:06
#hostname -F
hostname: option requires an argument -- F
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.
20:13:12
#hostname
debian5
20:13:23
#hostname -F /etc/host
host.conf    hostname     hosts        hosts.allow  hosts.deny
20:13:23
#hostname -F /etc/hosts
hostname: the specified hostname is invalid
20:13:40
#reboot

/dev/ttyp1
20:15:32
#hostname
debian5
20:15:38
#netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN     1233/Xvnc
tcp        0      0 192.168.16.5:53         0.0.0.0:*               LISTEN     1183/named
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     1183/named
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     1183/named
tcp6       0      0 :::53                   :::*                    LISTEN     1183/named
tcp6       0      0 :::22                   :::*                    LISTEN     1207/sshd
tcp6       0      0 ::1:953                 :::*                    LISTEN     1183/named
udp        0      0 0.0.0.0:32769           0.0.0.0:*                          1183/named
udp        0      0 192.168.16.5:53         0.0.0.0:*                          1183/named
udp        0      0 127.0.0.1:53            0.0.0.0:*                          1183/named
udp6       0      0 :::32770                :::*                               1183/named
udp6       0      0 :::53                   :::*                               1183/named
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     3404     1222/gdm            /tmp/.gdm_socket
unix  2      [ ACC ]     STREAM     LISTENING     3604     1305/ssh-agent      /tmp/ssh-hUbsfd1268/agent.1268
unix  2      [ ACC ]     STREAM     LISTENING     3482     1233/Xvnc           /tmp/.X11-unix/X0
20:15:45
#hostname
debian5
20:15:51
#hostname -h
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.
20:16:16
#vim /etc/host
20:16:42
#vim /etc/hostname
--- /tmp/l3-saved-1473.23139.27348	2009-08-07 21:16:50.000000000 +0300
+++ /etc/hostname	2009-08-07 21:16:58.000000000 +0300
@@ -1,2 +1,2 @@
-debian5
+deb5
 
20:16:58
#host -F
host: illegal option -- F
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] hostname [server]
       -a is equivalent to -v -t *
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
20:17:06
#hostname
debian5
20:17:13
#hostname -h