Журнал лабораторных работ

Содержание

Журнал

Четверг (12/20/12)

/dev/pts/0
15:47:44
#dig 253.13.168.192.in-addr.arpa ptr
; <<>> DiG 9.6.-ESV-R3 <<>> 253.13.168.192.in-addr.arpa ptr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31751
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;253.13.168.192.in-addr.arpa.   IN      PTR
;; ANSWER SECTION:
253.13.168.192.in-addr.arpa. 604800 IN  PTR     net.nt.
253.13.168.192.in-addr.arpa. 604800 IN  PTR     fobos.net.nt.
;; AUTHORITY SECTION:
168.192.in-addr.arpa.   604800  IN      NS      net.nt.
;; ADDITIONAL SECTION:
net.nt.                 3600    IN      A       192.168.13.253
net.nt.                 3600    IN      A       10.0.17.1
;; Query time: 1 msec
;; SERVER: 192.168.13.253#53(192.168.13.253)
;; WHEN: Thu Dec 20 16:48:13 2012
;; MSG SIZE  rcvd: 131
15:47:44
#dig 253.13.168.192.in-addr.arpa ptr
; <<>> DiG 9.6.-ESV-R3 <<>> 253.13.168.192.in-addr.arpa ptr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31751
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;253.13.168.192.in-addr.arpa.   IN      PTR
;; ANSWER SECTION:
253.13.168.192.in-addr.arpa. 604800 IN  PTR     net.nt.
253.13.168.192.in-addr.arpa. 604800 IN  PTR     fobos.net.nt.
;; AUTHORITY SECTION:
168.192.in-addr.arpa.   604800  IN      NS      net.nt.
;; ADDITIONAL SECTION:
net.nt.                 3600    IN      A       192.168.13.253
net.nt.                 3600    IN      A       10.0.17.1
;; Query time: 1 msec
;; SERVER: 192.168.13.253#53(192.168.13.253)
;; WHEN: Thu Dec 20 16:48:13 2012
;; MSG SIZE  rcvd: 131
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:48:13
#vim /etc/rc.conf
--- /tmp/l3-saved-3486.19612.6993	2012-12-20 16:52:08.000000000 +0200
+++ /etc/rc.conf	2012-12-20 16:53:18.000000000 +0200
@@ -31,3 +31,6 @@
 # natd_enable="YES"
 # natd_flags="-f /etc/natd.conf"
 # natd_interface="em0"
+named_enable="YES"
+named_flags="-u bind -g bind"
+
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:53:18
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-3486.3973.8990	2012-12-20 16:54:37.000000000 +0200
+++ /etc/namedb/named.conf	2012-12-20 16:57:17.000000000 +0200
@@ -19,7 +19,7 @@
 // If named is being used only as a local resolver, this is a safe default.
 // For named to be accessible to the network, comment this option, specify
 // the proper IP address, or delete this option.
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 192.168.13.21; 127.0.0.1; };
 
 // If you have IPv6 enabled on this system, uncomment this option for
 // use as a local resolver.  To give access to the network, specify
@@ -35,18 +35,18 @@
 // If you've got a DNS server around at your upstream provider, enter
 // its IP address here, and enable the line below.  This will make you
 // benefit from its cache, thus reduce overall DNS traffic in the Internet.
-/*
+
 	forwarders {
-		127.0.0.1;
+		192.168.13.253;
 	};
-*/
+
 
 // If the 'forwarders' clause is not empty the default is to 'forward first'
 // which will fall back to sending a query from your local server if the name
 // servers in 'forwarders' do not have the answer.  Alternatively you can
 // force your name server to never initiate queries of its own by enabling the
 // following line:
