/l3/users/kolya/nt-lnet-2006-06-26/linux1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#bind restart
|
#[root@linux1:root]# dig @192.168.15.254 linux1.linux.nt
; <<>> DiG 9.2.4 <<>> @192.168.15.254 linux1.linux.nt ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54665 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;linux1.linux.nt. IN A ;; ANSWER SECTION: linux1.linux.nt. 10800000 IN A 192.168.15.1 ;; AUTHORITY SECTION: linux.nt. 10800000 IN NS linux.nt. ;; ADDITIONAL SECTION: linux.nt. 10800000 IN A 192.168.15.254 ;; Query time: 2 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 12:36:56 2006 ;; MSG SIZE rcvd: 79 |
#dig @linux1.linux.nt google.com.ua
dig: Couldn't find server 'linux1.linux.nt': Name or service not known |
#dig @192.168.15.1 google.com.ua
; <<>> DiG 9.2.4 <<>> @192.168.15.1 google.com.ua ;; global options: printcmd ;; connection timed out; no servers could be reached |
#ssh m02
|
#ssh-keygen -t dsa
|
#ssh 192.168.15.2
|
#ssh m02
|
#vi /etc/bind/
|
#vi /etc/bind/named.conf
|
#vi /etc/bind/named.conf.o
|
#vi /etc/bind/named.conf.options
33a34,35 > allow-version "Not found!"; > |
#bind restart
|
#dig @172.0.0.1 chaos txt vesRion.bind
|
#dig @172.0.0.1 chaos txt veRsion.bind
; <<>> DiG 9.2.4 <<>> @172.0.0.1 chaos txt veRsion.bind ;; global options: printcmd ;; connection timed out; no servers could be reached |
#/etc/init.d/bind RestaRt
Usage: /etc/init.d/bind {start|stop|reload|restart|force-reload} |
#/etc/init.d/bind
Usage: /etc/init.d/bind {start|stop|reload|restart|force-reload} |
#killall -1 named
|
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#dig @172.0.0.1 chaos txt version.bind
; <<>> DiG 9.2.4 <<>> @172.0.0.1 chaos txt version.bind ;; global options: printcmd ;; connection timed out; no servers could be reached |
#vi /etc/bind/named.conf.options
34c34 < allow-version "Not found!"; --- > version "Not found!"; |
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#dig @172.0.0.1 chaos txt version.bind
; <<>> DiG 9.2.4 <<>> @172.0.0.1 chaos txt version.bind ;; global options: printcmd ;; connection timed out; no servers could be reached |
#dig @127.0.0.1 mail.ru
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 1693 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:48:01 2006 ;; MSG SIZE rcvd: 25 |
#bind
|
#dig @127.0.0.1 mail.ru
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 26056 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:48:11 2006 ;; MSG SIZE rcvd: 25 |
#bind start
|
#dig @127.0.0.1 mail.ru
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 23666 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:48:22 2006 ;; MSG SIZE rcvd: 25 |
#vi /etc/resolv.conf
|
#vi /etc/bind/named.conf.options
|
#dig @127.0.0.1 mail.ru
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 19048 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:49:18 2006 ;; MSG SIZE rcvd: 25 |
#vi /etc/bind/named.conf.options
34c34 < version "Not found!"; --- > version "Not found!" |
#dig @127.0.0.1 mail.ru
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 29973 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:50:08 2006 ;; MSG SIZE rcvd: 25 |
#dig @127.0.0.1 mail.ru a
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 61324 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:50:13 2006 ;; MSG SIZE rcvd: 25 |
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#dig @127.0.0.1 mail.ru a
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 14034 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:50:24 2006 ;; MSG SIZE rcvd: 25 |
#vi /etc/bind/named.conf.options
29c29 < 172.0.0.1/32; --- > 127.0.0.1/32; |
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#dig @127.0.0.1 mail.ru a
; <<>> DiG 9.2.4 <<>> @127.0.0.1 mail.ru a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56415 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; ANSWER SECTION: mail.ru. 11667 IN A 194.67.57.26 ;; AUTHORITY SECTION: mail.ru. 11667 IN NS ns1.mail.ru. mail.ru. 11667 IN NS ns2.mail.ru. mail.ru. 11667 IN NS ns3.mail.ru. mail.ru. 11667 IN NS ns4.mail.ru. mail.ru. 11667 IN NS ns5.mail.ru. mail.ru. 11667 IN NS ns.mail.ru. ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:50:53 2006 ;; MSG SIZE rcvd: 155 |
#dig @172.0.0.1 chaos txt version.bind
|
#dig @127.0.0.1 chaos txt version.bind
; <<>> DiG 9.2.4 <<>> @127.0.0.1 chaos txt version.bind ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50020 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: VERSION.BIND. 0 CH TXT "Not found!" ;; Query time: 2 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:51:33 2006 ;; MSG SIZE rcvd: 65 |
#vi /etc/bind/named.conf.options
|
#[root@linux1:user]# dig @127.0.0.1 chaos txt version.bind
; <<>> DiG 9.2.4 <<>> @127.0.0.1 chaos txt version.bind ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46130 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;version.bind. CH TXT ;; ANSWER SECTION: VERSION.BIND. 0 CH TXT "Not found!" ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:53:29 2006 ;; MSG SIZE rcvd: 65 |
#dig td-lin/com
; <<>> DiG 9.2.4 <<>> td-lin/com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 35881 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;td-lin/com. IN A ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006062701 1800 900 604800 86400 ;; Query time: 165 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:54:32 2006 ;; MSG SIZE rcvd: 103 |
#dig td-lin.com
; <<>> DiG 9.2.4 <<>> td-lin.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34580 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 3600 IN A 65.110.63.132 ;; AUTHORITY SECTION: td-lin.com. 258 IN NS ns2.xt-labs.com. td-lin.com. 258 IN NS ns.secondary.net.ua. td-lin.com. 258 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns2.xt-labs.com. 191 IN A 65.110.63.139 ns.secondary.net.ua. 4759 IN A 195.149.112.1 ;; Query time: 34 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 12:54:35 2006 ;; MSG SIZE rcvd: 163 |
#dig td-lin.com axfr
; <<>> DiG 9.2.4 <<>> td-lin.com axfr ;; global options: printcmd ; Transfer failed. |
#[root@linux1:user]# nmap localhot
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2006-06-28 12:57 EEST Failed to resolve given hostname/IP: localhot. Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges WARNING: No targets were specified, so 0 hosts scanned. Nmap run completed -- 0 IP addresses (0 hosts up) scanned in 0.085 seconds |
#[root@linux1:user]# nmap 172.0.0.1
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2006-06-28 12:57 EEST Note: Host seems down. If it is really up, but blocking our ping probes, try -P0 Nmap run completed -- 1 IP address (0 hosts up) scanned in 2.045 seconds |
#[root@linux1:root]# netstat -ln -A inet
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:770 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:7 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN tcp 0 0 192.168.15.1:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:32793 0.0.0.0:* udp 0 0 192.168.15.1:53 0.0.0.0:* udp 0 0 127.0.0.1:53 0.0.0.0:* udp 0 0 0.0.0.0:111 0.0.0.0:* udp 0 0 0.0.0.0:764 0.0.0.0:* udp 0 0 0.0.0.0:767 0.0.0.0:* |
#аvi /etc/bind/dns.info
different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/bind/dns.info" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/bind/.dns.info.swp" to avoid this message. Swap file "/etc/bind/.dns.info.swp" already exists! Hit ENTER or type command to continue |
#dig td-lin.com
; <<>> DiG 9.2.4 <<>> td-lin.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26770 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 457 IN A 65.110.63.132 ;; AUTHORITY SECTION: ... k.root-servers.net. 168147 IN A 193.0.14.129 l.root-servers.net. 168147 IN A 198.32.64.12 m.root-servers.net. 168147 IN A 202.12.27.33 a.root-servers.net. 168147 IN A 198.41.0.4 b.root-servers.net. 168147 IN A 192.228.79.201 c.root-servers.net. 168147 IN A 192.33.4.12 ;; Query time: 8 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:46:58 2006 ;; MSG SIZE rcvd: 463 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39729 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 1 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172800 IN NS ns2.xt-labs.com. td-lin.com. 172800 IN NS ns.secondary.net.ua. td-lin.com. 172800 IN NS ns1.xt-labs.com. ;; AUTHORITY SECTION: td-lin.com. 172800 IN NS ns2.xt-labs.com. td-lin.com. 172800 IN NS ns.secondary.net.ua. td-lin.com. 172800 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1605 IN A 195.149.112.1 ;; Query time: 4550 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:47:09 2006 ;; MSG SIZE rcvd: 173 |
#dig td-lin.com xm
; <<>> DiG 9.2.4 <<>> td-lin.com xm ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63564 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 430 IN A 65.110.63.132 ;; AUTHORITY SECTION: ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48056 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;xm. IN A ;; AUTHORITY SECTION: . 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2006062701 1800 900 604800 86400 ;; Query time: 166 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:47:26 2006 ;; MSG SIZE rcvd: 95 |
#dig td-lin.com @ns1.xt-labs.com.
; <<>> DiG 9.2.4 <<>> td-lin.com @ns1.xt-labs.com. ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27611 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 3600 IN A 65.110.63.132 ;; AUTHORITY SECTION: td-lin.com. 3600 IN NS ns1.xt-labs.com. td-lin.com. 3600 IN NS ns2.xt-labs.com. td-lin.com. 3600 IN NS ns.secondary.net.ua. ;; ADDITIONAL SECTION: ns1.xt-labs.com. 3600 IN A 67.18.135.62 ns2.xt-labs.com. 3600 IN A 65.110.63.139 ns.secondary.net.ua. 14381 IN A 195.149.112.1 ;; Query time: 187 msec ;; SERVER: 67.18.135.62#53(ns1.xt-labs.com.) ;; WHEN: Wed Jun 28 13:47:57 2006 ;; MSG SIZE rcvd: 169 |
#dig td-lin.com @ns1.xt-labs.com. axfr
; <<>> DiG 9.2.4 <<>> td-lin.com @ns1.xt-labs.com. axfr ;; global options: printcmd ; Transfer failed. |
#dig td-lin.com @ns1.xt-labs.com axfr
; <<>> DiG 9.2.4 <<>> td-lin.com @ns1.xt-labs.com axfr ;; global options: printcmd ; Transfer failed. |
#dig td-lin.com
; <<>> DiG 9.2.4 <<>> td-lin.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7102 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 356 IN A 65.110.63.132 ;; AUTHORITY SECTION: td-lin.com. 172710 IN NS ns2.xt-labs.com. td-lin.com. 172710 IN NS ns.secondary.net.ua. td-lin.com. 172710 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1515 IN A 195.149.112.1 ns1.xt-labs.com. 3558 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:39 2006 ;; MSG SIZE rcvd: 153 |
#dig td-lin.com
; <<>> DiG 9.2.4 <<>> td-lin.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57853 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 354 IN A 65.110.63.132 ;; AUTHORITY SECTION: td-lin.com. 172708 IN NS ns2.xt-labs.com. td-lin.com. 172708 IN NS ns.secondary.net.ua. td-lin.com. 172708 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1513 IN A 195.149.112.1 ns1.xt-labs.com. 3556 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:41 2006 ;; MSG SIZE rcvd: 153 |
#dig td-lin.com
; <<>> DiG 9.2.4 <<>> td-lin.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47966 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN A ;; ANSWER SECTION: td-lin.com. 353 IN A 65.110.63.132 ;; AUTHORITY SECTION: td-lin.com. 172707 IN NS ns2.xt-labs.com. td-lin.com. 172707 IN NS ns.secondary.net.ua. td-lin.com. 172707 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1512 IN A 195.149.112.1 ns1.xt-labs.com. 3555 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:42 2006 ;; MSG SIZE rcvd: 153 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62433 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172699 IN NS ns2.xt-labs.com. td-lin.com. 172699 IN NS ns.secondary.net.ua. td-lin.com. 172699 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1504 IN A 195.149.112.1 ns1.xt-labs.com. 3547 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:50 2006 ;; MSG SIZE rcvd: 137 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49557 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172697 IN NS ns2.xt-labs.com. td-lin.com. 172697 IN NS ns.secondary.net.ua. td-lin.com. 172697 IN NS ns1.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1502 IN A 195.149.112.1 ns1.xt-labs.com. 3545 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:52 2006 ;; MSG SIZE rcvd: 137 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25272 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172696 IN NS ns1.xt-labs.com. td-lin.com. 172696 IN NS ns2.xt-labs.com. td-lin.com. 172696 IN NS ns.secondary.net.ua. ;; ADDITIONAL SECTION: ns1.xt-labs.com. 3544 IN A 67.18.135.62 ns.secondary.net.ua. 1501 IN A 195.149.112.1 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:53 2006 ;; MSG SIZE rcvd: 137 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64911 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172695 IN NS ns.secondary.net.ua. td-lin.com. 172695 IN NS ns1.xt-labs.com. td-lin.com. 172695 IN NS ns2.xt-labs.com. ;; ADDITIONAL SECTION: ns.secondary.net.ua. 1500 IN A 195.149.112.1 ns1.xt-labs.com. 3543 IN A 67.18.135.62 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:54 2006 ;; MSG SIZE rcvd: 137 |
#dig td-lin.com ns
; <<>> DiG 9.2.4 <<>> td-lin.com ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35328 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;td-lin.com. IN NS ;; ANSWER SECTION: td-lin.com. 172694 IN NS ns1.xt-labs.com. td-lin.com. 172694 IN NS ns2.xt-labs.com. td-lin.com. 172694 IN NS ns.secondary.net.ua. ;; ADDITIONAL SECTION: ns1.xt-labs.com. 3542 IN A 67.18.135.62 ns.secondary.net.ua. 1499 IN A 195.149.112.1 ;; Query time: 5 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:48:55 2006 ;; MSG SIZE rcvd: 137 |
#dig td-lin.com @ns2.xt-labs.com. axfr
; <<>> DiG 9.2.4 <<>> td-lin.com @ns2.xt-labs.com. axfr ;; global options: printcmd td-lin.com. 3600 IN SOA ns1.xt-labs.com. admin.xt-labs.com. 20051103 10800 3600 604800 86400 td-lin.com. 3600 IN NS ns1.xt-labs.com. td-lin.com. 3600 IN NS ns2.xt-labs.com. td-lin.com. 3600 IN NS ns.secondary.net.ua. td-lin.com. 3600 IN MX 10 server.td-lin.com. td-lin.com. 3600 IN MX 20 mx.xt-labs.com. td-lin.com. 3600 IN A 65.110.63.132 server.td-lin.com. 3600 IN A 195.95.210.90 www.td-lin.com. 3600 IN A 65.110.63.132 td-lin.com. 3600 IN SOA ns1.xt-labs.com. admin.xt-labs.com. 20051103 10800 3600 604800 86400 ;; Query time: 510 msec ;; SERVER: 65.110.63.139#53(ns2.xt-labs.com.) ;; WHEN: Wed Jun 28 13:49:13 2006 ;; XFR size: 10 records |
#ping progector.kiev.ua
ping: unknown host progector.kiev.ua |
#dig mikrocom.com.ua
; <<>> DiG 9.2.4 <<>> mikrocom.com.ua ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54198 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mikrocom.com.ua. IN A ;; AUTHORITY SECTION: com.ua. 10800 IN SOA ns.net.ua. domain-master.com.ua. 2006062813 14400 1800 604800 86400 ;; Query time: 42 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:55:49 2006 ;; MSG SIZE rcvd: 96 |
#dig mikrocom.com.ua ns
; <<>> DiG 9.2.4 <<>> mikrocom.com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64382 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;mikrocom.com.ua. IN NS ;; AUTHORITY SECTION: com.ua. 10782 IN SOA ns.net.ua. domain-master.com.ua. 2006062813 14400 1800 604800 86400 ;; Query time: 4 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:56:07 2006 ;; MSG SIZE rcvd: 90 |
#dig microcom.com.ua ns
; <<>> DiG 9.2.4 <<>> microcom.com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46074 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;microcom.com.ua. IN NS ;; ANSWER SECTION: microcom.com.ua. 173753 IN NS a.ns.microcom.com.ua. microcom.com.ua. 173753 IN NS b.ns.microcom.com.ua. ;; AUTHORITY SECTION: microcom.com.ua. 173753 IN NS b.ns.microcom.com.ua. microcom.com.ua. 173753 IN NS a.ns.microcom.com.ua. ;; ADDITIONAL SECTION: a.ns.microcom.com.ua. 953 IN A 195.95.210.3 b.ns.microcom.com.ua. 173753 IN A 195.68.210.40 ;; Query time: 34 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jun 28 13:56:17 2006 ;; MSG SIZE rcvd: 143 |
#dig mikrocom.com.ua ns @a.ns.microcom.com.ua. axfr
;; Warning, extra type option ;; Connection to 195.95.210.3#53(a.ns.microcom.com.ua.) for mikrocom.com.ua failed: connection refused. |
#dig mikrocom.com.ua @a.ns.microcom.com.ua. axfr
;; Connection to 195.95.210.3#53(a.ns.microcom.com.ua.) for mikrocom.com.ua failed: connection refused. |
#dig mikrocom.com.ua @b.ns.microcom.com.ua. axfr
;; Connection to 195.68.210.40#53(b.ns.microcom.com.ua.) for mikrocom.com.ua failed: connection refused. |
#telnet 195.68.210.40 22
Trying 195.68.210.40... Connected to 195.68.210.40. Escape character is '^]'. SSH-1.99-OpenSSH_3.5p1 FreeBSD-20030924 ^C Connection closed by foreign host. |
#nmap 195.68.210.40
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2006-06-28 13:58 EEST caught SIGINT signal, cleaning up |
#telnet 195.95.210.3 22
Trying 195.95.210.3... Connected to 195.95.210.3. Escape character is '^]'. SSH-1.99-OpenSSH_3.5p1 FreeBSD-20030201 ^C Connection closed by foreign host. |
#telnet 195.95.210.3 22
Trying 195.95.210.3... Connected to 195.95.210.3. Escape character is '^]'. SSH-1.99-OpenSSH_3.5p1 FreeBSD-20030201 user user Protocol mismatch. Connection closed by foreign host. |
#telnet 195.95.210.3 25
Trying 195.95.210.3... telnet: Unable to connect to remote host: Connection refused |
#telnet 195.95.210.3 80
Trying 195.95.210.3... Connected to 195.95.210.3. Escape character is '^]'. load HTTP/1.1 400 Bad Request ( The data is invalid. ) Via: 1.1 MEDUSA Connection: close Proxy-Connection: close Pragma: no-cache Cache-Control: no-cache ... <LI id=L_defaultr_8><B>Refresh page:</B> Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion. <LI id=L_defaultr_9><B>Check spelling:</B> Check that you typed the Web page address correctly. The address may have been mistyped. <LI id=L_defaultr_10><B>Access from a link:</B> If there is a link to the page you are looking for, try accessing the page from that link. </UL> <HR color=#c0c0c0 noShade> <P id=L_defaultr_11>Technical Information (for support personnel)</P> <UL> <LI id=L_defaultr_12>Error Code: 400 Bad Request. The data is invalid. (13) </UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML> Connection closed by foreign host. |
#[root@linux1:user]# telnet 195.95.210.3 110
Trying 195.95.210.3... telnet: Unable to connect to remote host: Connection refused |
#telnet 195.95.210.3 25
Trying 195.95.210.3... telnet: Unable to connect to remote host: Connection refused |
#nmap 195.68.210.40
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2006-06-28 14:02 EEST Interesting ports on b.ns.microcom.com.ua (195.68.210.40): (The 1646 ports scanned but not shown below are in state: closed) PORT STATE SERVICE 21/tcp filtered ftp 22/tcp open ssh 25/tcp open smtp 80/tcp open http 110/tcp open pop3 135/tcp filtered msrpc ... 873/tcp open rsync 993/tcp open imaps 995/tcp open pop3s 1720/tcp filtered H.323/Q.931 1723/tcp filtered pptp 1755/tcp filtered wms 3128/tcp open squid-http 5432/tcp open postgres 7070/tcp filtered realserver Nmap run completed -- 1 IP address (1 host up) scanned in 125.543 seconds |
#nmap 195.68.210.40 > /home/user/microcom_list_port.txt
|
#rsync -?
rsync: -?: unknown option rsync error: syntax or usage error (code 1) at main.c(1084) |
#rsync 195.68.210.40
rsync version 2.6.3 protocol version 28 Copyright (C) 1996-2004 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm. ... --bwlimit=KBPS limit I/O bandwidth, KBytes per second --write-batch=FILE write a batch to FILE --read-batch=FILE read a batch from FILE --checksum-seed=NUM set block/file checksum seed -4, --ipv4 prefer IPv4 -6, --ipv6 prefer IPv6 -h, --help show this help screen Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation See http://rsync.samba.org/ for updates, bug reports, and answers rsync error: syntax or usage error (code 1) at main.c(891) |
#rsync -4 195.68.210.40
rsync version 2.6.3 protocol version 28 Copyright (C) 1996-2004 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm. ... --bwlimit=KBPS limit I/O bandwidth, KBytes per second --write-batch=FILE write a batch to FILE --read-batch=FILE read a batch from FILE --checksum-seed=NUM set block/file checksum seed -4, --ipv4 prefer IPv4 -6, --ipv6 prefer IPv6 -h, --help show this help screen Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation See http://rsync.samba.org/ for updates, bug reports, and answers rsync error: syntax or usage error (code 1) at main.c(891) |
#ssh 195.68.210.40
The authenticity of host '195.68.210.40 (195.68.210.40)' can't be established. DSA key fingerprint is 2b:0c:82:6f:fb:e5:15:26:9f:e0:3b:5a:bc:6c:17:2f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '195.68.210.40' (DSA) to the list of known hosts. Password: Password: Password: root@195.68.210.40's password: Permission denied, please try again. root@195.68.210.40's password: Permission denied, please try again. root@195.68.210.40's password: Received disconnect from 195.68.210.40: 2: Too many authentication failures for root |
#vi /home/user/microcom_list_port.txt
|
#apt-cache search john
r-cran-car - GNU R Companion to Applied Regression by John Fox jedstate - Extended mind for John E. Davis' text editor jed libmath-numbercruncher-perl - Perl5 module with commonly needed Maths and Stats functions mserv - local centralised multiuser music server mpb-doc - MIT Photonic-Bands documentation mpb - MIT Photonic-Bands mpb-mpi - MIT Photonic-Bands, parallel (mpich) version gpredict - Satellite tracking program for GNOME tclx8.3-dev - Extended Tcl (TclX) version 8.3.5 -- TclX development package tclx8.3-doc - Extended Tcl (TclX) version 8.3.5 -- TclX manpages ... lg-issue106 - Issue 106 of the Linux Gazette. lg-issue109 - Issue 109 of the Linux Gazette. xmorph - digital image warp and morph (x11) xlife - John Conway's Game of Life, for X11 john - An active password cracking tool jzip - Text mode interpreter for Z-Code adventures, etc. W: Couldn't stat source package list http://debian.org.ua testing/updates/main Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://debian.org.ua testing/updates/contrib Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://debian.org.ua testing/updates/main Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://debian.org.ua testing/updates/contrib Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory) |
#apt-get install john
W: Couldn't stat source package list http://debian.org.ua testing/updates/main Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://debian.org.ua testing/updates/contrib Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory) Preconfiguring packages ... Selecting previously deselected package john. (Reading database ... 62930 files and directories currently installed.) Unpacking john (from .../j/john/john_1.6-33_i386.deb) ... Setting up john (1.6-33) ... W: Couldn't stat source package list http://debian.org.ua testing/updates/main Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://debian.org.ua testing/updates/contrib Packages (/var/lib/apt/lists/debian.org.ua_debian_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: You may want to run apt-get update to correct these problems |
#john -h
Unknown option: "-h" |
#john -?
Unknown option: "-?" |
#man john
|
#john 195.68.210.40
stat: 195.68.210.40: No such file or directory |
#john --help
Unknown option: "--help" |
#john
John the Ripper Version 1.6 Copyright (c) 1996-98 by Solar Designer Usage: john [OPTIONS] [PASSWORD-FILES] -single "single crack" mode -wordfile:FILE -stdin wordlist mode, read words from FILE or stdin -rules enable rules for wordlist mode -incremental[:MODE] incremental mode [using section MODE] -external:MODE external mode or word filter -stdout[:LENGTH] no cracking, just write words to stdout -restore[:FILE] restore an interrupted session [from FILE] -session:FILE set session file name to FILE -status[:FILE] print status of a session [from FILE] -makechars:FILE make a charset, FILE will be overwritten -show show cracked passwords -test perform a benchmark -users:[-]LOGIN|UID[,..] load this (these) user(s) only -groups:[-]GID[,..] load users of this (these) group(s) only -shells:[-]SHELL[,..] load users with this (these) shell(s) only -salts:[-]COUNT load salts with at least COUNT passwords only -format:NAME force ciphertext format NAME (DES/BSDI/MD5/BF/AFS/LM) -savemem:LEVEL enable memory saving, at LEVEL 1..3 |
#john show
stat: show: No such file or directory |
#john show 195.68.210.40
stat: show: No such file or directory |
#john show /etc/pa
pam.conf pam.d pango papersize passwd passwd- |
Время первой команды журнала | 12:35:09 2006- 6-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:14:25 2006- 6-28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 31.68 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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