/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 |
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#dig @127.0.0.1 svl.net.nt mx
;; global options: printcmdÑÑ ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19630 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; ANSWER SECTION: svl.net.nt. 24 IN MX 5 host50.svl.net.nt. svl.net.nt. 24 IN MX 10 host2.svl.net.nt. ;; AUTHORITY SECTION: svl.net.nt. 24 IN NS host50.svl.net.nt. ;; ADDITIONAL SECTION: host50.svl.net.nt. 24 IN A 192.168.16.50 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 17:05:47 2007 ;; MSG SIZE rcvd: 103 |
#dig svl.net.nt mx
; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34889 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; ANSWER SECTION: svl.net.nt. 24 IN MX 10 host2.svl.net.nt. svl.net.nt. 24 IN MX 5 host50.svl.net.nt. ;; AUTHORITY SECTION: svl.net.nt. 24 IN NS host50.svl.net.nt. ;; ADDITIONAL SECTION: host50.svl.net.nt. 24 IN A 192.168.16.50 ;; Query time: 5 msec ;; SERVER: 192.168.16.50#53(192.168.16.50) ;; WHEN: Fri Jun 1 17:05:55 2007 ;; MSG SIZE rcvd: 103 |
#exit
Connection to 192.168.16.50 closed. |
#dig svl.net.nt mx
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) 2 Jun 01 user ( 2) ; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ¼ÐµÐ½ÑÑÑ ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56667 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; AUTHORITY SECTION: svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 92 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:06:04 2007 ;; MSG SIZE rcvd: 69 |
#ssh clint@192.168.16.15
Connection to 192.168.16.15 closed. |
#dig svl.net.nt mx
; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17741 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; AUTHORITY SECTION: svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 14 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:06:53 2007 ;; MSG SIZE rcvd: 69 |
#dig svl.net.nt ns
; <<>> DiG 9.3.4 <<>> svl.net.nt ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55659 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;svl.net.nt. IN NS ;; ANSWER SECTION: svl.net.nt. 24 IN NS host50.svl.net.nt. ;; ADDITIONAL SECTION: host50.svl.net.nt. 24 IN A 192.168.16.50 ;; Query time: 14 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:07:01 2007 ;; MSG SIZE rcvd: 65 |
#/etc/init.d/bind9 restart
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Stopping domain name service...: bind. Starting domain name service...: bind. ¼ÐµÐ½ÑÑÑ |
#dig svl.net.nt mx
; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35861 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; AUTHORITY SECTION: svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 89 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:07:23 2007 ;; MSG SIZE rcvd: 69 |
#rndc reload
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) server reload successful ( 2) ¼ÐµÐ½ÑÑÑ |
#rndc flush
|
#dig svl.net.nt mx
; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24349 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; AUTHORITY SECTION: svl.net.nt. 24 IN SOA svl.net.nt. user.svl.net.nt. 2007060101 36000 3600 604800 3600 ;; Query time: 92 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:07:33 2007 ;; MSG SIZE rcvd: 69 |
#vim /etc/bind/named.conf
|
#exit
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Connection to 192.168.16.150 closed.2) ¼ÐµÐ½ÑÑÑ |
#rm /var/cache/bind/db.svl.net.nt
|
#rndc reload
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) server reload successful ( 2) ¼ÐµÐ½ÑÑÑ |
#ls -l /var/cache/bind/db.svl.net.nt
ls: /var/cache/bind/db.svl.net.nt: No such file or directory |
#ls -l /var/cache/bind/
итого 0 |
#/etc/init.d/bind9 restart
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Stopping domain name service...: bind. Starting domain name service...: bind. ¼ÐµÐ½ÑÑÑ |
#ls -l /var/cache/bind/
итого 0 |
#vim /etc/bind/named.conf
|
#/etc/init.d/bind9 restart
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Stopping domain name service...: bind. Starting domain name service...: bind. ¼ÐµÐ½ÑÑÑ |
#ls -l /var/cache/bind/db.svl.net.nt
-rw-r--r-- 1 bind bind 1595 2007-06-01 17:08 /var/cache/bind/db.svl.net.nt |
#dig svl.net.nt mx
; <<>> DiG 9.3.4 <<>> svl.net.nt mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18607 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; ANSWER SECTION: svl.net.nt. 24 IN MX 10 host2.svl.net.nt. svl.net.nt. 24 IN MX 5 host50.svl.net.nt. ;; AUTHORITY SECTION: svl.net.nt. 24 IN NS host50.svl.net.nt. ;; ADDITIONAL SECTION: host50.svl.net.nt. 24 IN A 192.168.16.50 ;; Query time: 100 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:09:07 2007 ;; MSG SIZE rcvd: 103 |
#mutt
550 5.1.1 <root@svl.net.nt>... User unknown ¾Ð²ÐºÐ°: 8bit, ÑазмеÑ: 0,7K --] [-- Тип: message/delivery-status, кодиÑовка: 7bit, ÑазмеÑ: 0,4K --] to host50.svl.net.nt.: Reporting-MTA: dns; okno1.okno.net.nt 3.8/Debian-3) with ESMTP id l51E9lZ3006669t@okno.net.nt does not exist Received-From-MTA: DNS; localhost7 17:09:48 +0300 /Submit) id l51E9lIV006668 Arrival-Date: Fri, 1 Jun 2007 17:09:47 +0300 .nt ¾Ð²ÐºÐ°: 8bit, ÑазмеÑ: 0,7K --] ... 3.8/Debian-3) with ESMTP id l51E9lZ3006669t@okno.net.nt does not exist for <root@svl.net.nt>; Fri, 1 Jun 2007 17:09:47 +0300 ate: Fri, 1 Jun 2007 17:09:48 +0300 Receivedby okno1.okno.net.nt (8.13.8/8.13.8/Submit) id l51E9lIV006668 Subject: plain; charset=utf-8 ition: inline see transcript for details -- (96%) ÐÑÑавлено: 3, Ñдалено: 0. You have mail in /var/mail/root |
#mail
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 3 messages > 1 root@okno.net.nt Fri Jun 1 16:01 19/626 test 2 user@okno.net.nt Fri Jun 1 16:15 16/467 3 MAILER-DAEMON@okn Fri Jun 1 17:09 75/2680 Returned mail: see transcript for details & Message 1: From root@okno.net.nt Fri Jun 1 16:01:48 2007 Date: Fri, 1 Jun 2007 16:01:48 +0300 From: root <root@okno.net.nt> To: root@okno.net.nt Subject: test Content-Length: 6 Lines: 1 test. & q Saved 1 message in /root/mbox Held 2 messages in /var/mail/root |
#mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/root": 2 messages > 1 user@okno.net.nt Fri Jun 1 16:15 16/467 2 MAILER-DAEMON@okn Fri Jun 1 17:09 75/2680 Returned mail: see transcript for details & Message 1: From user@okno.net.nt Fri Jun 1 16:15:30 2007 Date: Fri, 1 Jun 2007 16:14:18 +0300 From: user <user@okno.net.nt> To: undisclosed-recipients:; Content-Length: 10 Lines: 2 TEST TEST & q Saved 1 message in /root/mbox Held 1 message in /var/mail/root |
#mail
Status: 5.1.8 Remote-MTA: DNS; host50.svl.net.nt Diagnostic-Code: SMTP; 553 5.1.8 <root@svl.net.nt>... Domain of sender address root@okno.net.nt does not exist Last-Attempt-Date: Fri, 1 Jun 2007 17:09:48 +0300 --l51E9mZ3006680.1180706988/okno1.okno.net.nt Content-Type: text/rfc822-headers Content-Transfer-Encoding: 8bit Return-Path: <root@okno1.okno.net.nt> Received: from okno1.okno.net.nt (smmsp@localhost [127.0.0.1]) by okno1.okno.net.nt (8.13.8/8.13.8/Debian-3) with ESMTP id l51E9lZ3006669 for <root@svl.net.nt>; Fri, 1 Jun 2007 17:09:47 +0300 Received: (from root@localhost) by okno1.okno.net.nt (8.13.8/8.13.8/Submit) id l51E9lIV006668 At EOF & q Saved 1 message in /root/mbox & |
#ssh 192.168.16.50
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Enter passphrase for key '/root/.ssh/id_rsa': Last login: Fri Jun 1 17:04:52 2007 from okno1.okno.net.nt Linux host50.svl.net.nt 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 ¼ÐµÐ½ÑÑÑ The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No mail. l3-agent is already running: pid=2757; pidfile=/root/.lilalo/l3-agent.pid |
#host 192.168.16.50
Host 50.16.168.192.in-addr.arpa not found: 2(SERVFAIL) |
#netstat -lnp | grep :25
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3364/sendmail: MTA: ¼ÐµÐ½ÑÑÑ |
#netstat -lnp | grep :53
tcp 0 0 192.168.16.50:53 0.0.0.0:* LISTEN 4318/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4318/named udp 0 0 192.168.16.50:53 0.0.0.0:* 4318/named udp 0 0 127.0.0.1:53 0.0.0.0:* 4318/named |
#host 192.168.16.50
Host 50.16.168.192.in-addr.arpa not found: 2(SERVFAIL) |
#host host1.svl.net.nt
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Host host1.svl.net.nt not found: 3(NXDOMAIN) ¼ÐµÐ½ÑÑÑ |
#host host50.svl.net.nt
host50.svl.net.nt has address 192.168.16.50 |
#vim /etc/bind/named.conf.options
|
#vim /etc/bind/named.conf
|
#vim /etc/bind/db.
|
#vim /etc/bind/db.16.168.192
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#host host50.svl.net.nt
host50.svl.net.nt has address 192.168.16.50 |
#host 192.168.16.50
1 Jun 01 root ( 1) test 2 Jun 01 user ( 2) Host 50.16.168.192.in-addr.arpa not found: 2(SERVFAIL) ¼ÐµÐ½ÑÑÑ |
#less /var/log/daemon.log
|
#vim /etc/bind/db.16.168.192
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim /etc/bind/db.16.168.192
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#vim /etc/bind/db.16.168.192
|
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#less /var/log/daemon.log
|
#host 192.168.16.50
50.16.168.192.in-addr.arpa domain name pointer host50.svl.net.nt. |
#host host50.svl.net.nt
host50.svl.net.nt has address 192.168.16.50 |
#exit
Connection to 192.168.16.50 closed. You have new mail in /var/mail/root |
#mail
Last-Attempt-Date: Fri, 1 Jun 2007 17:14:29 +0300 --l51EESZ4006854.1180707269/okno1.okno.net.nt Content-Type: text/rfc822-headers Return-Path: <root@okno1.okno.net.nt> Received: from okno1.okno.net.nt (smmsp@localhost [127.0.0.1]) by okno1.okno.net.nt (8.13.8/8.13.8/Debian-3) with ESMTP id l51E2fV2006072 for <root@svl.net.nt>; Fri, 1 Jun 2007 17:02:41 +0300 Received: (from root@localhost) by okno1.okno.net.nt (8.13.8/8.13.8/Submit) id l51E2fF9006071 for root@svl.net.nt; Fri, 1 Jun 2007 17:02:41 +0300 From: root <root@okno1.okno.net.nt> Date: Fri, 1 Jun 2007 17:02:41 +0300 To: root@svl.net.nt Subject: TEST# Saved 1 message in /root/mbox Held 2 messages in /var/mail/root & q |
#telnet 192.168.16.50
|
#host 192.168.16.50
Jun 1 17:18:11 host50 named[5013]: stopping command channel on 127.0.0.1#953 Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 ... Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Host 50.16.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#vim /etc/bind/named.conf
|
#vim /etc/bind/named.conf
48,52c48,52 < zone "svl.net.nt" { < type slave; < masters { 192.168.16.50; }; < file "db.svl.net.nt"; < }; --- > //zone "svl.net.nt" { > // type slave; > // masters { 192.168.16.50; }; > // file "db.svl.net.nt"; > //}; |
#mail
|
#/etc/init.d/bind9 restart
Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 Jun 1 17:18:13 host50 named[5069]: command channel listening on 127.0.0.1#953 ... Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Stopping domain name service...: bind. Starting domain name service...: bind. |
#host 192.168.16.50
Host 50.16.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#vim /etc/bind/db.16.168.192
66a67 > 50 PTR host50.svl.net.nt. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#host 192.168.16.50
50.16.168.192.in-addr.arpa domain name pointer host50.svl.net.nt. |
#host 192.168.16.50
Jun 1 17:18:11 host50 named[5013]: stopping command channel on 127.0.0.1#953 Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 ... Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) 50.16.168.192.in-addr.arpa domain name pointer host50.svl.net.nt. |
#dig svl.net.nt mx
;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49126 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;svl.net.nt. IN MX ;; ANSWER SECTION: svl.net.nt. 24 IN MX 5 host50.svl.net.nt. svl.net.nt. 24 IN MX 10 host2.svl.net.nt. ;; AUTHORITY SECTION: svl.net.nt. 24 IN NS host50.svl.net.nt. ;; ADDITIONAL SECTION: host50.svl.net.nt. 24 IN A 192.168.16.50 ;; Query time: 122 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Fri Jun 1 17:22:25 2007 ;; MSG SIZE rcvd: 103 |
#mutt
.. Domain of sender address root@okno.net.nt does not existnot exist) 550 5.1.1 <root@svl.net.nt>... User unknown [-- Тип: message/delivery-status, кодиÑовка: 7bit, ÑазмеÑ: 0,4K --] to host50.svl.net.nt.: Reporting-MTA: dns; okno1.okno.net.nt Received-From-MTA: DNS; localhost Arrival-Date: Fri, 1 Jun 2007 17:22:46 +0300 .nt ¾Ð²ÐºÐ°: 7bit, ÑазмеÑ: 0,6K --] Return-Path: <root@okno1.okno.net.nt> 3.8/Debian-3) with ESMTP id l51EMkWn007395t@okno.net.nt does not exist for <root@svl.net.nt>; Fri, 1 Jun 2007 17:22:46 +0300 ate: Fri, 1 Jun 2007 17:22:47 +0300 Receivedby okno1.okno.net.nt (8.13.8/8.13.8/Submit) id l51EMkKk007394 Subject: ---Mutt: /var/mail/root [Msgs:3 New:1 Old:2 7,5K]---(threads/date)-----------------------------------------(all)--- plain; charset=us-ascii sition: inline see transcript for details -- (98%) ÐÑÑавлено: 3, Ñдалено: 0. |
#ssh 192.168.16.50
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Fri Jun 1 17:11:18 2007 from okno1.okno.net.nt Linux host50.svl.net.nt 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No mail. l3-agent is already running: pid=2757; pidfile=/root/.lilalo/l3-agent.pid |
#host okno.net.nt
Jun 1 17:18:11 host50 named[5013]: shutting down: flushing changes Jun 1 17:18:11 host50 named[5013]: stopping command channel on 127.0.0.1#953 Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 ... Jun 1 17:18:13 host50 named[5069]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) |
#host okno.net.nt.
|
#host okno1.okno.net.nt.
Jun 1 17:18:11 host50 named[5013]: stopping command channel on 127.0.0.1#953 Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 ... Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) okno1.okno.net.nt has address 192.168.16.1 |
#exit
Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 Jun 1 17:18:13 host50 named[5069]: command channel listening on 127.0.0.1#953 ... Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Connection to 192.168.16.50 closed. You have mail in /var/mail/root |
#telnet host50.svl.net.nt 25
Jun 1 17:18:13 host50 named[5069]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) ... 220 host50.svl.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Fri, 1 Jun 2007 17:24:18 +0300; (No UCE/UBE) logging access from: [192.168.16.1](FAIL)-root@[192.168.16.1] HELO zlo 250 host50.svl.net.nt Hello root@[192.168.16.1], pleased to meet you MAIL FROM : root@okno.net.nt 250 2.1.0 root@okno.net.nt... Sender ok RCPT TO : root@svl.net.nt 553 5.1.8 root@svl.net.nt... Domain of sender address root@okno.net.nt does not exist ^] telnet> q Connection closed. |
#ssh 192.168.16.50
Jun 1 17:18:13 host50 named[5069]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Enter passphrase for key '/root/.ssh/id_rsa': Last login: Fri Jun 1 17:23:13 2007 from 192.168.16.1 Linux host50.svl.net.nt 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No mail. l3-agent is already running: pid=2757; pidfile=/root/.lilalo/l3-agent.pid |
#vim /etc/mail/sendmail.mc
|
#cd /etc/mail/
|
#ls
access aliases.db m4 sendmail.cf service.switch-nodns tls access.db databases Makefile sendmail.conf smrsh trusted-users address.resolve helpfile peers sendmail.mc submit.cf aliases local-host-names sasl service.switch submit.mc |
#ls -l
итого 166 -rw------- 1 root root 4211 2007-06-01 15:37 access -rw-r----- 1 smmta smmsp 3072 2007-06-01 15:37 access.db -rw-r--r-- 1 root root 281 2006-12-09 06:22 address.resolve lrwxrwxrwx 1 root smmsp 10 2007-06-01 15:37 aliases -> ../aliases -rw-r----- 1 smmta smmsp 3072 2007-06-01 15:37 aliases.db -rw-r--r-- 1 root smmsp 3163 2007-06-01 16:41 databases -rw-r--r-- 1 root root 5594 2006-12-09 06:23 helpfile -rw-r--r-- 1 root smmsp 38 2007-06-01 16:15 local-host-names drwxr-sr-x 2 smmta smmsp 1024 2007-06-01 15:37 m4 ... -rw-r--r-- 1 root smmsp 63192 2007-06-01 16:42 sendmail.cf -rw-r--r-- 1 root root 11888 2007-06-01 15:37 sendmail.conf -rw-r--r-- 1 root smmsp 4008 2007-06-01 16:34 sendmail.mc -rw-r--r-- 1 root root 149 2006-12-09 06:22 service.switch -rw-r--r-- 1 root root 180 2006-12-09 06:22 service.switch-nodns drwxr-sr-x 2 smmta smmsp 1024 2007-06-01 15:37 smrsh -rw-r--r-- 1 root smmsp 43614 2007-06-01 15:37 submit.cf -rw-r--r-- 1 root smmsp 2284 2007-06-01 15:37 submit.mc drwxr-xr-x 2 smmta smmsp 1024 2007-06-01 15:37 tls -rw-r--r-- 1 root smmsp 0 2007-06-01 15:37 trusted-users |
#vim ../aliases
|
#ls
access aliases.db m4 sendmail.cf service.switch-nodns tls access.db databases Makefile sendmail.conf smrsh trusted-users address.resolve helpfile peers sendmail.mc submit.cf aliases local-host-names sasl service.switch submit.mc |
#vim access
|
#make
Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating access_db ... Updating ALIAS_FILE ... /etc/mail/aliases: 5 aliases, longest 10 bytes, 74 bytes total The following file(s) have changed: ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Jun 1 17:18:11 host50 named[5013]: stopping command channel on 127.0.0.1#953 Jun 1 17:18:11 host50 named[5013]: no longer listening on 127.0.0.1#53 Jun 1 17:18:11 host50 named[5013]: no longer listening on 192.168.16.50#53 Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 ... Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Restarting Transport Agent: sendmail. |
#vim access
|
#telnet host50.svl.net.nt 25
Jun 1 17:18:13 host50 named[5069]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone localhost/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) Trying 192.168.16.50... Connected to host50.svl.net.nt. ... 250 host50.svl.net.nt Hello root@[192.168.16.1], pleased to meet you MAIL FROM: root@okno.net.nt 250 2.1.0 root@okno.net.nt... Sender ok RCPT TO: root@svl.net.nt 553 5.1.8 root@svl.net.nt... Domain of sender address root@okno.net.nt does not exist ^] telnet> ^] telnet> q Connection closed. |
#exit
Connection to 192.168.16.50 closed. |
#ls
Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 Jun 1 17:18:13 host50 named[5069]: command channel listening on 127.0.0.1#953 Jun 1 17:18:13 host50 named[5069]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 127.in-addr.arpa/IN: loaded serial 1 ... Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) access aliases.db m4 sendmail.cf service.switch-nodns tls access.db databases Makefile sendmail.conf smrsh trusted-users address.resolve helpfile peers sendmail.mc submit.cf aliases local-host-names sasl service.switch submit.mc |
#ls -l
итого 228 -rw------- 1 root root 4211 2007-06-01 16:24 access -rw-r----- 1 smmta smmsp 12288 2007-06-01 16:24 access.db -rw-r--r-- 1 root root 281 2006-12-09 06:22 address.resolve lrwxrwxrwx 1 root smmsp 10 2007-06-01 16:24 aliases -> ../aliases -rw-r----- 1 smmta smmsp 12288 2007-06-01 16:24 aliases.db -rw-r--r-- 1 root smmsp 3162 2007-06-01 16:53 databases -rw-r--r-- 1 root root 5594 2006-12-09 06:23 helpfile -rw-r--r-- 1 root smmsp 40 2007-06-01 16:37 local-host-names drwxr-sr-x 2 smmta smmsp 4096 2007-06-01 16:24 m4 ... -rw-r--r-- 1 root smmsp 64229 2007-06-01 16:53 sendmail.cf -rw-r--r-- 1 root root 11888 2007-06-01 16:24 sendmail.conf -rw-r--r-- 1 root smmsp 4155 2007-06-01 16:52 sendmail.mc -rw-r--r-- 1 root root 149 2006-12-09 06:22 service.switch -rw-r--r-- 1 root root 180 2006-12-09 06:22 service.switch-nodns drwxr-sr-x 2 smmta smmsp 4096 2007-06-01 16:24 smrsh -rw-r--r-- 1 root smmsp 43613 2007-06-01 16:24 submit.cf -rw-r--r-- 1 root smmsp 2284 2007-06-01 16:24 submit.mc drwxr-xr-x 2 smmta smmsp 4096 2007-06-01 16:24 tls -rw-r--r-- 1 root smmsp 0 2007-06-01 16:24 trusted-users |
#ls
Jun 1 17:18:11 host50 named[5013]: exiting Jun 1 17:18:13 host50 named[5069]: starting BIND 9.3.4 -u bind Jun 1 17:18:13 host50 named[5069]: found 2 CPUs, using 2 worker threads Jun 1 17:18:13 host50 named[5069]: loading configuration from '/etc/bind/named.conf' Jun 1 17:18:13 host50 named[5069]: no IPv6 interfaces found Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface lo, 127.0.0.1#53 Jun 1 17:18:13 host50 named[5069]: listening on IPv4 interface eth1, 192.168.16.50#53 Jun 1 17:18:13 host50 named[5069]: command channel listening on 127.0.0.1#953 Jun 1 17:18:13 host50 named[5069]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 17:18:13 host50 named[5069]: zone 127.in-addr.arpa/IN: loaded serial 1 ... Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: loaded serial 2007060101 Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: loaded serial 2007060102 Jun 1 17:18:13 host50 named[5069]: running Jun 1 17:18:13 host50 named[5069]: zone svl.net.nt/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone 16.168.192.in-addr.arpa/IN: sending notifies (serial 2007060102) Jun 1 17:18:13 host50 named[5069]: zone okno.net.nt/IN: sending notifies (serial 2007060101) access aliases.db m4 sendmail.cf service.switch-nodns tls access.db databases Makefile sendmail.conf smrsh trusted-users address.resolve helpfile peers sendmail.mc submit.cf aliases local-host-names sasl service.switch submit.mc |
#ls -l ../aliases
-rw-r--r-- 1 root root 197 2007-06-01 15:45 ../aliases |
#vim local-host-names
|
#ssh 192.168.16.50
Enter passphrase for key '/root/.ssh/id_rsa': root@192.168.16.50's password: Last login: Fri Jun 1 17:25:18 2007 from 192.168.16.1 Linux host50.svl.net.nt 2.6.21.2 #1 SMP Thu May 24 13:33:22 EEST 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. No mail. l3-agent is already running: pid=2757; pidfile=/root/.lilalo/l3-agent.pid |
#cd /etc/mail/
|
#ls
access aliases.db m4 sendmail.cf service.switch-nodns tls access.db databases Makefile sendmail.conf smrsh trusted-users address.resolve helpfile peers sendmail.mc submit.cf aliases local-host-names sasl service.switch submit.mc |
Время первой команды журнала | 17:05:28 2007- 6- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:29:20 2007- 6- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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