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

Содержание

Журнал

Четверг (06/04/09)

/dev/pts/8
14:33:00
#host linux8.class8.unix.nt
linux8.class8.unix.nt   A       192.168.15.8
14:33:44
#host dak.class7.unix.nt
^[[A^C
14:34:04
#host olegclass7.unix.nt
olegclass7.unix.nt does not exist, try again
14:34:23
#host oleg.class7.unix.nt
oleg.class7.unix.nt does not exist, try again
14:34:29
#host oleg.class8.unix.nt
oleg.class8.unix.nt does not exist, try again
14:34:46
#host oleg.class8.unix.nt
oleg.class8.unix.nt does not exist, try again
14:34:55
#rndc reload
server reload successful
14:35:48
#host oleg.class8.unix.nt
oleg.class8.unix.nt does not exist, try again
14:37:20
#host oleg.class8.unix.nt
oleg.class8.unix.nt does not exist, try again
14:37:28
#host oleg.class6.unix.nt
oleg.class6.unix.nt A record not found, server failure
14:37:34
#host linux7.class8.unix.nt
linux7.class8.unix.nt   A       192.168.15.7
14:37:58
#host oleg.class6.unix.nt
oleg.class6.unix.nt A record not found, server failure
14:38:42
#rndc flush

14:38:58
#host oleg.class6.unix.nt
oleg.class6.unix.nt A record not found, server failure
14:39:45
#rndc reload
server reload successful
14:40:05
#host @192.168.15.8 oleg.class6.unix.nt
oleg.class6.unix.nt A record not found, try again
Error in looking up server name
14:41:57
#vi /etc/bind/db.class6
/dev/pts/11
14:42:18
#vi /etc/bind/named.conf
14:43:03
#~
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
        type master;
// orga file "/etc/bind/db.class6";
};include "/etc/bind/zones.rfc1918";
~
~
~
~
~
~
~
~
~
"/etc/bind/named.conf.local" 13L, 250C записано
/dev/pts/8
14:43:43
#host dak.class6.unix.nt
dak.class6.unix.nt A record not found, server failure
/dev/pts/11
14:53:01
#vi /etc/bind/named.conf
/dev/pts/8
14:53:07
#host six.class5.unix.nt
six.class5.unix.nt      A       192.168.15.6
14:55:30
#hostame
bash: hostame: команда не найдена
прошло 20 минут
15:16:07
#host
Usage:      host [-v] [-a] [-t querytype] [options]  name  [server]
Listing:    host [-v] [-a] [-t querytype] [options]  -l zone  [server]
Hostcount:  host [-v] [options] -H [-D] [-E] [-G] zone
Check soa:  host [-v] [options] -C zone
Addrcheck:  host [-v] [options] -A host
Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
Common options:  [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
Other options:   [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
Special options: [-O srcaddr] [-j minport] [-J maxport]
Extended usage:  [-x [name ...]] [-X server [name ...]]
15:16:11
#hostname
linux6
15:17:29
#host 192.168.15.7
Name: linux7.class7.unix.nt
Address: 192.168.15.7
15:17:48
#host 192.168.15.6
Name: linux6.class6.unix.nt
Address: 192.168.15.6
15:17:58
#host 192.168.15.8
Name: linux8.class8.unix.nt
Address: 192.168.15.8
15:18:05
#host 192.168.15.3
Name: linux3.class3.unix.nt
Address: 192.168.15.3
/dev/pts/8
15:23:28
#rndc -reload
rndc: invalid argument -r
Usage: rndc [-c config] [-s server] [-p port]
        [-k key-file ] [-y key] [-V] command
command is one of the following:
  reload        Reload configuration file and zones.
  reload zone [class [view]]
                Reload a single zone.
  refresh zone [class [view]]
                Schedule immediate maintenance for a zone.
  retransfer zone [class [view]]
...
  flush [view]  Flushes the server's cache for a view.
  flushname name [view]
                Flush the given name from the server's cache(s)
  status        Display status of the server.
  recursing     Dump the queries that are currently recursing (named.recursing)
  validation newstate [view]
                Enable / disable DNSSEC validation.
  *restart      Restart the server.
* == not yet implemented
Version: 9.6.0-P1
15:23:34
#rndc reload
server reload successful
15:23:37
#dig linux6 mx
; <<>> DiG 9.6.0-P1 <<>> linux6 mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 49440
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;linux6.                                IN      MX
;; AUTHORITY SECTION:
.                       10800   IN      SOA     A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009060301 1800 900 604800 86400
;; Query time: 50 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:23:50 2009
;; MSG SIZE  rcvd: 99
15:26:37
#+q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
rnano         rndc          rndc-confgen
15:26:37
#rndc reload
server reload successful
15:26:52
#dig linux6 mx
; <<>> DiG 9.6.0-P1 <<>> linux6 mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 35402
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;linux6.                                IN      MX
;; AUTHORITY SECTION:
.                       10612   IN      SOA     A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009060301 1800 900 604800 86400
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:26:58 2009
;; MSG SIZE  rcvd: 99
15:26:58
#vi /etc/bind/db.class6
15:28:03
#dig linux6 mx
; <<>> DiG 9.6.0-P1 <<>> linux6 mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6050
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;linux6.                                IN      MX
;; AUTHORITY SECTION:
.                       10540   IN      SOA     A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009060301 1800 900 604800 86400
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:28:10 2009
;; MSG SIZE  rcvd: 99
15:28:10
#dig linux6.class6.unix.tn mx
; <<>> DiG 9.6.0-P1 <<>> linux6.class6.unix.tn mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42785
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;linux6.class6.unix.tn.         IN      MX
;; AUTHORITY SECTION:
tn.                     10800   IN      SOA     ns.ati.tn. hostmaster.ati.tn. 2009060400 21600 14400 864000 43200
;; Query time: 439 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:28:45 2009
;; MSG SIZE  rcvd: 93
15:29:45
#dig eb.co.ua mx
; <<>> DiG 9.6.0-P1 <<>> eb.co.ua mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53363
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 4
;; QUESTION SECTION:
;eb.co.ua.                      IN      MX
;; ANSWER SECTION:
eb.co.ua.               193     IN      MX      20 bravo.eb.co.ua.
eb.co.ua.               193     IN      MX      10 alpha.eb.co.ua.
...
co.ua.                  171238  IN      NS      ns2.uadns.com.
;; ADDITIONAL SECTION:
ns1.uadns.com.          171238  IN      A       91.209.206.160
ns2.uadns.com.          171238  IN      A       82.144.221.78
ns3.uadns.com.          171238  IN      A       213.186.114.206
ns4.uadns.com.          171238  IN      A       91.209.206.154
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:30:29 2009
;; MSG SIZE  rcvd: 233
15:30:29
#dig express.kiev.ua mx
; <<>> DiG 9.6.0-P1 <<>> express.kiev.ua mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38505
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION:
;express.kiev.ua.               IN      MX
;; ANSWER SECTION:
express.kiev.ua.        600     IN      MX      20 bravo.eb.co.ua.
express.kiev.ua.        600     IN      MX      10 alpha.eb.co.ua.
;; AUTHORITY SECTION:
express.kiev.ua.        86400   IN      NS      ns2.eb.co.ua.
express.kiev.ua.        86400   IN      NS      ns1.eb.co.ua.
;; Query time: 101 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:30:48 2009
;; MSG SIZE  rcvd: 119
15:31:22
#dig class8.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class8.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21862
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class8.unix.nt.                        IN      MX
;; ANSWER SECTION:
class8.unix.nt.         604800  IN      MX      10 linux8.class8.unix.nt.
;; AUTHORITY SECTION:
class8.unix.nt.         604800  IN      NS      linux8.class8.unix.nt.
;; ADDITIONAL SECTION:
linux8.class8.unix.nt.  604800  IN      A       192.168.15.8
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:31:45 2009
;; MSG SIZE  rcvd: 85
15:31:45
#dig class7.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37277
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class7.unix.nt.                        IN      MX
;; AUTHORITY SECTION:
class7.unix.nt.         10292   IN      SOA     linux7.class7.unix.nt. root.class7.unix.nt. 2 604800 86400 2419200 604800
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:31:51 2009
;; MSG SIZE  rcvd: 80
15:31:51
#dig class8.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class8.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32564
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class8.unix.nt.                        IN      MX
;; ANSWER SECTION:
class8.unix.nt.         604770  IN      MX      10 linux8.class8.unix.nt.
;; AUTHORITY SECTION:
class8.unix.nt.         604770  IN      NS      linux8.class8.unix.nt.
;; ADDITIONAL SECTION:
linux8.class8.unix.nt.  604770  IN      A       192.168.15.8
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:32:15 2009
;; MSG SIZE  rcvd: 85
15:32:15
#dig class7.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 749
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class7.unix.nt.                        IN      MX
;; AUTHORITY SECTION:
class7.unix.nt.         10162   IN      SOA     linux7.class7.unix.nt. root.class7.unix.nt. 2 604800 86400 2419200 604800
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:34:01 2009
;; MSG SIZE  rcvd: 80
15:34:01
#dig class8.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class8.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54882
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class8.unix.nt.                        IN      MX
;; ANSWER SECTION:
class8.unix.nt.         604659  IN      MX      10 linux8.class8.unix.nt.
;; AUTHORITY SECTION:
class8.unix.nt.         604659  IN      NS      linux8.class8.unix.nt.
;; ADDITIONAL SECTION:
linux8.class8.unix.nt.  604659  IN      A       192.168.15.8
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:34:06 2009
;; MSG SIZE  rcvd: 85
15:34:06
#dig class5.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class5.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22130
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;class5.unix.nt.                        IN      MX
;; ANSWER SECTION:
class5.unix.nt.         3555    IN      MX      10 linux5.class5.unix.nt.
;; AUTHORITY SECTION:
class5.unix.nt.         3555    IN      NS      linux5.class5.unix.nt.
;; ADDITIONAL SECTION:
linux5.class5.unix.nt.  3555    IN      A       192.168.15.5
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:34:11 2009
;; MSG SIZE  rcvd: 85
15:34:11
#dig class2.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class2.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 663
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class2.unix.nt.                        IN      MX
;; AUTHORITY SECTION:
.                       10800   IN      SOA     A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009060301 1800 900 604800 86400
;; Query time: 152 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:34:16 2009
;; MSG SIZE  rcvd: 107
15:34:16
#dig class3.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41840
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;class3.unix.nt.                        IN      MX
;; ANSWER SECTION:
class3.unix.nt.         10154   IN      MX      10 linux3.class3.unix.nt.
;; AUTHORITY SECTION:
class3.unix.nt.         10154   IN      NS      linux3.class3.unix.nt.
;; ADDITIONAL SECTION:
linux3.class3.unix.nt.  10154   IN      A       192.168.202.2
linux3.class3.unix.nt.  10154   IN      A       192.168.15.3
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:34:21 2009
;; MSG SIZE  rcvd: 101
/dev/pts/13
15:34:47
#dig class7.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49418
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class7.unix.nt.                        IN      MX
;; AUTHORITY SECTION:
class7.unix.nt.         10093   IN      SOA     linux7.class7.unix.nt. root.class7.unix.nt. 2 604800 86400 2419200 604800
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:35:10 2009
;; MSG SIZE  rcvd: 80
15:35:16
#dig class7.unix.nt ns
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48041
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;class7.unix.nt.                        IN      NS
;; ANSWER SECTION:
class7.unix.nt.         604763  IN      NS      linux7.class7.unix.nt.
;; ADDITIONAL SECTION:
linux7.class7.unix.nt.  604763  IN      A       192.168.15.7
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:35:20 2009
;; MSG SIZE  rcvd: 69
15:35:50
#dig class7.unix.nt ns
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32970
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;class7.unix.nt.                        IN      NS
;; ANSWER SECTION:
class7.unix.nt.         604672  IN      NS      linux7.class7.unix.nt.
;; ADDITIONAL SECTION:
linux7.class7.unix.nt.  604672  IN      A       192.168.15.7
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:36:51 2009
;; MSG SIZE  rcvd: 69
15:36:51
#dig class7.unix.nt mx
; <<>> DiG 9.6.0-P1 <<>> class7.unix.nt mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61359
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class7.unix.nt.                        IN      MX
;; AUTHORITY SECTION:
class7.unix.nt.         9989    IN      SOA     linux7.class7.unix.nt. root.class7.unix.nt. 2 604800 86400 2419200 604800
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun  4 15:36:54 2009
;; MSG SIZE  rcvd: 80
15:36:54