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

Содержание

Журнал

Среда (04/04/12)

/dev/pts/0
10:01:08
#cd

прошло 62 минуты
11:03:53
#whereis bind
bind: /usr/share/man/man1/bind.1.gz
11:04:00
#whereis bind9
bind9: /usr/src/contrib/bind9
11:04:09
#cd /usr/ports/

11:04:22
#make search name='bind'
Port:   xapian-bindings-1.0.22
Path:   /usr/ports/databases/xapian-bindings
Info:   Bindings allowing Xapian to be used from various programming languages
Maint:  gslin@gslin.org
B-deps: libiconv-1.13.1_1 libxml2-2.7.8_1 pcre-8.12 php5-5.3.5 pkg-config-0.25_1 python26-2.6.6 ruby-1.8.7.302,1 xapian-core-1.0.22,1
R-deps: libiconv-1.13.1_1 libxml2-2.7.8_1 pcre-8.12 php5-5.3.5 pkg-config-0.25_1 python26-2.6.6 ruby-1.8.7.302,1 xapian-core-1.0.22,1
WWW:    http://www.xapian.org/
Port:   cbind-6
Path:   /usr/ports/devel/cbind
Info:   Translator for "thin" Ada bindings to C
...
Date:   2010-01-18
Reason: Has expired: has been broken for 3 months
Port:   dns/bind9
Moved:
Date:   2010-12-01
Reason: EOL - Update to dns/bind97 or dns/bind96
Port:   dns/bind95
Moved:
Date:   2011-01-01
Reason: Entered EOL 2010-09 - Update to dns/bind97 or dns/bind96
11:04:35
#cd /usr/ports/dns/bind95
bash: cd: /usr/ports/dns/bind95: No such file or directory
11:04:57
#cd /usr/ports/dns/bind
bind-tools/           bind94/               bind97/
bind9-sdb-ldap/       bind94-geoip/         bind98/
bind9-sdb-postgresql/ bind96/               bindgraph/
11:04:57
#cd /usr/ports/dns/bind
bind-tools/           bind94/               bind97/
bind9-sdb-ldap/       bind94-geoip/         bind98/
bind9-sdb-postgresql/ bind96/               bindgraph/
11:04:57
#cd /usr/ports/dns/bind98/

11:05:22
#make install clean
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
...
/usr/local/bin/nslookup
/usr/local/sbin/dnssec-settime
      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.
      For more information, and contact details about the security
      status of this software, see the following webpage:
https://www.isc.org/software/bind
===>  Cleaning for bind98-devel-9.8.0.b1
11:09:38
#ls -ld /etc/namedb
lrwxr-xr-x  1 root  wheel  23 Feb 18  2011 /etc/namedb -> ../var/named/etc/namedb
11:12:14
#cd /etc/namedb

11:12:40
#ls
dynamic         named.conf      slave
master          named.root      working
11:12:41
#ls la
ls: la: No such file or directory
11:12:47
#ls -la
total 30
drwxr-xr-x  6 root  wheel    512 Feb 18  2011 .
drwxr-xr-x  3 root  wheel    512 Feb 18  2011 ..
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 dynamic
drwxr-xr-x  2 root  wheel    512 Feb 18  2011 master
-rw-r--r--  1 root  wheel  13982 Feb 18  2011 named.conf
-rw-r--r--  1 root  wheel   3085 Feb 18  2011 named.root
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 slave
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 working
11:12:50
#vim named.conf
11:21:15
#; FORMERLY TERP.UMD.EDU

11:22:49
#vim named.conf
--- /tmp/l3-saved-1476.26476.32343	2012-04-04 12:22:57.000000000 +0300
+++ named.conf	2012-04-04 12:30:39.000000000 +0300
@@ -16,18 +16,10 @@
 	dump-file	"/var/dump/named_dump.db";
 	statistics-file	"/var/stats/named.stats";
 
-// 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; };
+	version		"Microsoft DNS v6.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
-// an IPv6 address, or the keyword "any".
-//	listen-on-v6	{ ::1; };
 
