/l3/users/12-03-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 |
|
#telnet 192.168.16.1 25
ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ... Escape character is '^]'. 220 ns.romzes.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Thu, 15 Mar 2007 16:02:34 +0200; (No UCE/UBE) logging access from: linux1.local(OK)-linux1.local [192.168.16.1] ^] telnet> q Connection closed. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#vim local-host-names
2c2 < --- > romzes.net.nt |
#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... The following file(s) have changed: ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail reload
Reloading Mail Transport Agent configuration: sendmail. |
#telnet 192.168.16.1 25
ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Trying 192.168.16.1... Connected to 192.168.16.1. Escape character is '^]'. 220 ns.romzes.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Thu, 15 Mar 2007 16:03:11 +0200; (No UCE/UBE) logging access from: linux1.local(OK)-linux1.local [192.168.16.1] HELO zlo ... RCPT TO : user@ns.romzes.net.nt 553 5.1.8 user@ns.romzes.net.nt... Domain of sender address billgates@microsoft.com does not exist ^] telnet> q Connection closed. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#telnet 192.168.16.1 25
Escape character is '^]'. 220 ns.romzes.net.nt ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Thu, 15 Mar 2007 16:04:18 +0200; (No UCE/UBE) logging access from: linux1.local(OK)-linux1.local [192.168.16.1] MAIL FROM: root@ns.romzes.net.nt 503 5.0.0 Polite people say HELO first HELO zlo 250 ns.romzes.net.nt Hello linux1.local [192.168.16.1], pleased to meet you MAIL FROM: root@ns.romzes.net.nt 250 2.1.0 root@ns.romzes.net.nt... Sender ok RCPT TO : user@ns.romzes.net.nt 250 2.1.5 user@ns.romzes.net.nt... Recipient ok ... . 250 2.0.0 l2FE4IDm018573 Message accepted for delivery ^] telnet> q Connection closed. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#tail /var/log/mail.log
ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Mar 15 16:01:50 linux1 sm-mta[17275]: restarting /usr/sbin/sendmail-mta due to signal Mar 15 16:01:50 linux1 sm-mta[18380]: starting daemon (8.13.8): SMTP+queueing@00:10:00 ... Mar 15 16:04:06 linux1 sm-mta[18536]: l2FE3BFq018536: ruleset=check_rcpt, arg1=user@ns.romzes.net.nt, relay=linux1.local [192.168.16.1], reject=553 5.1.8 user@ns.romzes.net.nt... Domain of sender address billgates@microsoft.com does not exist Mar 15 16:04:17 linux1 sm-mta[18536]: l2FE3BFq018536: lost input channel from linux1.local [192.168.16.1] to MTA-v4 after rcpt Mar 15 16:04:17 linux1 sm-mta[18536]: l2FE3BFq018536: from=billgates@microsoft.com, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA-v4, relay=linux1.local [192.168.16.1] Mar 15 16:04:55 linux1 sm-mta[18573]: l2FE4IDm018573: from=root@ns.romzes.net.nt, size=17, class=0, nrcpts=1, msgid=<200703151404.l2FE4IDm018573@ns.romzes.net.nt>, proto=SMTP, daemon=MTA-v4, relay=linux1.local [192.168.16.1] Mar 15 16:04:55 linux1 sm-mta[18591]: l2FE4IDm018573: to=user@ns.romzes.net.nt, ctladdr=root@ns.romzes.net.nt (0/0), delay=00:00:10, xdelay=00:00:00, mailer=local, pri=30393, dsn=2.0.0, stat=Sent y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#mail -u user
"/var/mail/user": 5 messages 1 new 5 unread U 1 arpwatch@host191. Mon Mar 12 14:50 22/825 new station (linux2.net.nt) eth0 U 2 arpwatch@host191. Mon Mar 12 16:23 22/874 new station (linux1-2.local) eth0 U 3 arpwatch@host191. Mon Mar 12 16:23 22/823 new station eth0 U 4 arpwatch@host191. Wed Mar 14 09:44 22/827 new station (linux2.local) eth0 >N 5 root@host191.net. Thu Mar 15 16:04 12/447 & Message 5: From root@host191.net.nt Thu Mar 15 16:04:55 2007 Date: Thu, 15 Mar 2007 16:04:18 +0200 From: root <root@host191.net.nt> To: undisclosed-recipients:; TEST ftom telnet & q Saved 1 message in /root/mbox Held 4 messages in /var/mail/user y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#host 192.168.16.1
1.16.168.192.in-addr.arpa has no PTR record |
#killall named
ii libgsf-1-common 1.14.3-1 Structured File Library - common files ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) |
#killall named
|
#vim /etc/bind/named.conf
30c30 < zone "1.16.168.192.in-addr.arpa" { --- > zone "16.168.192.in-addr.arpa" { |
#/etc/init.d/bind9 start
Starting domain name service...: bind. |
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3883 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:06:02 2007 ;; MSG SIZE rcvd: 73 |
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3883 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:06:02 2007 ;; MSG SIZE rcvd: 73 |
#ip addr
ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:14 brd ff:ff:ff:ff:ff:ff inet 192.168.16.1/24 brd 192.168.16.255 scope global eth0 inet6 fe80::201:2ff:feb4:6114/64 scope link valid_lft forever preferred_lft forever 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:09 brd ff:ff:ff:ff:ff:ff 4: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 |
#ip addr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:14 brd ff:ff:ff:ff:ff:ff inet 192.168.16.1/24 brd 192.168.16.255 scope global eth0 inet6 fe80::201:2ff:feb4:6114/64 scope link valid_lft forever preferred_lft forever 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:01:02:b4:61:09 brd ff:ff:ff:ff:ff:ff 4: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0 |
#killall named
ii libgsf-1-common 1.14.3-1 Structured File Library - common files ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) |
#killall named
|
#vim /etc/bind/db.192
3c3 < 2007031500 ; Serial --- > 2007031501 ; Serial 10,11c10,11 < 1.16.168.192. IN PTR ns < 1.16.168.192. IN PTR --- > 1 IN PTR ns > 1 IN PTR |
#rndc reload
rndc: connect failed: 127.0.0.1#953: connection refused |
#rndc reload
rndc: connect failed: 127.0.0.1#953: connection refused |
#vim /etc/bind/named.conf
|
#vim /etc/bind/named.conf.options
20c20 < allow-transfer { 192.168.16.15; }; --- > allow-transfer { 192.168.16.0; }; |
#tail /var/log/daemon.log
Mar 15 16:05:56 linux1 named[18677]: /etc/bind/db.192:10: ignoring out-of-zone data (1.16.168.192) Mar 15 16:05:56 linux1 named[18677]: /etc/bind/db.192:11: ignoring out-of-zone data (1.16.168.192) Mar 15 16:05:56 linux1 named[18677]: dns_rdata_fromtext: /etc/bind/db.192:11: near eol: unexpected end of input Mar 15 16:05:56 linux1 named[18677]: zone 1.16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.192: unexpected end of input Mar 15 16:05:56 linux1 named[18677]: zone 255.in-addr.arpa/IN: loaded serial 1 Mar 15 16:05:56 linux1 named[18677]: zone localhost/IN: loaded serial 1 Mar 15 16:05:56 linux1 named[18677]: zone romzes.net.nt/IN: loaded serial 2007031500 Mar 15 16:05:56 linux1 named[18677]: running Mar 15 16:05:56 linux1 named[18677]: zone romzes.net.nt/IN: sending notifies (serial 2007031500) Mar 15 16:05:56 linux1 named[18677]: client 192.168.16.1#32835: received notify for zone 'romzes.net.nt' |
#/etc/init.d/bind9 restart
ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ... ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused failed! Starting domain name service...: bind failed! y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#tail /var/log/daemon.log
Mar 15 16:05:56 linux1 named[18677]: /etc/bind/db.192:10: ignoring out-of-zone data (1.16.168.192) Mar 15 16:05:56 linux1 named[18677]: /etc/bind/db.192:11: ignoring out-of-zone data (1.16.168.192) Mar 15 16:05:56 linux1 named[18677]: dns_rdata_fromtext: /etc/bind/db.192:11: near eol: unexpected end of input Mar 15 16:05:56 linux1 named[18677]: zone 1.16.168.192.in-addr.arpa/IN: loading master file /etc/bind/db.192: unexpected end of input Mar 15 16:05:56 linux1 named[18677]: zone 255.in-addr.arpa/IN: loaded serial 1 Mar 15 16:05:56 linux1 named[18677]: zone localhost/IN: loaded serial 1 Mar 15 16:05:56 linux1 named[18677]: zone romzes.net.nt/IN: loaded serial 2007031500 Mar 15 16:05:56 linux1 named[18677]: running Mar 15 16:05:56 linux1 named[18677]: zone romzes.net.nt/IN: sending notifies (serial 2007031500) Mar 15 16:05:56 linux1 named[18677]: client 192.168.16.1#32835: received notify for zone 'romzes.net.nt' |
#less /var/log/daemon.log
|
#/etc/init.d/bind9 start
Starting domain name service...: bind. |
#ls -l /etc/bind/
db.0 db.255 db.romzes.net.nt named.conf.local zones.rfc1918 db.127 db.empty db.root named.conf.options db.192 db.local named.conf rndc.key |
#netstat -lnp | grep :53
ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library ... tcp6 0 0 :::53 :::* LISTEN 18920/named udp 0 0 192.168.16.1:53 0.0.0.0:* 18920/named udp 0 0 127.0.0.1:53 0.0.0.0:* 18920/named udp 0 0 0.0.0.0:5353 0.0.0.0:* 2608/avahi-daemon: udp6 0 0 :::53 :::* 18920/named y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49903 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:08:23 2007 ;; MSG SIZE rcvd: 73 |
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49903 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:08:23 2007 ;; MSG SIZE rcvd: 73 |
#host 192.168.15.1
ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ;; connection timed out; no servers could be reached |
#host 192.168.15.1
;; connection timed out; no servers could be reached |
#/etc/init.d/bind9 stop
Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused failed! |
#netstat -lnp | grep :53
ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library ... tcp6 0 0 :::53 :::* LISTEN 18920/named udp 0 0 192.168.16.1:53 0.0.0.0:* 18920/named udp 0 0 127.0.0.1:53 0.0.0.0:* 18920/named udp 0 0 0.0.0.0:5353 0.0.0.0:* 2608/avahi-daemon: udp6 0 0 :::53 :::* 18920/named y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#pkill -9 named
|
#netstat -lnp | grep :53
tcp 0 0 127.0.0.1:53945 0.0.0.0:* LISTEN 2425/python udp 0 0 0.0.0.0:5353 0.0.0.0:* 2608/avahi-daemon: |
#pkill -9 avahi
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#ps aux | grep named
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) bind 19040 0.3 0.2 30360 2944 ? Ssl 16:09 0:00 /usr/sbin/named -u bind root 19062 0.0 0.0 3740 760 pts/23 R+ 16:09 0:00 grep named |
#ps aux | grep named
bind 19040 0.3 0.2 30360 2944 ? Ssl 16:09 0:00 /usr/sbin/named -u bind root 19062 0.0 0.0 3740 760 pts/23 R+ 16:09 0:00 grep named |
#/etc/init.d/bind9 start
Starting domain name service...: bind. |
#netstat -lnp | grep :53
tcp 0 0 192.168.16.1:53 0.0.0.0:* LISTEN 19040/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 19040/named tcp 0 0 127.0.0.1:53945 0.0.0.0:* LISTEN 2425/python tcp6 0 0 :::53 :::* LISTEN 19040/named udp 0 0 192.168.16.1:53 0.0.0.0:* 19040/named udp 0 0 127.0.0.1:53 0.0.0.0:* 19040/named udp6 0 0 :::53 :::* 19040/named |
#dig romzes.net.nt ns
;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52573 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;romzes.net.nt. IN NS ;; ANSWER SECTION: romzes.net.nt. 604800 IN NS ns.romzes.net.nt. ;; ADDITIONAL SECTION: ns.romzes.net.nt. 604800 IN A 192.168.16.1 ;; Query time: 32 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:09:48 2007 ;; MSG SIZE rcvd: 64 y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#dig mx romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx romzes.net.nt ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41431 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 23 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:10:07 2007 ;; MSG SIZE rcvd: 73 |
#dig mx romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx romzes.net.nt ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41431 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 23 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:10:07 2007 ;; MSG SIZE rcvd: 73 |
#host 192.168.16.1
ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ... ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Host 1.16.168.192.in-addr.arpa not found: 2(SERVFAIL) y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#less /var/log/daemon.log
|
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37112 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:12:19 2007 ;; MSG SIZE rcvd: 73 |
#dig mx @127.0.0.1 romzes.net.nt
; <<>> DiG 9.3.4 <<>> mx @127.0.0.1 romzes.net.nt ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37112 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;romzes.net.nt. IN MX ;; AUTHORITY SECTION: romzes.net.nt. 604800 IN SOA romzes.net.nt. romzes. 2007031500 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:12:19 2007 ;; MSG SIZE rcvd: 73 |
#vim /etc/bind/db.192
8,9c8,9 < ; < @ IN NS ns --- > > NS ns 11c11 < 1 IN PTR --- > 2 IN PTR |
#vim /etc/bind/db.romzes.net.nt
|
#vim /etc/bind/db.192
11c11 < 2 IN PTR --- > 1 IN PTR |
#/etc/init.d/bind9 start
Starting domain name service...: bind failed! |
#/etc/init.d/bind9 restart
ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ... ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused failed! Starting domain name service...: bind failed! y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#less /var/log/daemon.log
|
#rndc
Usage: rndc [-c config] [-s server] [-p port] [-k key-file ] [-y key] [-V] command command is one of the following: reload Reload configuration file and zones. reload zone [class [view]] Reload a single zone. refresh zone [class [view]] Schedule immediate maintenance for a zone. retransfer zone [class [view]] Retransfer a single zone without checking serial number. ... notrace Set debugging level to 0. flush Flushes all of the server's caches. flush [view] Flushes the server's cache for a view. flushname name [view] Flush the given name from the server's cache(s) status Display status of the server. recursing Dump the queries that are currently recursing (named.recursing) *restart Restart the server. * == not yet implemented Version: 9.3.4 |
#rndc | less
|
#mcedit /etc/bind/db.192
$TTL 604800 2007031501 ; Serial 86400 ; Retry 604800 ) ; Negative Cache TTL NS ns ┌────────────────── Выход ──────────────────┐ │ │ └───────────────────────────────────────────┘ |
#mcedit /etc/bind/db.192
$TTL 604800 2007031501 ; Serial 86400 ; Retry 604800 ) ; Negative Cache TTL NS ns ┌────────────────── Выход ──────────────────┐ │ │ └───────────────────────────────────────────┘ |
#netstat -lnp | grep :53
tcp 0 0 192.168.16.1:53 0.0.0.0:* LISTEN 19040/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 19040/named tcp 0 0 127.0.0.1:53945 0.0.0.0:* LISTEN 2425/python tcp6 0 0 :::53 :::* LISTEN 19040/named udp 0 0 192.168.16.1:53 0.0.0.0:* 19040/named udp 0 0 127.0.0.1:53 0.0.0.0:* 19040/named udp6 0 0 :::53 :::* 19040/named |
#cp -r /etc/bind/
ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ... ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library db.0 db.255 db.romzes.net.nt named.conf.local zones.rfc1918 db.127 db.empty db.root named.conf.options db.192 db.local named.conf rndc.key y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#cp -r /etc/bind/ /tmp
|
#ls -l /tmp/bind/
итого 16 -rw-r--r-- 1 root root 237 2007-03-15 16:12 db.0 -rw-r--r-- 1 root root 271 2007-03-15 16:12 db.127 -rw-r--r-- 1 root root 189 2007-03-15 16:12 db.192 -rw-r--r-- 1 root root 237 2007-03-15 16:12 db.255 -rw-r--r-- 1 root root 353 2007-03-15 16:12 db.empty -rw-r--r-- 1 root root 256 2007-03-15 16:12 db.local -rw-r--r-- 1 root root 207 2007-03-15 16:12 db.romzes.net.nt -rw-r--r-- 1 root root 1507 2007-03-15 16:12 db.root -rw-r--r-- 1 root root 1779 2007-03-15 16:12 named.conf -rw-r--r-- 1 root root 165 2007-03-15 16:12 named.conf.local -rw-r--r-- 1 root root 767 2007-03-15 16:12 named.conf.options -rw-r----- 1 root root 77 2007-03-15 16:12 rndc.key -rw-r--r-- 1 root root 1317 2007-03-15 16:12 zones.rfc1918 |
#apt-get --purge remove bind9
ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐd9* обновлено 0, ÑÑÑановлено 0 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 111 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 0РаÑÑ Ð¸Ð²Ð¾Ð². ... УдалÑеÑÑÑ Ð¿Ð°ÐºÐµÑ bind9... Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused failed! УдалÑÑÑÑÑ ÑÐ°Ð¹Ð»Ñ ÐºÐ¾Ð½ÑигÑÑаÑии пакеÑа bind9... dpkg: пÑедÑпÑеждение -- пÑи Ñдалении пакеÑа bind9 не пÑÑÑой каÑалог /etc/bind не ÑдалÑн. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#killall named
named: no process killed |
#rm -rf /etc/bind
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#/etc/init.d/bind9 start
ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) bash: /etc/init.d/bind9: No such file or directory |
#/etc/init.d/bind9 start
bash: /etc/init.d/bind9: No such file or directory |
#mcedit /etc/bind/db.192
$TTL 604800 2007031501 ; Serial 86400 ; Retry 604800 ) ; Negative Cache TTL NS ns ┌────────────────── Выход ──────────────────┐ │ │ └───────────────────────────────────────────┘ |
#mcedit /etc/bind/db.192
$TTL 604800 2007031501 ; Serial 86400 ; Retry 604800 ) ; Negative Cache TTL NS ns ┌────────────────── Выход ──────────────────┐ │ │ └───────────────────────────────────────────┘ |
#dpkg -l | grep rndc
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#apt-get install bind9
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Предлагаемые пакеты: bind9-doc НОВЫЕ пакеты, которые будут установлены: bind9 обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 111 пакетов не обновлено. Необходимо скачать 0B/294kB архивов. После распаковки объем занятого дискового пространства возрастёт на 782kB. Выбор ранее не выбранного пакета bind9. (Чтение базы данных... на данный момент установлено 80176 файлов и каталогов.) Распаковывается пакет bind9 (из файла .../bind9_1%3a9.3.4-2_i386.deb)... Настраивается пакет bind9 (9.3.4-2) ... wrote key file "/etc/bind/rndc.key" Starting domain name service...: bind. |
#cd /etc/bind/
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#ls
db.0 db.255 db.local named.conf named.conf.options zones.rfc1918 db.127 db.empty db.root named.conf.local rndc.key |
#/etc/init.d/bind9 restart
ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ... ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Stopping domain name service...: bind. Starting domain name service...: bind. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#netstat -lnp | grep :53
tcp 0 0 192.168.16.1:53 0.0.0.0:* LISTEN 19630/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 19630/named tcp 0 0 127.0.0.1:53945 0.0.0.0:* LISTEN 2425/python tcp6 0 0 :::53 :::* LISTEN 19630/named udp 0 0 192.168.16.1:53 0.0.0.0:* 19630/named udp 0 0 127.0.0.1:53 0.0.0.0:* 19630/named udp6 0 0 :::53 :::* 19630/named |
#/etc/init.d/bind9 stop
Stopping domain name service...: bind. |
#netstat -lnp | grep :53
ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ... ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library tcp 0 0 127.0.0.1:53945 0.0.0.0:* LISTEN 2425/python y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#cp /tmp/bind/
ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ... ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library db.0 db.255 db.romzes.net.nt named.conf.local zones.rfc1918 db.127 db.empty db.root named.conf.options db.192 db.local named.conf rndc.key y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#cp /tmp/bind/db.romzes.net.nt /etc/bind/
|
#cp /tmp/bind/db.192 /etc/bind/
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#cp -f /tmp/bind/named.conf* /etc/bind/
ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ... ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#vim named.conf
|
#/etc/init.d/bind9 start
ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ... ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) ii libguile-ltdl-1 1.6.8-6 Guile's patched version of libtool's libltdl ii libgutenprint2 5.0.0-3 runtime for the Gutenprint printer driver library Starting domain name service...: bind. y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#ping mail.ru
ping: unknown host mail.ru |
#vim /etc/resolv.conf
|
#less /var/log/daemon.log
|
#rndc
ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) rndc rndc-confgen |
#rndc reload
server reload successful |
#rndc
rndc rndc-confgen |
#rndc reload
server reload successful |
#dig @127.0.0.1 mail.ru
. 518400 IN NS M.ROOT-SERVERS.NET. . 518400 IN NS A.ROOT-SERVERS.NET. . 518400 IN NS B.ROOT-SERVERS.NET. . 518400 IN NS C.ROOT-SERVERS.NET. . 518400 IN NS D.ROOT-SERVERS.NET. . 518400 IN NS E.ROOT-SERVERS.NET. . 518400 IN NS F.ROOT-SERVERS.NET. . 518400 IN NS G.ROOT-SERVERS.NET. . 518400 IN NS H.ROOT-SERVERS.NET. . 518400 IN NS I.ROOT-SERVERS.NET. . 518400 IN NS J.ROOT-SERVERS.NET. . 518400 IN NS K.ROOT-SERVERS.NET. ;; Query time: 51 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Mar 15 16:17:17 2007 ;; MSG SIZE rcvd: 236 y manipula ii python-sip4 4.4.5-4 Python/C++ bindings generator runt ime librar ii python-vte 0.12.2-4 Python bindings for the VTE widget set |
#rndc relstart
ii libgsm1 1.0.10-13 Shared libraries for GSM speech compressor ii libgssapi2 0.10-4 A mechanism-switch gssapi library ii libgstreamer-plugins 0.10.10-4 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.10-2 Core GStreamer libraries and elements ii libgtk2-perl 1.140-1 Perl interface to the 2.x series of the Gimp Toolkit lib ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface library ii libgtk2.0-bin 2.8.20-5 The programs for the GTK+ graphical user interface libra ii libgtk2.0-common 2.8.20-5 Common files for the GTK+ graphical user interface libra ii libgtkhtml2-0 2.11.0-3 HTML rendering/editing library - runtime files. (for GNO ii libgtkhtml3.8-15 3.12.1-2 HTML rendering/editing library - runtime files ii libgtkmm-2.4-1c2a 2.8.8-1 C++ wrappers for GTK+ 2.4 (shared libraries) ii libgtksourceview-com 1.8.3-1 common files for the GTK+ syntax highlighting widget ii libgtksourceview1.0- 1.8.3-1 shared libraries for the GTK+ syntax highlighting widget ii libgtkspell0 2.0.10-3+b1 a spell-checking addon for GTK's TextView widget ii libgtop2-7 2.14.4-3 gtop system monitoring library ii libgtop2-common 2.14.4-3 common files for the gtop system monitoring library ii libgucharmap4 1.6.0-1 Unicode browser widget library (shared library) rndc: 'relstart' failed: unknown command |
#rndc relstart
rndc: 'relstart' failed: unknown command |
Время первой команды журнала | 16:01:52 2007- 3-15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:17:16 2007- 3-15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 6.56 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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