/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#dig @192.168.16.2 svl.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#vim /etc/resolv.conf
|
#dig @192.168.16.2 svl.net.nt axfr
$TTL 10000 @ SOA okno.net.nt. root.net.nt 2007060103 604800 86540 864000 604800 ; <<>> DiG 9.3.4 <<>> @192.168.16.2 svl.net.nt axfr 192.168.16.2 PTR okno2.okno.net.net. ; (1 server found)kno3.okno.net.net. 192.168.16.26 PTR okno26.okno.net.net. ;; global options: printcmd 192.168.16.27 PTR okno27.okno.net.net. ; Transfer failed. 192.168.16.28 PTR okno28.okno.net.net. ... 192.168.16.36 PTR okno36.okno.net.net. 192.168.16.37 PTR okno37.okno.net.net. 192.168.16.38 PTR okno38.okno.net.net. 192.168.16.39 PTR okno39.okno.net.net. 192.168.16.40 PTR okno40.okno.net.net. 192.168.16.41 PTR okno41.okno.net.net. 192.168.16.42 PTR okno42.okno.net.net. 192.168.16.43 PTR okno43.okno.net.net. 192.168.16.44 PTR okno44.okno.net.net. -- ВСТАВКА -- 3,1 Наверху |
#vi /etc/bind/db.16.168.192
2c2 < @ SOA okno.net.nt root.net.nt 2007060103 ( --- > 16.168.192.in-addr.arpa. IN SOA okno.net.nt. root.net.nt 2007060103 ( 6c6 < 604800) --- > 604800 ) |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
|
#tail -f /var/log/daemon.log
Jun 1 11:59:45 linux1 named[11040]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:59:45 linux1 named[11040]: command channel listening on 127.0.0.1#953 Jun 1 11:59:45 linux1 named[11040]: command channel listening on ::1#953 Jun 1 11:59:45 linux1 named[11040]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone localhost/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 11:59:45 linux1 named[11040]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 11:59:45 linux1 named[11040]: running ... Jun 1 12:05:13 linux1 named[11313]: command channel listening on ::1#953 Jun 1 12:05:13 linux1 named[11313]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1.' Jun 1 12:05:13 linux1 named[11313]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:05:13 linux1 named[11313]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: zone localhost/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1.' Jun 1 12:05:13 linux1 named[11313]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:05:13 linux1 named[11313]: running |
#vim /etc/bind/named.conf
43a44,47 > zone "192.168.16.in-addr.arpa." { > type master; > file "/etc/bind/db.16.168.192"; > }; |
#/etc/init.d/bind9 restart
Jun 1 11:59:45 linux1 named[11040]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 11:59:45 linux1 named[11040]: command channel listening on 127.0.0.1#953 Jun 1 11:59:45 linux1 named[11040]: command channel listening on ::1#953 Jun 1 11:59:45 linux1 named[11040]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: zone localhost/IN: loaded serial 1 Jun 1 11:59:45 linux1 named[11040]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 11:59:45 linux1 named[11040]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 11:59:45 linux1 named[11040]: running ... Jun 1 12:04:14 linux1 named[11232]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:04:14 linux1 named[11232]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:04:14 linux1 named[11232]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:04:14 linux1 named[11232]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:04:14 linux1 named[11232]: zone localhost/IN: loaded serial 1 Jun 1 12:04:14 linux1 named[11232]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:04:14 linux1 named[11232]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:04:14 linux1 named[11232]: running Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
3c3 < NS okno1 --- > NS okno1. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
3c3 < NS okno1. --- > NS 192.168.16.1 |
#tail -f /var/log/daemon.log
Jun 1 12:05:13 linux1 named[11313]: command channel listening on ::1#953 Jun 1 12:05:13 linux1 named[11313]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1.' Jun 1 12:05:13 linux1 named[11313]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:05:13 linux1 named[11313]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: zone localhost/IN: loaded serial 1 Jun 1 12:05:13 linux1 named[11313]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1.' Jun 1 12:05:13 linux1 named[11313]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:05:13 linux1 named[11313]: running ... Jun 1 12:07:33 linux1 named[11432]: command channel listening on ::1#953 Jun 1 12:07:33 linux1 named[11432]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: /etc/bind/db.16.168.192:3: unknown RR type '192.168.16.1' Jun 1 12:07:33 linux1 named[11432]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:07:33 linux1 named[11432]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: zone localhost/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: /etc/bind/db.16.168.192:3: unknown RR type '192.168.16.1' Jun 1 12:07:33 linux1 named[11432]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:07:33 linux1 named[11432]: running |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
3c3 < NS 192.168.16.1 --- > NS okno1 6,54c6,54 < 192.168.16.1 PTR okno1.okno.net.net. < 192.168.16.2 PTR okno2.okno.net.net. < 192.168.16.3 PTR okno3.okno.net.net. < 192.168.16.4 PTR okno4.okno.net.net. < 192.168.16.5 PTR okno5.okno.net.net. < 192.168.16.6 PTR okno6.okno.net.net. < 192.168.16.7 PTR okno7.okno.net.net. < 192.168.16.8 PTR okno8.okno.net.net. < 192.168.16.9 PTR okno9.okno.net.net. < 192.168.16.10 PTR okno10.okno.net.net. < 192.168.16.11 PTR okno11.okno.net.net. < 192.168.16.12 PTR okno12.okno.net.net. < 192.168.16.13 PTR okno13.okno.net.net. < 192.168.16.14 PTR okno14.okno.net.net. < 192.168.16.15 PTR okno15.okno.net.net. < 192.168.16.16 PTR okno16.okno.net.net. < 192.168.16.17 PTR okno17.okno.net.net. < 192.168.16.18 PTR okno18.okno.net.net. < 192.168.16.19 PTR okno19.okno.net.net. < 192.168.16.20 PTR okno20.okno.net.net. < 192.168.16.21 PTR okno21.okno.net.net. < 192.168.16.22 PTR okno22.okno.net.net. < 192.168.16.23 PTR okno23.okno.net.net. < 192.168.16.24 PTR okno24.okno.net.net. < 192.168.16.25 PTR okno25.okno.net.net. < 192.168.16.26 PTR okno26.okno.net.net. < 192.168.16.27 PTR okno27.okno.net.net. < 192.168.16.28 PTR okno28.okno.net.net. < 192.168.16.29 PTR okno29.okno.net.net. < 192.168.16.30 PTR okno30.okno.net.net. < 192.168.16.31 PTR okno31.okno.net.net. < 192.168.16.32 PTR okno32.okno.net.net. < 192.168.16.33 PTR okno33.okno.net.net. < 192.168.16.34 PTR okno34.okno.net.net. < 192.168.16.35 PTR okno35.okno.net.net. < 192.168.16.36 PTR okno36.okno.net.net. < 192.168.16.37 PTR okno37.okno.net.net. < 192.168.16.38 PTR okno38.okno.net.net. < 192.168.16.39 PTR okno39.okno.net.net. < 192.168.16.40 PTR okno40.okno.net.net. < 192.168.16.41 PTR okno41.okno.net.net. < 192.168.16.42 PTR okno42.okno.net.net. < 192.168.16.43 PTR okno43.okno.net.net. < 192.168.16.44 PTR okno44.okno.net.net. < 192.168.16.45 PTR okno45.okno.net.net. < 192.168.16.46 PTR okno46.okno.net.net. < 192.168.16.47 PTR okno47.okno.net.net. < 192.168.16.48 PTR okno48.okno.net.net. < 192.168.16.49 PTR okno49.okno.net.net. --- > 1 PTR okno1.okno.net.net. > 2 PTR okno2.okno.net.net. > 3 PTR okno3.okno.net.net. > 4 PTR okno4.okno.net.net. > 5 PTR okno5.okno.net.net. > 6 PTR okno6.okno.net.net. > 7 PTR okno7.okno.net.net. > 8 PTR okno8.okno.net.net. > 9 PTR okno9.okno.net.net. > 10 PTR okno10.okno.net.net. > 11 PTR okno11.okno.net.net. > 12 PTR okno12.okno.net.net. > 13 PTR okno13.okno.net.net. > 14 PTR okno14.okno.net.net. > 15 PTR okno15.okno.net.net. > 16 PTR okno16.okno.net.net. > 17 PTR okno17.okno.net.net. > 18 PTR okno18.okno.net.net. > 19 PTR okno19.okno.net.net. > 20 PTR okno20.okno.net.net. > 21 PTR okno21.okno.net.net. > 22 PTR okno22.okno.net.net. > 23 PTR okno23.okno.net.net. > 24 PTR okno24.okno.net.net. > 25 PTR okno25.okno.net.net. > 26 PTR okno26.okno.net.net. > 27 PTR okno27.okno.net.net. > 28 PTR okno28.okno.net.net. > 29 PTR okno29.okno.net.net. > 30 PTR okno30.okno.net.net. > 31 PTR okno31.okno.net.net. > 32 PTR okno32.okno.net.net. > 33 PTR okno33.okno.net.net. > 34 PTR okno34.okno.net.net. > 35 PTR okno35.okno.net.net. > 36 PTR okno36.okno.net.net. > 37 PTR okno37.okno.net.net. > 38 PTR okno38.okno.net.net. > 39 PTR okno39.okno.net.net. > 40 PTR okno40.okno.net.net. > 41 PTR okno41.okno.net.net. > 42 PTR okno42.okno.net.net. > 43 PTR okno43.okno.net.net. > 44 PTR okno44.okno.net.net. > 45 PTR okno45.okno.net.net. > 46 PTR okno46.okno.net.net. > 47 PTR okno47.okno.net.net. > 48 PTR okno48.okno.net.net. > 49 PTR okno49.okno.net.net. |
#tail -f /var/log/daemon.log
Jun 1 12:07:33 linux1 named[11432]: command channel listening on ::1#953 Jun 1 12:07:33 linux1 named[11432]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: /etc/bind/db.16.168.192:3: unknown RR type '192.168.16.1' Jun 1 12:07:33 linux1 named[11432]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:07:33 linux1 named[11432]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: zone localhost/IN: loaded serial 1 Jun 1 12:07:33 linux1 named[11432]: /etc/bind/db.16.168.192:3: unknown RR type '192.168.16.1' Jun 1 12:07:33 linux1 named[11432]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:07:33 linux1 named[11432]: running ... Jun 1 12:10:58 linux1 named[11586]: command channel listening on ::1#953 Jun 1 12:10:58 linux1 named[11586]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone localhost/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: running |
#/etc/init.d/bind9 restart
Jun 1 12:10:58 linux1 named[11586]: command channel listening on ::1#953 Jun 1 12:10:58 linux1 named[11586]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone localhost/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: running Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
2c2,6 < @ SOA okno.net.nt. root.net.nt 2007060103 604800 86540 864000 604800 --- > @ SOA okno.net.nt. root.net.nt 2007060103 ( > 604800 > 86540 > 864000 > 604800) |
#tail -f /var/log/daemon.log
Jun 1 12:10:58 linux1 named[11586]: command channel listening on ::1#953 Jun 1 12:10:58 linux1 named[11586]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: zone localhost/IN: loaded serial 1 Jun 1 12:10:58 linux1 named[11586]: /etc/bind/db.16.168.192:3: unknown RR type 'okno1' Jun 1 12:10:58 linux1 named[11586]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:10:58 linux1 named[11586]: running ... Jun 1 12:20:11 linux1 named[11995]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:2: ignoring out-of-zone data (16.168.192.in-addr.arpa) Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:7: unknown RR type 'okno1' Jun 1 12:20:11 linux1 named[11995]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:20:11 linux1 named[11995]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: zone localhost/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:2: ignoring out-of-zone data (16.168.192.in-addr.arpa) Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:7: unknown RR type 'okno1' Jun 1 12:20:11 linux1 named[11995]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:20:11 linux1 named[11995]: running |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.16.168.192
2c2 < @ SOA okno.net.nt. root.net.nt 2007060103 ( --- > @ SOA okno.net.nt root.net.nt 2007060103 ( |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#/etc/init.d/bind9 restart
Jun 1 12:20:11 linux1 named[11995]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:2: ignoring out-of-zone data (16.168.192.in-addr.arpa) Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:7: unknown RR type 'okno1' Jun 1 12:20:11 linux1 named[11995]: zone 192.168.16.in-addr.arpa/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:20:11 linux1 named[11995]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: zone localhost/IN: loaded serial 1 Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:2: ignoring out-of-zone data (16.168.192.in-addr.arpa) Jun 1 12:20:11 linux1 named[11995]: /etc/bind/db.16.168.192:7: unknown RR type 'okno1' Jun 1 12:20:11 linux1 named[11995]: zone okno.net.nt/IN: loading master file /etc/bind/db.16.168.192: unknown class/type Jun 1 12:20:11 linux1 named[11995]: running Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig @192.168.16.50 svl.net.nt axfr
host83.svl.net.nt. 24 IN A 192.168.16.83 host84.svl.net.nt. 24 IN A 192.168.16.84 host85.svl.net.nt. 24 IN A 192.168.16.85 host86.svl.net.nt. 24 IN A 192.168.16.86 host87.svl.net.nt. 24 IN A 192.168.16.87 host88.svl.net.nt. 24 IN A 192.168.16.88 host89.svl.net.nt. 24 IN A 192.168.16.89 host90.svl.net.nt. 24 IN A 192.168.16.90 host91.svl.net.nt. 24 IN A 192.168.16.91 host92.svl.net.nt. 24 IN A 192.168.16.92 ... host95.svl.net.nt. 24 IN A 192.168.16.95 host96.svl.net.nt. 24 IN A 192.168.16.96 host97.svl.net.nt. 24 IN A 192.168.16.97 host98.svl.net.nt. 24 IN A 192.168.16.98 host99.svl.net.nt. 24 IN A 192.168.16.99 svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 6 msec ;; SERVER: 192.168.16.50#53(192.168.16.50) ;; WHEN: Fri Jun 1 12:22:57 2007 ;; XFR size: 53 records (messages 1) |
#tail -f /var/log/daemon.log
Jun 1 13:06:33 linux1 named[15065]: no longer listening on 192.168.16.1#53 Jun 1 13:06:33 linux1 named[15065]: exiting Jun 1 13:06:35 linux1 named[15199]: starting BIND 9.3.4 -u bind Jun 1 13:06:35 linux1 named[15199]: found 1 CPU, using 1 worker thread Jun 1 13:06:35 linux1 named[15199]: loading configuration from '/etc/bind/named.conf' Jun 1 13:06:35 linux1 named[15199]: listening on IPv6 interfaces, port 53 Jun 1 13:06:35 linux1 named[15199]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 13:06:35 linux1 named[15199]: listening on IPv4 interface eth3, 192.168.16.1#53 Jun 1 13:06:35 linux1 named[15199]: command channel listening on 127.0.0.1#953 Jun 1 13:06:35 linux1 named[15199]: command channel listening on ::1#953 ... Jun 1 13:06:35 linux1 named[15199]: zone 16.168.192.in-addr.arpa/IN: loaded serial 1 Jun 1 13:06:35 linux1 named[15199]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 13:06:35 linux1 named[15199]: zone localhost/IN: loaded serial 1 Jun 1 13:06:35 linux1 named[15199]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 13:06:35 linux1 named[15199]: zone svl.net.nt/IN: loaded serial 2007060101 Jun 1 13:06:35 linux1 named[15199]: running Jun 1 13:06:35 linux1 named[15199]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Jun 1 13:06:35 linux1 named[15199]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 1) Jun 1 13:06:35 linux1 named[15199]: zone svl.net.nt/IN: sending notifies (serial 2007060101) Jun 1 13:06:35 linux1 named[15199]: client 192.168.16.1#32901: received notify for zone 'okno.net.nt' |
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#screen
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
6,7c6,8 < 604800 ) < NS okno1 --- > 604800 > ) > NS okno1 |
#dig @192.168.16.1 okno.net.nt axfr
; <<>> DiG 9.3.4 <<>> @192.168.16.1 okno.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#dig @127.0.0.1 okno1.okno.net.nt
May 31 11:25:57 linux1 avahi-daemon[2642]: Leaving mDNS multicast group on interface eth3.IPv4 with address 10.1.2. 1. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 192.168.16.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 10.1.2.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 192.168.19.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: New relevant interface eth3.IPv4 for mDNS. May 31 11:25:57 linux1 avahi-daemon[2642]: Joining mDNS multicast group on interface eth3.IPv4 with address 192.168 .16.1. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 192.168.16.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 10.1.2.1 on eth3. ... ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52371 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; Query time: 96 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 12:25:01 2007 ;; MSG SIZE rcvd: 35 |
#vim db.16.168.192
8c8 < NS okno1 --- > NS okno1.okno.net.nt. 11,59c11,59 < 1 PTR okno1.okno.net.net. < 2 PTR okno2.okno.net.net. < 3 PTR okno3.okno.net.net. < 4 PTR okno4.okno.net.net. < 5 PTR okno5.okno.net.net. < 6 PTR okno6.okno.net.net. < 7 PTR okno7.okno.net.net. < 8 PTR okno8.okno.net.net. < 9 PTR okno9.okno.net.net. < 10 PTR okno10.okno.net.net. < 11 PTR okno11.okno.net.net. < 12 PTR okno12.okno.net.net. < 13 PTR okno13.okno.net.net. < 14 PTR okno14.okno.net.net. < 15 PTR okno15.okno.net.net. < 16 PTR okno16.okno.net.net. < 17 PTR okno17.okno.net.net. < 18 PTR okno18.okno.net.net. < 19 PTR okno19.okno.net.net. < 20 PTR okno20.okno.net.net. < 21 PTR okno21.okno.net.net. < 22 PTR okno22.okno.net.net. < 23 PTR okno23.okno.net.net. < 24 PTR okno24.okno.net.net. < 25 PTR okno25.okno.net.net. < 26 PTR okno26.okno.net.net. < 27 PTR okno27.okno.net.net. < 28 PTR okno28.okno.net.net. < 29 PTR okno29.okno.net.net. < 30 PTR okno30.okno.net.net. < 31 PTR okno31.okno.net.net. < 32 PTR okno32.okno.net.net. < 33 PTR okno33.okno.net.net. < 34 PTR okno34.okno.net.net. < 35 PTR okno35.okno.net.net. < 36 PTR okno36.okno.net.net. < 37 PTR okno37.okno.net.net. < 38 PTR okno38.okno.net.net. < 39 PTR okno39.okno.net.net. < 40 PTR okno40.okno.net.net. < 41 PTR okno41.okno.net.net. < 42 PTR okno42.okno.net.net. < 43 PTR okno43.okno.net.net. < 44 PTR okno44.okno.net.net. < 45 PTR okno45.okno.net.net. < 46 PTR okno46.okno.net.net. < 47 PTR okno47.okno.net.net. < 48 PTR okno48.okno.net.net. < 49 PTR okno49.okno.net.net. --- > 1 PTR okno1.okno.net.nt. > 2 PTR okno2.okno.net.nt. > 3 PTR okno3.okno.net.nt. > 4 PTR okno4.okno.net.nt. > 5 PTR okno5.okno.net.nt. > 6 PTR okno6.okno.net.nt. > 7 PTR okno7.okno.net.nt. > 8 PTR okno8.okno.net.nt. > 9 PTR okno9.okno.net.nt. > 10 PTR okno10.okno.net.nt. > 11 PTR okno11.okno.net.nt. > 12 PTR okno12.okno.net.nt. > 13 PTR okno13.okno.net.nt. > 14 PTR okno14.okno.net.nt. > 15 PTR okno15.okno.net.nt. > 16 PTR okno16.okno.net.nt. > 17 PTR okno17.okno.net.nt. > 18 PTR okno18.okno.net.nt. > 19 PTR okno19.okno.net.nt. > 20 PTR okno20.okno.net.nt. > 21 PTR okno21.okno.net.nt. > 22 PTR okno22.okno.net.nt. > 23 PTR okno23.okno.net.nt. > 24 PTR okno24.okno.net.nt. > 25 PTR okno25.okno.net.nt. > 26 PTR okno26.okno.net.nt. > 27 PTR okno27.okno.net.nt. > 28 PTR okno28.okno.net.nt. > 29 PTR okno29.okno.net.nt. > 30 PTR okno30.okno.net.nt. > 31 PTR okno31.okno.net.nt. > 32 PTR okno32.okno.net.nt. > 33 PTR okno33.okno.net.nt. > 34 PTR okno34.okno.net.nt. > 35 PTR okno35.okno.net.nt. > 36 PTR okno36.okno.net.nt. > 37 PTR okno37.okno.net.nt. > 38 PTR okno38.okno.net.nt. > 39 PTR okno39.okno.net.nt. > 40 PTR okno40.okno.net.nt. > 41 PTR okno41.okno.net.nt. > 42 PTR okno42.okno.net.nt. > 43 PTR okno43.okno.net.nt. > 44 PTR okno44.okno.net.nt. > 45 PTR okno45.okno.net.nt. > 46 PTR okno46.okno.net.nt. > 47 PTR okno47.okno.net.nt. > 48 PTR okno48.okno.net.nt. > 49 PTR okno49.okno.net.nt. |
#dig @127.0.0.1 okno1.okno.net.nt
May 31 11:25:57 linux1 avahi-daemon[2642]: Leaving mDNS multicast group on interface eth3.IPv4 with address 10.1.2. 1. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 192.168.16.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 10.1.2.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 192.168.19.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: New relevant interface eth3.IPv4 for mDNS. May 31 11:25:57 linux1 avahi-daemon[2642]: Joining mDNS multicast group on interface eth3.IPv4 with address 192.168 .16.1. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 192.168.16.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 10.1.2.1 on eth3. ... ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 33210 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; Query time: 93 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 12:33:25 2007 ;; MSG SIZE rcvd: 35 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
|
#ls
db.0 db.16.168.192 db.empty db.okno.net.nt named.conf named.conf.options zones.rfc1918 db.127 db.255 db.local db.root named.conf.local rndc.key |
#vim named.conf
44c44 < zone "192.168.16.in-addr.arpa." { --- > zone "16.168.192.in-addr.arpa." { |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim named.conf
|
#vim db.16.168.192
1,2c1 < $TTL 10000 < 16.168.192.in-addr.arpa. IN SOA okno.net.nt. root.net.nt 2007060103 ( --- > 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. root.net.nt 2007060103 ( |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
1a2,3 > 10800 > 3600 3,5c5 < 86540 < 864000 < 604800 --- > 3600 7c7 < NS okno1.okno.net.nt. --- > NS okno1.okno.net.nt. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
1,7c1,3 < 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. root.net.nt 2007060103 ( < 10800 < 3600 < 604800 < 3600 < ) < NS okno1.okno.net.nt. --- > 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. root.net.nt 2007060103 10800 3600 604800 3600 > > @ IN NS okno1.okno.net.nt. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
1c1 < 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. root.net.nt 2007060103 10800 3600 604800 3600 --- > 16.168.192.in-addr.arpa. 10800 @ SOA okno.net.nt. root.net.nt 2007060103 10800 3600 604800 3600 3c3 < @ IN NS okno1.okno.net.nt. --- > NS okno1 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
1,3c1,3 < 16.168.192.in-addr.arpa. 10800 @ SOA okno.net.nt. root.net.nt 2007060103 10800 3600 604800 3600 < < NS okno1 --- > 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. user.okno1.okno.net.nt. 2007010908 10800 3600 604800 3600 > > NS okno1 |
#dig @127.0.0.1 okno1
; <<>> DiG 9.3.4 <<>> @127.0.0.1 okno1 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 29395 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007053101 1800 900 604800 86400 ;; Query time: 315 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 12:33:28 2007 ;; MSG SIZE rcvd: 98 |
#dig @127.0.0.1 192.168.50.1
May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 10.1.2.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Withdrawing address record for 192.168.19.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: New relevant interface eth3.IPv4 for mDNS. May 31 11:25:57 linux1 avahi-daemon[2642]: Joining mDNS multicast group on interface eth3.IPv4 with address 192.168 .16.1. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 192.168.16.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 10.1.2.1 on eth3. May 31 11:25:57 linux1 avahi-daemon[2642]: Registering new address record for 192.168.19.1 on eth3. May 31 11:26:07 linux1 ntpdate[9277]: can't find host 0.debian.pool.ntp.org ; <<>> DiG 9.3.4 <<>> @127.0.0.1 192.168.50.1 ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 29359 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;192.168.50.1. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007053101 1800 900 604800 86400 ;; Query time: 245 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 12:33:43 2007 ;; MSG SIZE rcvd: 105 |
#vim /etc/bind/named.conf
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim /etc/bind/named.conf
|
#vim /etc/bind/named.conf.local
|
#less /var/log/daemon.log
|
#ls
db.0 db.16.168.192 db.empty db.okno.net.nt named.conf named.conf.options zones.rfc1918 db.127 db.255 db.local db.root named.conf.local rndc.key |
#vim db.255
|
#vim db.16.168.192
1,3c1,15 < 16.168.192.in-addr.arpa. 10800 IN SOA okno.net.nt. user.okno1.okno.net.nt. 2007010908 10800 3600 604800 3600 < < NS okno1 --- > $TTL 604800 > @ IN SOA okno.net.nt. root.okno1.okno.net.nt. ( > 1 ; Serial > 604800 ; Refresh > 86400 ; Retry > 2419200 ; Expire > 604800 ) ; Negative Cache TTL > ; > @ IN NS okno1 > > > > > > |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim db.16.168.192
|
#host okno1.okno.net.nt
Host okno1.okno.net.nt not found: 3(NXDOMAIN) |
#vim /etc/resolv.conf
2c2 < #nameserver 192.168.16.15 --- > nameserver 192.168.16.1 |
#host okno1.okno.net.nt
Host okno1.okno.net.nt not found: 3(NXDOMAIN) |
#dig 192.168.16.1 okno1.okno.net.nt
;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48404 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;192.168.16.1. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007053101 1800 900 604800 86400 ;; Query time: 209 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:38:26 2007 ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38304 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; AUTHORITY SECTION: okno.net.nt. 604800 IN SOA okno.net.nt. root.okno1.okno.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 34 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:38:26 2007 ;; MSG SIZE rcvd: 76 |
#dig @192.168.16.1 okno1.okno.net.nt
; <<>> DiG 9.3.4 <<>> @192.168.16.1 okno1.okno.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 45281 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; AUTHORITY SECTION: okno.net.nt. 604800 IN SOA okno.net.nt. root.okno1.okno.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 101 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:38:37 2007 ;; MSG SIZE rcvd: 76 |
#less /var/log/daemon.log
|
#dig -x @192.168.16.1 okno1.okno.net.nt
;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36102 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;1.16.168.\@192.in-addr.arpa. IN PTR ;; AUTHORITY SECTION: in-addr.arpa. 10800 IN SOA A.ROOT-SERVERS.NET. dns-ops.ARIN.NET. 2007060104 1800 900 691200 10800 ;; Query time: 145 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:39:07 2007 ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48024 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; AUTHORITY SECTION: okno.net.nt. 604800 IN SOA okno.net.nt. root.okno1.okno.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 82 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:39:07 2007 ;; MSG SIZE rcvd: 76 |
#dig 192.168.16.1
; <<>> DiG 9.3.4 <<>> 192.168.16.1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64718 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;192.168.16.1. IN A ;; AUTHORITY SECTION: . 10738 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2007053101 1800 900 604800 86400 ;; Query time: 124 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:39:28 2007 ;; MSG SIZE rcvd: 105 |
#dig -x 192.168.16.1
; <<>> DiG 9.3.4 <<>> -x 192.168.16.1 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14411 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;1.16.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 1.16.168.192.in-addr.arpa. 604800 IN PTR okno1.okno.net.nt. ;; AUTHORITY SECTION: 16.168.192.in-addr.arpa. 604800 IN NS okno1.16.168.192.in-addr.arpa. ;; Query time: 164 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:39:37 2007 ;; MSG SIZE rcvd: 94 |
#dig okno1.okno.net.nt
; <<>> DiG 9.3.4 <<>> okno1.okno.net.nt ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63209 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno1.okno.net.nt. IN A ;; AUTHORITY SECTION: okno.net.nt. 604800 IN SOA okno.net.nt. root.okno1.okno.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 91 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:39:52 2007 ;; MSG SIZE rcvd: 76 |
#vim db.okno.net.nt
|
#dig okno10.okno.net.nt
; <<>> DiG 9.3.4 <<>> okno10.okno.net.nt ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36515 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;okno10.okno.net.nt. IN A ;; AUTHORITY SECTION: okno.net.nt. 604800 IN SOA okno.net.nt. root.okno1.okno.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 91 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 12:40:34 2007 ;; MSG SIZE rcvd: 83 |
Время первой команды журнала | 11:58:19 2007- 6- 1 | ||||||||||||||||||||||||||||||
Время последней команды журнала | 12:40:25 2007- 6- 1 | ||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 31.68 | ||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.70 | ||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.40 | ||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008