-// These zones are already covered by the empty zones listed below.
-// If you remove the related empty zones below, comment these lines out.
 	disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
 	disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
 	disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
@@ -35,11 +27,11 @@
 // 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
@@ -292,3 +284,8 @@
 	};
 };
 */
+zone "wilen.net.nt" {
+	type master;
+	file "/etc/namedb/master/wilen.net.nt";
+	allow-query { 192.168.13.0/24; };
+};
11:30:39
#vim named.conf
11:34:43
#zone "wilen.net.nt" {
dynamic         named.conf      slave
master          named.root      working
11:34:45
#cd master/

11:34:58
#touch wilen.net.nt

11:35:02
#vim wilen.net.nt
--- /tmp/l3-saved-1476.16964.13524	2012-04-04 12:35:05.000000000 +0300
+++ wilen.net.nt	2012-04-04 12:37:06.000000000 +0300
@@ -0,0 +1,3 @@
+$TTL 3600
+
+
11:37:06
#vim wilen.net.nt
--- /tmp/l3-saved-1476.444.4800	2012-04-04 12:37:21.000000000 +0300
+++ wilen.net.nt	2012-04-04 12:56:22.000000000 +0300
@@ -1,3 +1,14 @@
 $TTL 3600
 
+@	SOA	ns.wilen.net.nt. root.wilen.net.nt. (
+				1 ;version
+				24h ;update
+				1h ;repeat
+				7d ;expaire
+				1h ) ;TTL 
+@			NS	ns.wilen.net.nt.
+ns.wilen.net.nt.	A	192.168.13.21
+wilen.net.nt.		A	192.168.13.21
+			MX 5	mail.wilen.net.nt.	
+mail			A	192.168.13.22
 
прошло 19 минут
11:56:22
#vim /etc/rc.
11:56:22
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.14967.462	2012-04-04 12:57:02.000000000 +0300
+++ /etc/rc.conf	2012-04-04 12:57:48.000000000 +0300
@@ -22,3 +22,5 @@
 pf_enable="YES"
 pflog_enable="YES"
 pflog_logfile="/var/log/pf.log"
+named_enable="YES"
+named_flags="-u bind -g bind"
11:57:48
#vim /etc/rc.conf
11:58:30
#named
named               named-checkzone     named-journalprint  named.reload
named-checkconf     named-compilezone   named.reconfig
11:58:30
#named
named               named-checkzone     named-journalprint  named.reload
named-checkconf     named-compilezone   named.reconfig
11:58:30
#named-checkzone wilen.net.nt
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename
12:00:40
#named-checkzone -o wilen.net.nt
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename
12:00:49
#man named-checkzone
12:01:27
#rndc start
rndc: neither /etc/namedb/rndc.conf nor /etc/namedb/rndc.key was found
прошла 61 минута
13:03:22
#ls /etc/namedb
dynamic         named.conf      slave
master          named.root      working
13:03:44
#rndc start
rndc: neither /etc/namedb/rndc.conf nor /etc/namedb/rndc.key was found
13:03:54
#/usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root.  This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
13:07:05
#locate rndc
/usr/local/etc/rndc.conf.sample
/usr/local/etc/rndc.key
/usr/local/man/man5/rndc.conf.5.gz
/usr/local/man/man8/rndc-confgen.8.gz
/usr/local/man/man8/rndc.8.gz
/usr/local/sbin/rndc
/usr/local/sbin/rndc-confgen
/usr/local/share/doc/bind98/arm/man.rndc-confgen.html
/usr/local/share/doc/bind98/arm/man.rndc.conf.html
/usr/local/share/doc/bind98/arm/man.rndc.html
...
/usr/src/contrib/bind9/bin/rndc/util.c
/usr/src/contrib/bind9/bin/rndc/util.h
/usr/src/contrib/bind9/doc/arm/man.rndc-confgen.html
/usr/src/contrib/bind9/doc/arm/man.rndc.conf.html
/usr/src/contrib/bind9/doc/arm/man.rndc.html
/usr/src/usr.sbin/rndc
/usr/src/usr.sbin/rndc/Makefile
/usr/src/usr.sbin/rndc-confgen
/usr/src/usr.sbin/rndc-confgen/Makefile
/var/named/usr/local/etc/rndc.key
13:07:11
#locate rndc.key
/usr/local/etc/rndc.key
/var/named/usr/local/etc/rndc.key
13:07:16
#cp /usr/local/etc/rndc.key /etc/namedb/
cp: /usr/local/etc/rndc.key: No such file or directory
13:07:43
#cp /var/named/usr/local/etc/rndc.key /etc/namedb/
cp: /var/named/usr/local/etc/rndc.key: No such file or directory
13:08:10
#vim /var/named/usr/local/etc/rndc.key
13:08:23
#~
lrwxr-xr-x  1 root  wheel  20 Apr  4 12:09 /var/named/usr/local/etc/rndc.key -> /etc/namedb/rndc.key
13:08:30
#cd

