/l3/users/clint/nt-lnet-2006-06-26/linux1.unix.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#dig mail.ru a
; <<>> DiG 9.2.4 <<>> mail.ru a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24495 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN A ;; ANSWER SECTION: mail.ru. 15396 IN A 194.67.57.26 ;; AUTHORITY SECTION: mail.ru. 15396 IN NS ns2.mail.ru. mail.ru. 15396 IN NS ns3.mail.ru. mail.ru. 15396 IN NS ns4.mail.ru. mail.ru. 15396 IN NS ns5.mail.ru. mail.ru. 15396 IN NS ns.mail.ru. mail.ru. 15396 IN NS ns1.mail.ru. ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:48:43 2006 ;; MSG SIZE rcvd: 148 |
#dig mail.ru ns
; <<>> DiG 9.2.4 <<>> mail.ru ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39646 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mail.ru. IN NS ;; ANSWER SECTION: mail.ru. 15377 IN NS ns.mail.ru. mail.ru. 15377 IN NS ns1.mail.ru. mail.ru. 15377 IN NS ns2.mail.ru. mail.ru. 15377 IN NS ns3.mail.ru. mail.ru. 15377 IN NS ns4.mail.ru. mail.ru. 15377 IN NS ns5.mail.ru. ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:49:03 2006 ;; MSG SIZE rcvd: 132 |
#dig 195.95.210.89 ns
; <<>> DiG 9.2.4 <<>> 195.95.210.89 ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 11298 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;195.95.210.89. IN NS ;; AUTHORITY SECTION: . 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006062701 1800 900 604800 86400 ;; Query time: 204 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:49:45 2006 ;; MSG SIZE rcvd: 106 |
#dig 195.95.210.89 a
; <<>> DiG 9.2.4 <<>> 195.95.210.89 a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55839 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;195.95.210.89. IN A ;; AUTHORITY SECTION: . 10785 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006062701 1800 900 604800 86400 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:50:00 2006 ;; MSG SIZE rcvd: 106 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50712 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86400 IN NS ho1.ns.com.ua. com.ua. 86400 IN NS ns-he.kolo.net. com.ua. 86400 IN NS ns.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85415 IN A 216.218.215.20 ns-he.kolo.net. 85415 IN A 216.218.215.2 ;; Query time: 41 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:50:40 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3805 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86348 IN NS ns.kolo.net. com.ua. 86348 IN NS ho1.ns.com.ua. com.ua. 86348 IN NS ns-he.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85363 IN A 216.218.215.20 ns-he.kolo.net. 85363 IN A 216.218.215.2 ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:32 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5247 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86347 IN NS ns.kolo.net. com.ua. 86347 IN NS ho1.ns.com.ua. com.ua. 86347 IN NS ns-he.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85362 IN A 216.218.215.20 ns-he.kolo.net. 85362 IN A 216.218.215.2 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:33 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39802 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86346 IN NS ho1.ns.com.ua. com.ua. 86346 IN NS ns-he.kolo.net. com.ua. 86346 IN NS ns.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85361 IN A 216.218.215.20 ns-he.kolo.net. 85361 IN A 216.218.215.2 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:33 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4433 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86345 IN NS ho1.ns.com.ua. com.ua. 86345 IN NS ns-he.kolo.net. com.ua. 86345 IN NS ns.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85360 IN A 216.218.215.20 ns-he.kolo.net. 85360 IN A 216.218.215.2 ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:35 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25799 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86344 IN NS ns.kolo.net. com.ua. 86344 IN NS ho1.ns.com.ua. com.ua. 86344 IN NS ns-he.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85359 IN A 216.218.215.20 ns-he.kolo.net. 85359 IN A 216.218.215.2 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:35 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61745 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86343 IN NS ns-he.kolo.net. com.ua. 86343 IN NS ns.kolo.net. com.ua. 86343 IN NS ho1.ns.com.ua. ;; ADDITIONAL SECTION: ns.kolo.net. 85358 IN A 216.218.215.20 ns-he.kolo.net. 85358 IN A 216.218.215.2 ;; Query time: 28 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:36 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29741 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86343 IN NS ho1.ns.com.ua. com.ua. 86343 IN NS ns-he.kolo.net. com.ua. 86343 IN NS ns.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85358 IN A 216.218.215.20 ns-he.kolo.net. 85358 IN A 216.218.215.2 ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:37 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19739 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86340 IN NS ns-he.kolo.net. com.ua. 86340 IN NS ns.kolo.net. com.ua. 86340 IN NS ho1.ns.com.ua. ;; ADDITIONAL SECTION: ns.kolo.net. 85355 IN A 216.218.215.20 ns-he.kolo.net. 85355 IN A 216.218.215.2 ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:40 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7061 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86339 IN NS ho1.ns.com.ua. com.ua. 86339 IN NS ns-he.kolo.net. com.ua. 86339 IN NS ns.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85354 IN A 216.218.215.20 ns-he.kolo.net. 85354 IN A 216.218.215.2 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:41 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18452 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86338 IN NS ns.kolo.net. com.ua. 86338 IN NS ho1.ns.com.ua. com.ua. 86338 IN NS ns-he.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85353 IN A 216.218.215.20 ns-he.kolo.net. 85353 IN A 216.218.215.2 ;; Query time: 6 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:42 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41534 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86337 IN NS ns.kolo.net. com.ua. 86337 IN NS ho1.ns.com.ua. com.ua. 86337 IN NS ns-he.kolo.net. ;; ADDITIONAL SECTION: ns.kolo.net. 85352 IN A 216.218.215.20 ns-he.kolo.net. 85352 IN A 216.218.215.2 ;; Query time: 5 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:42 2006 ;; MSG SIZE rcvd: 122 |
#dig com.ua ns
; <<>> DiG 9.2.4 <<>> com.ua ns ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65493 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2 ;; QUESTION SECTION: ;com.ua. IN NS ;; ANSWER SECTION: com.ua. 86337 IN NS ns-he.kolo.net. com.ua. 86337 IN NS ns.kolo.net. com.ua. 86337 IN NS ho1.ns.com.ua. ;; ADDITIONAL SECTION: ns.kolo.net. 85352 IN A 216.218.215.20 ns-he.kolo.net. 85352 IN A 216.218.215.2 ;; Query time: 89 msec ;; SERVER: 192.168.15.254#53(192.168.15.254) ;; WHEN: Wed Jun 28 11:51:43 2006 ;; MSG SIZE rcvd: 122 |
#exit
exit |
$su
Password: |
#dpkg -L bind |grep /etc/
Package `bind' is not installed. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
#[root@linux1:user]# vi /etc/apt/sources.list
process ID: 5538 While opening file "/etc/apt/sources.list" dated: Wed Jun 28 09:43:48 2006 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two 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/apt/sources.list" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/apt/.sources.list.swp" to avoid this message. Swap file "/etc/apt/.sources.list.swp" already exists! Interrupt: Hit ENTER or type command to continue |
#killall apt-get
apt-get: no process killed |
#vi /etc/apt/sources.list
|
#[root@linux1:user]# apt-get install bind
Reading Package Lists... Done Building Dependency Tree... Done Suggested packages: bind-doc The following NEW packages will be installed: bind 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/898kB of archives. After unpacking 2109kB of additional disk space will be used. 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) Selecting previously deselected package bind. (Reading database ... 62886 files and directories currently installed.) Unpacking bind (from .../b/bind/bind_8.4.4-1_i386.deb) ... Setting up bind (8.4.4-1) ... Starting domain name service: named. 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 |
#dpkg -L bind |grep /etc/
/etc/bind /etc/bind/db.127 /etc/bind/db.0 /etc/bind/db.255 /etc/bind/db.local /etc/bind/db.root /etc/bind/named.conf /etc/bind/named.conf.local /etc/bind/named.conf.options /etc/init.d /etc/init.d/bind |
#vi /etc/bind/named.conf
|
#vi /etc/bind/
|
#vi /etc/bind/named.conf.options
|
#vi /etc/bind/named.conf.local
|
#vi /etc/bind/
|
#vi /etc/bind/named.conf
|
#vi /etc/bind/named.conf.options
|
#/etc/bind restart
bash: /etc/bind: is a directory |
#bi
bind bioradtopgm bison bison.yacc bitmap |
#bind restart
|
#dig @127.0.0.1 mail.u
|
#dig @127.0.0.1 mail.u
|
#dig @127.0.0.1 mail.ua
;; Warning: ID mismatch: expected ID 59507, got 59296 |
#vi /etc/bind/named.conf.options
|
#exit
exit |
#/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
|
#/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
|
#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
|
#/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:user]# exit
exit |
#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. |
Время первой команды журнала | 11:48:39 2006- 6-28 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:01:36 2006- 6-28 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.45 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.16 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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