/l3/users/30-03-2008/fbsd-net/fbsd2.unix.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 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 |
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.22 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:3e:00:00:02 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:01:02 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:3e:00:02:02 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re0, link-type EN10MB (Ethernet), capture size 96 bytes 15:01:28.920159 IP fbsd2.unix.nt.ssh > 192.168.16.204.vpad: P 786831575:786831767(192) ack 2065065990 win 33304 <nop,nop,timestamp 59832099 20029495> 15:01:28.920446 IP 192.168.16.204.vpad > fbsd2.unix.nt.ssh: . ack 192 win 33304 <nop,nop,timestamp 20029497 59832099> 15:01:29.926359 arp who-has fbsd2.unix.nt tell 192.168.16.23 15:01:29.926388 arp reply fbsd2.unix.nt is-at 00:16:3e:00:00:02 (oui Unknown) 15:01:29.927397 IP 192.168.16.23.50596 > fbsd2.unix.nt.domain: 11183+ A? fbsd2.unix.nt. (31) 15:01:29.927423 IP fbsd2.unix.nt > 192.168.16.23: ICMP fbsd2.unix.nt udp port domain unreachable, length 36 15:01:29.928276 IP 192.168.16.23.53772 > fbsd2.unix.nt.domain: 11183+ A? fbsd2.unix.nt. (31) 15:01:29.928293 IP fbsd2.unix.nt > 192.168.16.23: ICMP fbsd2.unix.nt udp port domain unreachable, length 36 ... 15:01:34.324707 IP fbsd2.unix.nt.ssh > 192.168.16.204.vpad: P 2208:2496(288) ack 1 win 33304 <nop,nop,timestamp 59835107 20029859> 15:01:34.324860 IP 192.168.16.204.vpad > fbsd2.unix.nt.ssh: . ack 2496 win 33304 <nop,nop,timestamp 20030038 59835107> 15:01:36.121680 IP fbsd2.unix.nt.ssh > 192.168.16.204.vpad: P 2496:2784(288) ack 1 win 33304 <nop,nop,timestamp 59836107 20030038> 15:01:36.121769 IP 192.168.16.204.vpad > fbsd2.unix.nt.ssh: . ack 2784 win 33304 <nop,nop,timestamp 20030218 59836107> 15:01:37.918539 IP fbsd2.unix.nt.ssh > 192.168.16.204.vpad: P 2784:3072(288) ack 1 win 33304 <nop,nop,timestamp 59837107 20030218> 15:01:37.918721 IP 192.168.16.204.vpad > fbsd2.unix.nt.ssh: . ack 3072 win 33304 <nop,nop,timestamp 20030398 59837107> ^C 24 packets captured 27 packets received by filter 0 packets dropped by kernel |
#whereis bind
bind: /usr/share/man/man1/bind.1.gz /usr/src/contrib/bind9/lib/bind |
#whereis bind
bind: /usr/share/man/man1/bind.1.gz /usr/src/contrib/bind9/lib/bind |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#make install clean bind
make: don't know how to make install. Stop |
#makebind
make: don't know how to make bind. Stop |
#/usr/src/contrib/bind9/lib/bind
bash: /usr/src/contrib/bind9/lib/bind: is a directory |
#/usr/src/contrib/bind9/lib/bind
bash: /usr/src/contrib/bind9/lib/bind: is a directory |
#/usr/src/contrib/bind9/lib/bind
bash: /usr/src/contrib/bind9/lib/bind: is a directory |
#/usr/src/contrib/bind9/lib/bind
bash: /usr/src/contrib/bind9/lib/bind: is a directory |
#/usr/src/contrib/bind9/lib/bind
bash: /usr/src/contrib/bind9/lib/bind: is a directory |
#cd /usr/src/contrib/bind9/lib/bind
|
#ls
Makefile.in api configure include isc nameser port_before.h.in README bsd configure.in inet make port resolv aclocal.m4 config.h.in dst irs mkinstalldirs port_after.h.in |
#ls
Makefile.in api configure include isc nameser port_before.h.in README bsd configure.in inet make port resolv aclocal.m4 config.h.in dst irs mkinstalldirs port_after.h.in |
#ls
Makefile.in api configure include isc nameser port_before.h.in README bsd configure.in inet make port resolv aclocal.m4 config.h.in dst irs mkinstalldirs port_after.h.in |
#ls
Makefile.in api configure include isc nameser port_before.h.in README bsd configure.in inet make port resolv aclocal.m4 config.h.in dst irs mkinstalldirs port_after.h.in |
#ls
Makefile.in api configure include isc nameser port_before.h.in README bsd configure.in inet make port resolv aclocal.m4 config.h.in dst irs mkinstalldirs port_after.h.in |
#install
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... |
#make install
make: don't know how to make install. Stop |
#make install
make: don't know how to make install. Stop |
#make install
make: don't know how to make install. Stop |
#make install
make: don't know how to make install. Stop |
#make
make: no target to make. |
#ll
bash: ll: command not found |
#ls- l
bash: ls-: command not found |
#ls -l
total 1126 -rw-r--r-- 1 root wheel 5073 Dec 13 2006 Makefile.in -rw-r--r-- 1 root wheel 117 Sep 19 2004 README -rw-r--r-- 1 root wheel 31 Mar 17 2005 aclocal.m4 -rw-r--r-- 1 root wheel 44 Dec 13 2006 api drwxr-xr-x 2 root wheel 512 Mar 15 13:20 bsd -rw-r--r-- 1 root wheel 1325 Dec 13 2006 config.h.in -rwxr-xr-x 1 root wheel 1005692 Dec 13 2006 configure -rw-r--r-- 1 root wheel 66089 Dec 13 2006 configure.in drwxr-xr-x 2 root wheel 512 Mar 15 13:20 dst drwxr-xr-x 4 root wheel 512 Mar 15 13:20 include drwxr-xr-x 2 root wheel 512 Mar 15 13:20 inet drwxr-xr-x 2 root wheel 1536 Mar 15 13:20 irs drwxr-xr-x 2 root wheel 1024 Mar 15 13:20 isc drwxr-xr-x 2 root wheel 512 Mar 15 13:20 make -rwxr-xr-x 1 root wheel 727 Sep 19 2004 mkinstalldirs drwxr-xr-x 2 root wheel 512 Mar 15 13:20 nameser drwxr-xr-x 3 root wheel 512 Mar 15 13:20 port -rw-r--r-- 1 root wheel 10385 Dec 13 2006 port_after.h.in -rw-r--r-- 1 root wheel 2566 Dec 13 2006 port_before.h.in drwxr-xr-x 2 root wheel 512 Mar 15 13:20 resolv |
#whereis named
named: /usr/sbin/named /usr/share/man/man8/named.8.gz /usr/src/usr.sbin/named |
#whereis named
named: /usr/sbin/named /usr/share/man/man8/named.8.gz /usr/src/usr.sbin/named |
#whereis named
named: /usr/sbin/named /usr/share/man/man8/named.8.gz /usr/src/usr.sbin/named |
#ee /etc/rc.conf
--- /tmp/l3-saved-48319.32056.29917 2008-04-03 15:05:49.000000000 +0000 +++ /etc/rc.conf 2008-04-03 15:08:32.000000000 +0000 @@ -13,6 +13,8 @@ gdm_enable=1 ifconfig_re0="inet 192.168.16.22 netmask 255.255.255.0" defaultrouter="192.168.16.254" -hostname="fbsd2.unix.nt" +hostname="life.unix.nt" xinetd_enable=1 knockd_enable="yes" +named_enable="yes" +named_flags="-u bind -g bind" |
#ee /etc/rc.conf
--- /tmp/l3-saved-48319.32056.29917 2008-04-03 15:05:49.000000000 +0000 +++ /etc/rc.conf 2008-04-03 15:08:32.000000000 +0000 @@ -13,6 +13,8 @@ gdm_enable=1 ifconfig_re0="inet 192.168.16.22 netmask 255.255.255.0" defaultrouter="192.168.16.254" -hostname="fbsd2.unix.nt" +hostname="life.unix.nt" xinetd_enable=1 knockd_enable="yes" +named_enable="yes" +named_flags="-u bind -g bind" |
#ee /etc/rc.conf
--- /tmp/l3-saved-48319.32056.29917 2008-04-03 15:05:49.000000000 +0000 +++ /etc/rc.conf 2008-04-03 15:08:32.000000000 +0000 @@ -13,6 +13,8 @@ gdm_enable=1 ifconfig_re0="inet 192.168.16.22 netmask 255.255.255.0" defaultrouter="192.168.16.254" -hostname="fbsd2.unix.nt" +hostname="life.unix.nt" xinetd_enable=1 knockd_enable="yes" +named_enable="yes" +named_flags="-u bind -g bind" |
#tail /var/log/messages
Apr 3 15:08:43 fbsd2 gdm-binary[49399]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49399 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 0 1) Apr 3 15:08:43 fbsd2 gdm-binary[49400]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49400 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 1 1) Apr 3 15:08:44 fbsd2 kernel: pid 49397 (gdmgreeter), uid 92: exited on signal 6 (core dumped) Apr 3 15:08:57 fbsd2 kernel: pid 49410 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 kernel: pid 49420 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 gdm-binary[4393]: WARNING: úÁ×ÅÒÛÅÎÉÅ ÒÁÂÏÔÙ X-ÓÅÒ×ÅÒÁ ÐÒÏÉÓÈÏÄÉÌÏ ÏËÏÌÏ 6 ÒÁÚ ÚÁ ÐÏÓÌÅÄÎÉÅ 90 ÓÅËÕÎÄ. ðÏÈÏÖÅ, ÞÔÏ Ó ÎÉÍ ÞÔÏ-ÔÏ ÎÅ ÔÁË. óÌÅÄÕÀÝÁÑ ÐÏÐÙÔËÁ ÚÁÐÕÓËÁ X-ÓÅÒ×ÅÒÁ ÎÁ ÄÉÓÐÌÅÅ :0 ÏÔÌÏÖÅÎÁ ÎÁ 2 ÍÉÎÕÔÙ. |
#tail /var/log/messages
Apr 3 15:08:43 fbsd2 gdm-binary[49399]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49399 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 0 1) Apr 3 15:08:43 fbsd2 gdm-binary[49400]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49400 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 1 1) Apr 3 15:08:44 fbsd2 kernel: pid 49397 (gdmgreeter), uid 92: exited on signal 6 (core dumped) Apr 3 15:08:57 fbsd2 kernel: pid 49410 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 kernel: pid 49420 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 gdm-binary[4393]: WARNING: úÁ×ÅÒÛÅÎÉÅ ÒÁÂÏÔÙ X-ÓÅÒ×ÅÒÁ ÐÒÏÉÓÈÏÄÉÌÏ ÏËÏÌÏ 6 ÒÁÚ ÚÁ ÐÏÓÌÅÄÎÉÅ 90 ÓÅËÕÎÄ. ðÏÈÏÖÅ, ÞÔÏ Ó ÎÉÍ ÞÔÏ-ÔÏ ÎÅ ÔÁË. óÌÅÄÕÀÝÁÑ ÐÏÐÙÔËÁ ÚÁÐÕÓËÁ X-ÓÅÒ×ÅÒÁ ÎÁ ÄÉÓÐÌÅÅ :0 ÏÔÌÏÖÅÎÁ ÎÁ 2 ÍÉÎÕÔÙ. |
#tail /var/log/messages
Apr 3 15:08:43 fbsd2 gdm-binary[49399]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49399 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 0 1) Apr 3 15:08:43 fbsd2 gdm-binary[49400]: Gtk-WARNING: Ignoring the separator setting Apr 3 15:08:43 fbsd2 kernel: pid 49400 (gdm-binary), uid 92: exited on signal 6 Apr 3 15:08:43 fbsd2 gdm-binary[4393]: WARNING: failsafe dialog failed (inhibitions: 1 1) Apr 3 15:08:44 fbsd2 kernel: pid 49397 (gdmgreeter), uid 92: exited on signal 6 (core dumped) Apr 3 15:08:57 fbsd2 kernel: pid 49410 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 kernel: pid 49420 (gdmlogin), uid 92: exited on signal 6 (core dumped) Apr 3 15:09:14 fbsd2 gdm-binary[4393]: WARNING: úÁ×ÅÒÛÅÎÉÅ ÒÁÂÏÔÙ X-ÓÅÒ×ÅÒÁ ÐÒÏÉÓÈÏÄÉÌÏ ÏËÏÌÏ 6 ÒÁÚ ÚÁ ÐÏÓÌÅÄÎÉÅ 90 ÓÅËÕÎÄ. ðÏÈÏÖÅ, ÞÔÏ Ó ÎÉÍ ÞÔÏ-ÔÏ ÎÅ ÔÁË. óÌÅÄÕÀÝÁÑ ÐÏÐÙÔËÁ ÚÁÐÕÓËÁ X-ÓÅÒ×ÅÒÁ ÎÁ ÄÉÓÐÌÅÅ :0 ÏÔÌÏÖÅÎÁ ÎÁ 2 ÍÉÎÕÔÙ. |
#ee /etc/passwd
|
#ee /etc/passwd
|
#ps aux | grep named
|
#ps aux | grep named
|
#ps aux | grep named
|
#ps aux | grep named
|
#ps wux | grep named
root 49472 0.0 0.1 1600 1008 p1 S+ 3:11PM 0:00.01 grep named |
#ps wux | grep named
root 49472 0.0 0.1 1600 1008 p1 S+ 3:11PM 0:00.01 grep named |
#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}] named: extra command line arguments |
#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}] named: extra command line arguments |
#named -g bind
03-Apr-2008 15:12:54.668 starting BIND 9.3.4-P1 -g -u bind 03-Apr-2008 15:12:54.739 loading configuration from '/etc/namedb/named.conf' 03-Apr-2008 15:12:54.748 listening on IPv4 interface lo0, 127.0.0.1#53 03-Apr-2008 15:12:54.763 none:0: open: /etc/namedb/rndc.key: file not found 03-Apr-2008 15:12:54.763 couldn't add command channel 127.0.0.1#953: file not found 03-Apr-2008 15:12:54.763 none:0: open: /etc/namedb/rndc.key: file not found 03-Apr-2008 15:12:54.763 couldn't add command channel ::1#953: file not found 03-Apr-2008 15:12:54.763 ignoring config file logging statement due to -g option 03-Apr-2008 15:12:54.771 zone 0.in-addr.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.775 zone 10.in-addr.arpa/IN: loaded serial 42 ... 03-Apr-2008 15:12:54.913 zone c.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.917 zone d.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.920 zone e.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.929 zone f.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.937 zone ip6.int/IN: loaded serial 42 03-Apr-2008 15:12:54.941 zone localhost/IN: loaded serial 42 03-Apr-2008 15:12:54.944 running ^C03-Apr-2008 15:13:14.870 shutting down 03-Apr-2008 15:13:14.870 no longer listening on 127.0.0.1#53 03-Apr-2008 15:13:14.875 exiting |
#named -g bind
03-Apr-2008 15:12:54.668 starting BIND 9.3.4-P1 -g -u bind 03-Apr-2008 15:12:54.739 loading configuration from '/etc/namedb/named.conf' 03-Apr-2008 15:12:54.748 listening on IPv4 interface lo0, 127.0.0.1#53 03-Apr-2008 15:12:54.763 none:0: open: /etc/namedb/rndc.key: file not found 03-Apr-2008 15:12:54.763 couldn't add command channel 127.0.0.1#953: file not found 03-Apr-2008 15:12:54.763 none:0: open: /etc/namedb/rndc.key: file not found 03-Apr-2008 15:12:54.763 couldn't add command channel ::1#953: file not found 03-Apr-2008 15:12:54.763 ignoring config file logging statement due to -g option 03-Apr-2008 15:12:54.771 zone 0.in-addr.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.775 zone 10.in-addr.arpa/IN: loaded serial 42 ... 03-Apr-2008 15:12:54.913 zone c.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.917 zone d.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.920 zone e.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.929 zone f.e.f.ip6.arpa/IN: loaded serial 42 03-Apr-2008 15:12:54.937 zone ip6.int/IN: loaded serial 42 03-Apr-2008 15:12:54.941 zone localhost/IN: loaded serial 42 03-Apr-2008 15:12:54.944 running ^C03-Apr-2008 15:13:14.870 shutting down 03-Apr-2008 15:13:14.870 no longer listening on 127.0.0.1#53 03-Apr-2008 15:13:14.875 exiting |
#ps waux | grep named
root 49579 0.0 0.1 1552 600 p1 R+ 3:13PM 0:00.00 grep named |
#ee /etc/rc.conf
--- /tmp/l3-saved-48319.17183.25710 2008-04-03 15:15:03.000000000 +0000 +++ /etc/rc.conf 2008-04-03 15:15:30.000000000 +0000 @@ -17,4 +17,3 @@ xinetd_enable=1 knockd_enable="yes" named_enable="yes" -named_flags="-u bind -g bind" |
#ps waux | grep named
|
#ps waux | grep named
|
#cd ..
|
#cd /etc/
|
#cd /etc/
|
#cd /etc/
|
#cd /etc/
|
#cd /etc/
|
#cd /etc/
|
#cd /etc/
|
#ps waux | grep named
bind 50164 0,0 0,3 4428 3544 ?? Ss 15:16 0:00,10 /usr/sbin/named -t /var/named -u bind root 50532 0,0 0,1 1528 600 p1 RL+ 15:17 0:00,01 grep named |
#ps waux | grep named
bind 50164 0,0 0,3 4428 3544 ?? Ss 15:16 0:00,10 /usr/sbin/named -t /var/named -u bind root 50532 0,0 0,1 1528 600 p1 RL+ 15:17 0:00,01 grep named |
#ps waux | grep named
bind 50164 0,0 0,3 4428 3544 ?? Ss 15:16 0:00,10 /usr/sbin/named -t /var/named -u bind root 50532 0,0 0,1 1528 600 p1 RL+ 15:17 0:00,01 grep named |
#ee /etc/namedb/named.conf
--- /tmp/l3-saved-50510.2701.15944 2008-04-03 15:17:46.000000000 +0000 +++ /etc/namedb/named.conf 2008-04-03 15:25:30.000000000 +0000 @@ -18,7 +18,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 { 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 @@ -44,7 +44,7 @@ // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { - 127.0.0.1; + 192.168.16.254; }; */ /* |
#ee /etc/namedb/named.conf
--- /tmp/l3-saved-50510.2701.15944 2008-04-03 15:17:46.000000000 +0000 +++ /etc/namedb/named.conf 2008-04-03 15:25:30.000000000 +0000 @@ -18,7 +18,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 { 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 @@ -44,7 +44,7 @@ // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { - 127.0.0.1; + 192.168.16.254; }; */ /* |
#ee /etc/namedb/named.conf
--- /tmp/l3-saved-50510.2701.15944 2008-04-03 15:17:46.000000000 +0000 +++ /etc/namedb/named.conf 2008-04-03 15:25:30.000000000 +0000 @@ -18,7 +18,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 { 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 @@ -44,7 +44,7 @@ // benefit from its cache, thus reduce overall DNS traffic in the Internet. /* forwarders { - 127.0.0.1; + 192.168.16.254; }; */ /* |
#LANG=C
|
#LANG=C
|
#LANG=C
|
#dig @127.0.0.1 ya.ru
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 ya.ru ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35230 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 7200 IN A 213.180.204.8 ;; AUTHORITY SECTION: ya.ru. 7200 IN NS ns1.yandex.ru. ya.ru. 7200 IN NS ns5.yandex.ru. ;; Query time: 398 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Apr 3 15:26:09 2008 ;; MSG SIZE rcvd: 82 |
#dig @127.0.0.1 ya.ru
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 ya.ru ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35230 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 7200 IN A 213.180.204.8 ;; AUTHORITY SECTION: ya.ru. 7200 IN NS ns1.yandex.ru. ya.ru. 7200 IN NS ns5.yandex.ru. ;; Query time: 398 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Apr 3 15:26:09 2008 ;; MSG SIZE rcvd: 82 |
#dig @127.0.0.1 ya.ru
; <<>> DiG 9.3.4-P1 <<>> @127.0.0.1 ya.ru ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35230 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;ya.ru. IN A ;; ANSWER SECTION: ya.ru. 7200 IN A 213.180.204.8 ;; AUTHORITY SECTION: ya.ru. 7200 IN NS ns1.yandex.ru. ya.ru. 7200 IN NS ns5.yandex.ru. ;; Query time: 398 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Apr 3 15:26:09 2008 ;; MSG SIZE rcvd: 82 |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc status
number of zones: 86 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/1000 tcp clients: 0/100 server is up and running |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#rndc restart
rndc: 'restart' is not implemented |
#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-P1 |
#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-P1 |
#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-P1 |
#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-P1 |
Время первой команды журнала | 17:58:22 2008- 4- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:27:21 2008- 4- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 43.56 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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