13:09:27
#/etc/rc.d/named start
wrote key file "/var/named/etc/namedb/rndc.key"
/etc/namedb/named.conf:23: missing ';' before 'disable-empty-zone'
/etc/rc.d/named: ERROR: named-checkconf for $named_conf failed
13:09:35
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-1476.13042.18495	2012-04-04 14:09:57.000000000 +0300
+++ /etc/namedb/named.conf	2012-04-04 14:10:20.000000000 +0300
@@ -17,7 +17,7 @@
 	statistics-file	"/var/stats/named.stats";
 
 	listen-on	{ 127.0.0.1; };
-	version		"Microsoft DNS v6.1"
+	version		"Microsoft DNS v6.1";
 
 
 	disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
13:10:20
#/etc/rc.d/named start
Starting named.
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
/etc/rc.d/named: WARNING: failed to start named
13:10:24
#named -u bind -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
13:10:35
#named

13:10:43
#ps aux|grep named
root  17725  0.0  2.2 16420 11064  ??  Ss    2:10PM   0:00.09 named
root  17734  0.0  0.2  3500  1220   1  S+    2:10PM   0:00.00 grep named
13:10:49
#vim /etc/resolv.conf
--- /tmp/l3-saved-1476.13554.6927	2012-04-04 14:11:07.000000000 +0300
+++ /etc/resolv.conf	2012-04-04 14:11:22.000000000 +0300
@@ -1,2 +1,3 @@
 search net.nt unix.nt
+nameserver 127.0.0.1
 nameserver 192.168.13.253
13:11:22
#ping ya.ru
PING ya.ru (77.88.21.3): 56 data bytes
64 bytes from 77.88.21.3: icmp_seq=0 ttl=57 time=22.063 ms
64 bytes from 77.88.21.3: icmp_seq=1 ttl=57 time=23.095 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.063/22.579/23.095/0.516 ms
13:11:41
#vim /etc/resolv.conf
--- /tmp/l3-saved-1476.7222.9745	2012-04-04 14:11:44.000000000 +0300
+++ /etc/resolv.conf	2012-04-04 14:11:49.000000000 +0300
@@ -1,3 +1,3 @@
 search net.nt unix.nt
 nameserver 127.0.0.1
-nameserver 192.168.13.253
+#nameserver 192.168.13.253
13:11:49
#ping ya.ru
PING ya.ru (213.180.204.3): 56 data bytes
64 bytes from 213.180.204.3: icmp_seq=0 ttl=57 time=22.401 ms
^C
--- ya.ru ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 22.401/22.401/22.401/0.000 ms
13:11:51
#sockstat -r
sockstat: illegal option -- r
Usage: sockstat [-46cLlu] [-p ports] [-P protocols]
13:11:55
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     named      17725 20 tcp4   127.0.0.1:53          *:*
root     named      17725 21 tcp4   127.0.0.1:953         *:*
root     named      17725 512 udp4  127.0.0.1:53          *:*
root     sshd       1435  3  tcp4   192.168.13.21:22      192.168.13.253:34799
root     sendmail   1268  4  tcp4   127.0.0.1:25          *:*
root     sshd       1260  4  tcp4   *:22                  *:*
root     syslogd    966   7  udp4   *:514                 *:*
13:11:58
#vim /etc/namedb/named.conf
--- /tmp/l3-saved-1476.22862.9291	2012-04-04 14:12:29.000000000 +0300
+++ /etc/namedb/named.conf	2012-04-04 14:12:52.000000000 +0300
@@ -16,7 +16,7 @@
 	dump-file	"/var/dump/named_dump.db";
 	statistics-file	"/var/stats/named.stats";
 