-//	forward only;
+	forward only;
 
 // If you wish to have forwarding configured automatically based on
 // the entries in /etc/resolv.conf, uncomment the following line and
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:17
#named -ubind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:30
#named -u ind -g bind
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
             [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
15:57:33
#shutdown -r now
Shutdown NOW!
shutdown: [pid 17604]
прошло >2 часов
/dev/pts/0
18:11:44
#pkg_info | grep send

18:13:35
#ls -lF /etc/rc.d/
total 396
-r-xr-xr-x  1 root  wheel    247 Feb 18  2011 DAEMON*
-r-xr-xr-x  1 root  wheel    419 Feb 18  2011 FILESYSTEMS*
-r-xr-xr-x  1 root  wheel    410 Feb 18  2011 LOGIN*
-r-xr-xr-x  1 root  wheel    358 Feb 18  2011 NETWORKING*
-r-xr-xr-x  1 root  wheel    250 Feb 18  2011 SERVERS*
-r-xr-xr-x  1 root  wheel   1159 Feb 18  2011 abi*
-r-xr-xr-x  1 root  wheel    959 Feb 18  2011 accounting*
-r-xr-xr-x  1 root  wheel    550 Feb 18  2011 addswap*
-r-xr-xr-x  1 root  wheel    299 Feb 18  2011 adjkerntz*
...
-r-xr-xr-x  1 root  wheel   1679 Feb 18  2011 watchdogd*
-r-xr-xr-x  1 root  wheel    835 Feb 18  2011 wpa_supplicant*
-r-xr-xr-x  1 root  wheel    642 Feb 18  2011 ypbind*
-r-xr-xr-x  1 root  wheel    808 Feb 18  2011 yppasswdd*
-r-xr-xr-x  1 root  wheel    727 Feb 18  2011 ypserv*
-r-xr-xr-x  1 root  wheel    752 Feb 18  2011 ypset*
-r-xr-xr-x  1 root  wheel    762 Feb 18  2011 ypupdated*
-r-xr-xr-x  1 root  wheel    771 Feb 18  2011 ypxfrd*
-r-xr-xr-x  1 root  wheel    884 Feb 18  2011 zfs*
-r-xr-xr-x  1 root  wheel    817 Feb 18  2011 zvol*
18:13:35
#ls -lF /etc/rc.d/
total 396
-r-xr-xr-x  1 root  wheel    247 Feb 18  2011 DAEMON*
-r-xr-xr-x  1 root  wheel    419 Feb 18  2011 FILESYSTEMS*
-r-xr-xr-x  1 root  wheel    410 Feb 18  2011 LOGIN*
-r-xr-xr-x  1 root  wheel    358 Feb 18  2011 NETWORKING*
-r-xr-xr-x  1 root  wheel    250 Feb 18  2011 SERVERS*
-r-xr-xr-x  1 root  wheel   1159 Feb 18  2011 abi*
-r-xr-xr-x  1 root  wheel    959 Feb 18  2011 accounting*
-r-xr-xr-x  1 root  wheel    550 Feb 18  2011 addswap*
-r-xr-xr-x  1 root  wheel    299 Feb 18  2011 adjkerntz*
...
-r-xr-xr-x  1 root  wheel   1679 Feb 18  2011 watchdogd*
-r-xr-xr-x  1 root  wheel    835 Feb 18  2011 wpa_supplicant*
-r-xr-xr-x  1 root  wheel    642 Feb 18  2011 ypbind*
-r-xr-xr-x  1 root  wheel    808 Feb 18  2011 yppasswdd*
-r-xr-xr-x  1 root  wheel    727 Feb 18  2011 ypserv*
-r-xr-xr-x  1 root  wheel    752 Feb 18  2011 ypset*
-r-xr-xr-x  1 root  wheel    762 Feb 18  2011 ypupdated*
-r-xr-xr-x  1 root  wheel    771 Feb 18  2011 ypxfrd*
-r-xr-xr-x  1 root  wheel    884 Feb 18  2011 zfs*
-r-xr-xr-x  1 root  wheel    817 Feb 18  2011 zvol*
18:13:35
#ls -lF /etc/rc.d/
total 396
-r-xr-xr-x  1 root  wheel    247 Feb 18  2011 DAEMON*
-r-xr-xr-x  1 root  wheel    419 Feb 18  2011 FILESYSTEMS*
-r-xr-xr-x  1 root  wheel    410 Feb 18  2011 LOGIN*
-r-xr-xr-x  1 root  wheel    358 Feb 18  2011 NETWORKING*
-r-xr-xr-x  1 root  wheel    250 Feb 18  2011 SERVERS*
-r-xr-xr-x  1 root  wheel   1159 Feb 18  2011 abi*
-r-xr-xr-x  1 root  wheel    959 Feb 18  2011 accounting*
-r-xr-xr-x  1 root  wheel    550 Feb 18  2011 addswap*
-r-xr-xr-x  1 root  wheel    299 Feb 18  2011 adjkerntz*
...
-r-xr-xr-x  1 root  wheel   1679 Feb 18  2011 watchdogd*
-r-xr-xr-x  1 root  wheel    835 Feb 18  2011 wpa_supplicant*
-r-xr-xr-x  1 root  wheel    642 Feb 18  2011 ypbind*
-r-xr-xr-x  1 root  wheel    808 Feb 18  2011 yppasswdd*
-r-xr-xr-x  1 root  wheel    727 Feb 18  2011 ypserv*
-r-xr-xr-x  1 root  wheel    752 Feb 18  2011 ypset*
-r-xr-xr-x  1 root  wheel    762 Feb 18  2011 ypupdated*
-r-xr-xr-x  1 root  wheel    771 Feb 18  2011 ypxfrd*
-r-xr-xr-x  1 root  wheel    884 Feb 18  2011 zfs*
-r-xr-xr-x  1 root  wheel    817 Feb 18  2011 zvol*
18:13:35
#ls -lF /etc/rc.d/
total 396
-r-xr-xr-x  1 root  wheel    247 Feb 18  2011 DAEMON*
-r-xr-xr-x  1 root  wheel    419 Feb 18  2011 FILESYSTEMS*
-r-xr-xr-x  1 root  wheel    410 Feb 18  2011 LOGIN*
-r-xr-xr-x  1 root  wheel    358 Feb 18  2011 NETWORKING*
-r-xr-xr-x  1 root  wheel    250 Feb 18  2011 SERVERS*
-r-xr-xr-x  1 root  wheel   1159 Feb 18  2011 abi*
-r-xr-xr-x  1 root  wheel    959 Feb 18  2011 accounting*
-r-xr-xr-x  1 root  wheel    550 Feb 18  2011 addswap*
-r-xr-xr-x  1 root  wheel    299 Feb 18  2011 adjkerntz*
...
-r-xr-xr-x  1 root  wheel   1679 Feb 18  2011 watchdogd*
-r-xr-xr-x  1 root  wheel    835 Feb 18  2011 wpa_supplicant*
-r-xr-xr-x  1 root  wheel    642 Feb 18  2011 ypbind*
-r-xr-xr-x  1 root  wheel    808 Feb 18  2011 yppasswdd*
-r-xr-xr-x  1 root  wheel    727 Feb 18  2011 ypserv*
-r-xr-xr-x  1 root  wheel    752 Feb 18  2011 ypset*
-r-xr-xr-x  1 root  wheel    762 Feb 18  2011 ypupdated*
-r-xr-xr-x  1 root  wheel    771 Feb 18  2011 ypxfrd*
-r-xr-xr-x  1 root  wheel    884 Feb 18  2011 zfs*
-r-xr-xr-x  1 root  wheel    817 Feb 18  2011 zvol*
18:14:05
#ls F /etc/rc.d/
ls: F: No such file or directory
/etc/rc.d/:
DAEMON                  ftpd                    mountcritremote         route6d
FILESYSTEMS             gbde                    mountd                  routed
LOGIN                   geli                    mountlate               routing
NETWORKING              geli2                   moused                  rpcbind
SERVERS                 gptboot                 mroute6d                rtadvd
abi                     gssd                    mrouted                 rtsold
accounting              hastd                   msgs                    rwho
addswap                 hcsecd                  named                   savecore
...
ddb                     ldconfig                powerd                  ypbind
defaultroute            local                   ppp                     yppasswdd
devd                    localpkg                pppoed                  ypserv
devfs                   lockd                   pwcheck                 ypset
dhclient                lpd                     quota                   ypupdated
dmesg                   mdconfig                random                  ypxfrd
dumpon                  mdconfig2               rarpd                   zfs
encswap                 mixer                   resolv                  zvol
fsck                    motd                    rfcomm_pppd_server
ftp-proxy               mountcritlocal          root
18:14:08
#ls - /etc/rc.d/
DAEMON*                 ftpd*                   mountcritremote*        route6d*
FILESYSTEMS*            gbde*                   mountd*                 routed*
LOGIN*                  geli*                   mountlate*              routing*
NETWORKING*             geli2*                  moused*                 rpcbind*
SERVERS*                gptboot*                mroute6d*               rtadvd*
abi*                    gssd*                   mrouted*                rtsold*
accounting*             hastd*                  msgs*                   rwho*
addswap*                hcsecd*                 named*                  savecore*
adjkerntz*              hostapd*                natd*                   sdpd*
amd*                    hostid*                 netif*                  securelevel*
...
ddb*                    ldconfig*               powerd*                 ypbind*
defaultroute*           local*                  ppp*                    yppasswdd*
devd*                   localpkg*               pppoed*                 ypserv*
devfs*                  lockd*                  pwcheck*                ypset*
dhclient*               lpd*                    quota*                  ypupdated*
dmesg*                  mdconfig*               random*                 ypxfrd*
dumpon*                 mdconfig2*              rarpd*                  zfs*
encswap*                mixer*                  resolv*                 zvol*
fsck*                   motd*                   rfcomm_pppd_server*
ftp-proxy*              mountcritlocal*         root*
18:14:08
#ls - /etc/rc.d/
DAEMON*                 ftpd*                   mountcritremote*        route6d*
FILESYSTEMS*            gbde*                   mountd*                 routed*
LOGIN*                  geli*                   mountlate*              routing*
NETWORKING*             geli2*                  moused*                 rpcbind*
SERVERS*                gptboot*                mroute6d*               rtadvd*
abi*                    gssd*                   mrouted*                rtsold*
accounting*             hastd*                  msgs*                   rwho*
addswap*                hcsecd*                 named*                  savecore*
adjkerntz*              hostapd*                natd*                   sdpd*
amd*                    hostid*                 netif*                  securelevel*
...
ddb*                    ldconfig*               powerd*                 ypbind*
defaultroute*           local*                  ppp*                    yppasswdd*
devd*                   localpkg*               pppoed*                 ypserv*
devfs*                  lockd*                  pwcheck*                ypset*
dhclient*               lpd*                    quota*                  ypupdated*
dmesg*                  mdconfig*               random*                 ypxfrd*
dumpon*                 mdconfig2*              rarpd*                  zfs*
encswap*                mixer*                  resolv*                 zvol*
fsck*                   motd*                   rfcomm_pppd_server*
ftp-proxy*              mountcritlocal*         root*
18:14:08
#ls - /etc/rc.d/
DAEMON*                 ftpd*                   mountcritremote*        route6d*
FILESYSTEMS*            gbde*                   mountd*                 routed*
LOGIN*                  geli*                   mountlate*              routing*
NETWORKING*             geli2*                  moused*                 rpcbind*
SERVERS*                gptboot*                mroute6d*               rtadvd*
abi*                    gssd*                   mrouted*                rtsold*
accounting*             hastd*                  msgs*                   rwho*
addswap*                hcsecd*                 named*                  savecore*
adjkerntz*              hostapd*                natd*                   sdpd*
amd*                    hostid*                 netif*                  securelevel*
...
ddb*                    ldconfig*               powerd*                 ypbind*
defaultroute*           local*                  ppp*                    yppasswdd*
devd*                   localpkg*               pppoed*                 ypserv*
devfs*                  lockd*                  pwcheck*                ypset*
dhclient*               lpd*                    quota*                  ypupdated*
dmesg*                  mdconfig*               random*                 ypxfrd*
dumpon*                 mdconfig2*              rarpd*                  zfs*
encswap*                mixer*                  resolv*                 zvol*
fsck*                   motd*                   rfcomm_pppd_server*
ftp-proxy*              mountcritlocal*         root*
18:14:08
#ls - /etc/rc.d/
DAEMON*                 ftpd*                   mountcritremote*        route6d*
FILESYSTEMS*            gbde*                   mountd*                 routed*
LOGIN*                  geli*                   mountlate*              routing*
NETWORKING*             geli2*                  moused*                 rpcbind*
SERVERS*                gptboot*                mroute6d*               rtadvd*
abi*                    gssd*                   mrouted*                rtsold*
accounting*             hastd*                  msgs*                   rwho*
addswap*                hcsecd*                 named*                  savecore*
adjkerntz*              hostapd*                natd*                   sdpd*
amd*                    hostid*                 netif*                  securelevel*
...
ddb*                    ldconfig*               powerd*                 ypbind*
defaultroute*           local*                  ppp*                    yppasswdd*
devd*                   localpkg*               pppoed*                 ypserv*
devfs*                  lockd*                  pwcheck*                ypset*
dhclient*               lpd*                    quota*                  ypupdated*
dmesg*                  mdconfig*               random*                 ypxfrd*
dumpon*                 mdconfig2*              rarpd*                  zfs*
encswap*                mixer*                  resolv*                 zvol*
fsck*                   motd*                   rfcomm_pppd_server*
ftp-proxy*              mountcritlocal*         root*
18:14:12
#netstat -nlp
netstat: option requires an argument -- p
usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface [-abdhntW] [-f address_family]
               [-M core] [-N system]
       netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany]
       netstat -s [-s] [-z] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface -s [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -m [-M core] [-N system]
       netstat -B [-I interface]
       netstat -r [-AanW] [-f address_family] [-M core] [-N system]
       netstat -rs [-s] [-M core] [-N system]
       netstat -g [-W] [-f address_family] [-M core] [-N system]
       netstat -gs [-s] [-f address_family] [-M core] [-N system]
18:14:12
#netstat -nlp
netstat: option requires an argument -- p
usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface [-abdhntW] [-f address_family]
               [-M core] [-N system]
       netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany]
       netstat -s [-s] [-z] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface -s [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -m [-M core] [-N system]
       netstat -B [-I interface]
       netstat -r [-AanW] [-f address_family] [-M core] [-N system]
       netstat -rs [-s] [-M core] [-N system]
       netstat -g [-W] [-f address_family] [-M core] [-N system]
       netstat -gs [-s] [-f address_family] [-M core] [-N system]
18:14:12
#netstat -nlp
netstat: option requires an argument -- p
usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface [-abdhntW] [-f address_family]
               [-M core] [-N system]
       netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany]
       netstat -s [-s] [-z] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface -s [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -m [-M core] [-N system]
       netstat -B [-I interface]
       netstat -r [-AanW] [-f address_family] [-M core] [-N system]
       netstat -rs [-s] [-M core] [-N system]
       netstat -g [-W] [-f address_family] [-M core] [-N system]
       netstat -gs [-s] [-f address_family] [-M core] [-N system]
18:14:12
#netstat -nlp
netstat: option requires an argument -- p
usage: netstat [-AaLnSWx] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface [-abdhntW] [-f address_family]
               [-M core] [-N system]
       netstat -w wait [-I interface] [-d] [-M core] [-N system] [-q howmany]
       netstat -s [-s] [-z] [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -i | -I interface -s [-f protocol_family | -p protocol]
               [-M core] [-N system]
       netstat -m [-M core] [-N system]
       netstat -B [-I interface]
       netstat -r [-AanW] [-f address_family] [-M core] [-N system]
       netstat -rs [-s] [-M core] [-N system]
       netstat -g [-W] [-f address_family] [-M core] [-N system]
       netstat -gs [-s] [-f address_family] [-M core] [-N system]
18:14:55
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:14:55
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:14:55
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:14:55
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:15:05
#sockstat -n
sockstat: illegal option -- n
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:11
#sockstat -nlp
sockstat: illegal option -- n
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:11
#sockstat -nlp
sockstat: illegal option -- n
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:11
#sockstat -nlp
sockstat: illegal option -- n
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:11
#sockstat -nlp
sockstat: illegal option -- n
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:13
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:15:13
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:15:13
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:15:13
#sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  3  dgram  -> /var/run/logpriv
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  23 tcp6   ::1:953               *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
smmsp    sendmail   1327  3  dgram  -> /var/run/log
...
root     xinetd     1165  7  dgram  -> /var/run/logpriv
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   4  dgram  /var/run/log
root     syslogd    946   5  dgram  /var/run/logpriv
root     syslogd    946   6  dgram  /var/run/log
root     syslogd    946   7  dgram  /var/named/var/run/log
root     syslogd    946   8  udp6   *:514                 *:*
root     syslogd    946   9  udp4   *:514                 *:*
root     devd       776   4  stream /var/run/devd.pipe
root     moused     745   4  stream /var/run/devd.pipe
18:15:16
#sockstat 4
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
18:15:19
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
root     sendmail   1323  4  tcp4   127.0.0.1:25          *:*
root     sshd       1315  4  tcp4   *:22                  *:*
root     xinetd     1165  0  tcp4   *:19                  *:*
root     xinetd     1165  6  tcp4   *:7                   *:*
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   9  udp4   *:514                 *:*
18:15:19
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       2522  3  tcp4   192.168.13.21:22      192.168.15.101:49173
bind     named      2442  20 tcp4   192.168.13.21:53      *:*
bind     named      2442  21 tcp4   127.0.0.1:53          *:*
bind     named      2442  22 tcp4   127.0.0.1:953         *:*
bind     named      2442  512 udp4  192.168.13.21:53      *:*
bind     named      2442  513 udp4  127.0.0.1:53          *:*
root     sendmail   1323  4  tcp4   127.0.0.1:25          *:*
root     sshd       1315  4  tcp4   *:22                  *:*
root     xinetd     1165  0  tcp4   *:19                  *:*
root     xinetd     1165  6  tcp4   *:7                   *:*
root     xinetd     1165  8  tcp4   *:23                  *:*
root     syslogd    946   9  udp4   *:514                 *:*

Статистика

Время первой команды журнала15:47:44 2012-12-20
Время последней команды журнала18:15:19 2012-12-20
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %43.56
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.22
Количество командных строк в единицу времени, команда/мин 7.54
Частота использования команд
named32|===============================| 31.37%
vim27|==========================| 26.47%
sockstat16|===============| 15.69%
shutdown10|=========| 9.80%
ls9|========| 8.82%
netstat4|===| 3.92%
dig2|=| 1.96%
grep1|| 0.98%
pkg_info1|| 0.98%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$