-	listen-on	{ 127.0.0.1; };
+	listen-on	{ 127.0.0.1; 192.168.13.21; };
 	version		"Microsoft DNS v6.1";
 
 
13:12:52
#/etc/rc.d/named restart
Stopping named.
Starting named.
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
/etc/rc.d/named: WARNING: failed to start named
13:13:01
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sshd       1435  3  tcp4   192.168.13.21:22      192.168.13.253:34799
root     sendmail   1268  4  tcp4   127.0.0.1:25          *:*
root     sshd       1260  4  tcp4   *:22                  *:*
root     syslogd    966   7  udp4   *:514                 *:*
13:13:05
#named

13:13:09
#sockstat -4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     named      17946 20 tcp4   192.168.13.21:53      *:*
root     named      17946 21 tcp4   127.0.0.1:53          *:*
root     named      17946 22 tcp4   127.0.0.1:953         *:*
root     named      17946 512 udp4  192.168.13.21:53      *:*
root     named      17946 513 udp4  127.0.0.1:53          *:*
root     sshd       1435  3  tcp4   192.168.13.21:22      192.168.13.253:34799
root     sendmail   1268  4  tcp4   127.0.0.1:25          *:*
root     sshd       1260  4  tcp4   *:22                  *:*
root     syslogd    966   7  udp4   *:514                 *:*
13:13:18
#ping wilen.net.nt
ping: cannot resolve wilen.net.nt: Host name lookup failure
13:13:33
#tail -f -n 20 /var/log/messages
Apr  4 14:08:46 freebsd1 kernel: pf: dropping packet with ip options
Apr  4 14:09:35 freebsd1 root: /etc/rc.d/named: ERROR: named-checkconf for $named_conf failed
Apr  4 14:10:24 freebsd1 root: /etc/rc.d/named: WARNING: failed to start named
Apr  4 14:10:43 freebsd1 named[17725]: starting BIND 9.6.-ESV-R3
Apr  4 14:10:43 freebsd1 named[17725]: built with '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random' '--without-idn' '--without-libxml2'
Apr  4 14:10:43 freebsd1 named[17725]: command channel listening on 127.0.0.1#953
Apr  4 14:10:43 freebsd1 named[17725]: command channel listening on ::1#953
Apr  4 14:10:43 freebsd1 named[17725]: running
Apr  4 14:10:52 freebsd1 kernel: pf: dropping packet with ip options
Apr  4 14:12:57 freebsd1 kernel: pf: dropping packet with ip options
...
Apr  4 14:13:00 freebsd1 named[17725]: exiting
Apr  4 14:13:01 freebsd1 root: /etc/rc.d/named: WARNING: failed to start named
Apr  4 14:13:09 freebsd1 named[17946]: starting BIND 9.6.-ESV-R3
Apr  4 14:13:09 freebsd1 named[17946]: built with '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random' '--without-idn' '--without-libxml2'
Apr  4 14:13:09 freebsd1 named[17946]: command channel listening on 127.0.0.1#953
Apr  4 14:13:09 freebsd1 named[17946]: command channel listening on ::1#953
Apr  4 14:13:09 freebsd1 named[17946]: running
Apr  4 14:14:10 freebsd1 inetd[1311]: ssh/tcp: bind: Address already in use
Apr  4 14:15:03 freebsd1 kernel: pf: dropping packet with ip options
^C
13:15:24
#tail -f -n 20 /var/log/
auth.log        lastlog         messages.0.bz2  security        setuid.today
cron            lpd-errs        mount.today     sendmail.st     userlog
debug.log       maillog         pf.today        sendmail.st.0   wtmp
dmesg.today     messages        ppp.log         sendmail.st.1   xferlog
13:15:24
#tail -f -n 20 /var/log/debug.log
Apr  2 00:37:18 fbsd newsyslog[619]: logfile first created
^C
13:15:54
#cd

13:16:05
#ls /etc/namedb/
dynamic         named.conf      rndc.key        working
master          named.root      slave
13:16:09
#cd /etc/namedb

13:16:29
#vim rndc.key
13:16:33
#~
dynamic         named.conf      rndc.key        working
master          named.root      slave
13:16:34
#vim rndc.key
13:16:46
#~
        listen-on       { 127.0.0.1; 192.168.13.21; };
        version         "Microsoft DNS v6.1";
options {
"named.conf" 291 lines, 13598 characters
        disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
@
        disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0..
0.0.0.0.0.IP6.ARPA";
key "rndc-key" {empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0..
        algorithm hmac-md5;
        secret "AlvQ2g22Z3Jn1hjvpkGu/tbw3qe+Ztx7YX6B+RS8o68=";
};0.0.0.0.IP6.ARPA";
// 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
"named.conf" 294 lines, 13708 characters written
13:16:58
#rndc restart
rndc: 'restart' is not implemented
13:17:06
#rndc stop

13:17:11
#rndc start
rndc: connect failed: 127.0.0.1#953: connection refused
13:17:13
#ps axu|grep named

13:17:20
#rndc start
rndc: connect failed: 127.0.0.1#953: connection refused
13:17:22
#ps axu|grep named
root  18124  0.0  0.2  3500  1220   1  S+    2:17PM   0:00.00 grep named
13:17:25
#named -u named -b named
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: unknown option '-b'
13:17:37
#cat /etc/passwd
# $FreeBSD: src/etc/master.passwd,v 1.40.22.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
root:*:0:0:Charlie &:/root:/usr/local/bin/bash
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13:Games pseudo-user:/usr/games:/usr/sbin/nologin
...
bind:*:53:53:Bind Sandbox:/:/usr/sbin/nologin
proxy:*:62:62:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
_pflogd:*:64:64:pflogd privsep user:/var/empty:/usr/sbin/nologin
_dhcp:*:65:65:dhcp programs:/var/empty:/usr/sbin/nologin
uucp:*:66:66:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
pop:*:68:6:Post Office Owner:/nonexistent:/usr/sbin/nologin
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:*:1001:1001:User &:/home/user:/usr/local/bin/bash
dhcpd:*:136:136:DHCP Daemon:/nonexistent:/usr/sbin/nologin
13:17:42
#named -u bind -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
13:18:06
#named -u bind -g bind -4
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
13:18:10
#ls -la
total 32
drwxr-xr-x  6 root  wheel    512 Apr  4 14:16 .
drwxr-xr-x  3 root  wheel    512 Apr  4 14:09 ..
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 dynamic
drwxr-xr-x  2 root  wheel    512 Apr  4 12:56 master
-rw-r--r--  1 root  wheel  13708 Apr  4 14:16 named.conf
-rw-r--r--  1 root  wheel   3085 Feb 18  2011 named.root
-rw-------  1 bind  wheel     97 Apr  4 14:09 rndc.key
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 slave
drwxr-xr-x  2 bind  wheel    512 Feb 18  2011 working
13:18:20
#cd master/

13:18:22
#ls
empty.db                localhost-reverse.db
localhost-forward.db    wilen.net.nt
13:18:23
#ls -la
total 12
drwxr-xr-x  2 root  wheel  512 Apr  4 12:56 .
drwxr-xr-x  6 root  wheel  512 Apr  4 14:16 ..
-rw-r--r--  1 root  wheel  243 Feb 18  2011 empty.db
-rw-r--r--  1 root  wheel  265 Feb 18  2011 localhost-forward.db
-rw-r--r--  1 root  wheel  333 Feb 18  2011 localhost-reverse.db
-rw-r--r--  1 root  wheel  272 Apr  4 12:56 wilen.net.nt
13:18:24
#chown bind:bind wilen.net.nt

13:18:36