/l3/users/29-05-2007/nt-lnet/linux2.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 |
|
#host 192.168.14.2
2.14.168.192.in-addr.arpa domain name pointer zero.one.net.nt. |
#vim /etc/bind/named.conf
34c34 < // forwarders { }; --- > forwarders { }; |
#vim /etc/bind/db.two.net.nt
10,11c10,11 < ;;test NS ns.test < ;;ns.test A 192.168.17.2 --- > tree NS zero.tree > zero.tree A 192.168.17.2 |
#ifconfig
eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::2d0:b7ff:fecd:1bcf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7155 errors:0 dropped:0 overruns:0 frame:0 TX packets:5379 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:792445 (773.8 KiB) TX bytes:1147380 (1.0 MiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1042 errors:0 dropped:0 overruns:0 frame:0 TX packets:1042 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:104181 (101.7 KiB) TX bytes:104181 (101.7 KiB) |
#vim /etc/bind/db.15.168.192
2c2 < @ IN SOA two.net.nt. user.two.net.nt. 2007060103 ( --- > @ IN SOA two.net.nt. user.two.net.nt. 2007060104 ( |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.15.168.192
|
#vim /etc/bind/named.conf
|
#vim /etc/bind/db.15.168.192
16,264d15 < 6 PTR host6.two.net.nt. < 7 PTR host7.two.net.nt. < 8 PTR host8.two.net.nt. < 9 PTR host9.two.net.nt. < 10 PTR host10.two.net.nt. < 11 PTR host11.two.net.nt. < 12 PTR host12.two.net.nt. < 13 PTR host13.two.net.nt. < 14 PTR host14.two.net.nt. < 15 PTR host15.two.net.nt. < 16 PTR host16.two.net.nt. < 17 PTR host17.two.net.nt. < 18 PTR host18.two.net.nt. < 19 PTR host19.two.net.nt. < 20 PTR host20.two.net.nt. < 21 PTR host21.two.net.nt. < 22 PTR host22.two.net.nt. < 23 PTR host23.two.net.nt. < 24 PTR host24.two.net.nt. < 25 PTR host25.two.net.nt. < 26 PTR host26.two.net.nt. < 27 PTR host27.two.net.nt. < 28 PTR host28.two.net.nt. < 29 PTR host29.two.net.nt. < 30 PTR host30.two.net.nt. < 31 PTR host31.two.net.nt. < 32 PTR host32.two.net.nt. < 33 PTR host33.two.net.nt. < 34 PTR host34.two.net.nt. < 35 PTR host35.two.net.nt. < 36 PTR host36.two.net.nt. < 37 PTR host37.two.net.nt. < 38 PTR host38.two.net.nt. < 39 PTR host39.two.net.nt. < 40 PTR host40.two.net.nt. < 41 PTR host41.two.net.nt. < 42 PTR host42.two.net.nt. < 43 PTR host43.two.net.nt. < 44 PTR host44.two.net.nt. < 45 PTR host45.two.net.nt. < 46 PTR host46.two.net.nt. < 47 PTR host47.two.net.nt. < 48 PTR host48.two.net.nt. < 49 PTR host49.two.net.nt. < 50 PTR host50.two.net.nt. < 51 PTR host51.two.net.nt. < 52 PTR host52.two.net.nt. < 53 PTR host53.two.net.nt. < 54 PTR host54.two.net.nt. < 55 PTR host55.two.net.nt. < 56 PTR host56.two.net.nt. < 57 PTR host57.two.net.nt. < 58 PTR host58.two.net.nt. < 59 PTR host59.two.net.nt. < 60 PTR host60.two.net.nt. < 61 PTR host61.two.net.nt. < 62 PTR host62.two.net.nt. < 63 PTR host63.two.net.nt. < 64 PTR host64.two.net.nt. < 65 PTR host65.two.net.nt. < 66 PTR host66.two.net.nt. < 67 PTR host67.two.net.nt. < 68 PTR host68.two.net.nt. < 69 PTR host69.two.net.nt. < 70 PTR host70.two.net.nt. < 71 PTR host71.two.net.nt. < 72 PTR host72.two.net.nt. < 73 PTR host73.two.net.nt. < 74 PTR host74.two.net.nt. < 75 PTR host75.two.net.nt. < 76 PTR host76.two.net.nt. < 77 PTR host77.two.net.nt. < 78 PTR host78.two.net.nt. < 79 PTR host79.two.net.nt. < 80 PTR host80.two.net.nt. < 81 PTR host81.two.net.nt. < 82 PTR host82.two.net.nt. < 83 PTR host83.two.net.nt. < 84 PTR host84.two.net.nt. < 85 PTR host85.two.net.nt. < 86 PTR host86.two.net.nt. < 87 PTR host87.two.net.nt. < 88 PTR host88.two.net.nt. < 89 PTR host89.two.net.nt. < 90 PTR host90.two.net.nt. < 91 PTR host91.two.net.nt. < 92 PTR host92.two.net.nt. < 93 PTR host93.two.net.nt. < 94 PTR host94.two.net.nt. < 95 PTR host95.two.net.nt. < 96 PTR host96.two.net.nt. < 97 PTR host97.two.net.nt. < 98 PTR host98.two.net.nt. < 99 PTR host99.two.net.nt. < 100 PTR host100.two.net.nt. < 101 PTR host101.two.net.nt. < 102 PTR host102.two.net.nt. < 103 PTR host103.two.net.nt. < 104 PTR host104.two.net.nt. < 105 PTR host105.two.net.nt. < 106 PTR host106.two.net.nt. < 107 PTR host107.two.net.nt. < 108 PTR host108.two.net.nt. < 109 PTR host109.two.net.nt. < 110 PTR host110.two.net.nt. < 111 PTR host111.two.net.nt. < 112 PTR host112.two.net.nt. < 113 PTR host113.two.net.nt. < 114 PTR host114.two.net.nt. < 115 PTR host115.two.net.nt. < 116 PTR host116.two.net.nt. < 117 PTR host117.two.net.nt. < 118 PTR host118.two.net.nt. < 119 PTR host119.two.net.nt. < 120 PTR host120.two.net.nt. < 121 PTR host121.two.net.nt. < 122 PTR host122.two.net.nt. < 123 PTR host123.two.net.nt. < 124 PTR host124.two.net.nt. < 125 PTR host125.two.net.nt. < 126 PTR host126.two.net.nt. < 127 PTR host127.two.net.nt. < 128 PTR host128.two.net.nt. < 129 PTR host129.two.net.nt. < 130 PTR host130.two.net.nt. < 131 PTR host131.two.net.nt. < 132 PTR host132.two.net.nt. < 133 PTR host133.two.net.nt. < 134 PTR host134.two.net.nt. < 135 PTR host135.two.net.nt. < 136 PTR host136.two.net.nt. < 137 PTR host137.two.net.nt. < 138 PTR host138.two.net.nt. < 139 PTR host139.two.net.nt. < 140 PTR host140.two.net.nt. < 141 PTR host141.two.net.nt. < 142 PTR host142.two.net.nt. < 143 PTR host143.two.net.nt. < 144 PTR host144.two.net.nt. < 145 PTR host145.two.net.nt. < 146 PTR host146.two.net.nt. < 147 PTR host147.two.net.nt. < 148 PTR host148.two.net.nt. < 149 PTR host149.two.net.nt. < 150 PTR host150.two.net.nt. < 151 PTR host151.two.net.nt. < 152 PTR host152.two.net.nt. < 153 PTR host153.two.net.nt. < 154 PTR host154.two.net.nt. < 155 PTR host155.two.net.nt. < 156 PTR host156.two.net.nt. < 157 PTR host157.two.net.nt. < 158 PTR host158.two.net.nt. < 159 PTR host159.two.net.nt. < 160 PTR host160.two.net.nt. < 161 PTR host161.two.net.nt. < 162 PTR host162.two.net.nt. < 163 PTR host163.two.net.nt. < 164 PTR host164.two.net.nt. < 165 PTR host165.two.net.nt. < 166 PTR host166.two.net.nt. < 167 PTR host167.two.net.nt. < 168 PTR host168.two.net.nt. < 169 PTR host169.two.net.nt. < 170 PTR host170.two.net.nt. < 171 PTR host171.two.net.nt. < 172 PTR host172.two.net.nt. < 173 PTR host173.two.net.nt. < 174 PTR host174.two.net.nt. < 175 PTR host175.two.net.nt. < 176 PTR host176.two.net.nt. < 177 PTR host177.two.net.nt. < 178 PTR host178.two.net.nt. < 179 PTR host179.two.net.nt. < 180 PTR host180.two.net.nt. < 181 PTR host181.two.net.nt. < 182 PTR host182.two.net.nt. < 183 PTR host183.two.net.nt. < 184 PTR host184.two.net.nt. < 185 PTR host185.two.net.nt. < 186 PTR host186.two.net.nt. < 187 PTR host187.two.net.nt. < 188 PTR host188.two.net.nt. < 189 PTR host189.two.net.nt. < 190 PTR host190.two.net.nt. < 191 PTR host191.two.net.nt. < 192 PTR host192.two.net.nt. < 193 PTR host193.two.net.nt. < 194 PTR host194.two.net.nt. < 195 PTR host195.two.net.nt. < 196 PTR host196.two.net.nt. < 197 PTR host197.two.net.nt. < 198 PTR host198.two.net.nt. < 199 PTR host199.two.net.nt. < 200 PTR host200.two.net.nt. < 201 PTR host201.two.net.nt. < 202 PTR host202.two.net.nt. < 203 PTR host203.two.net.nt. < 204 PTR host204.two.net.nt. < 205 PTR host205.two.net.nt. < 206 PTR host206.two.net.nt. < 207 PTR host207.two.net.nt. < 208 PTR host208.two.net.nt. < 209 PTR host209.two.net.nt. < 210 PTR host210.two.net.nt. < 211 PTR host211.two.net.nt. < 212 PTR host212.two.net.nt. < 213 PTR host213.two.net.nt. < 214 PTR host214.two.net.nt. < 215 PTR host215.two.net.nt. < 216 PTR host216.two.net.nt. < 217 PTR host217.two.net.nt. < 218 PTR host218.two.net.nt. < 219 PTR host219.two.net.nt. < 220 PTR host220.two.net.nt. < 221 PTR host221.two.net.nt. < 222 PTR host222.two.net.nt. < 223 PTR host223.two.net.nt. < 224 PTR host224.two.net.nt. < 225 PTR host225.two.net.nt. < 226 PTR host226.two.net.nt. < 227 PTR host227.two.net.nt. < 228 PTR host228.two.net.nt. < 229 PTR host229.two.net.nt. < 230 PTR host230.two.net.nt. < 231 PTR host231.two.net.nt. < 232 PTR host232.two.net.nt. < 233 PTR host233.two.net.nt. < 234 PTR host234.two.net.nt. < 235 PTR host235.two.net.nt. < 236 PTR host236.two.net.nt. < 237 PTR host237.two.net.nt. < 238 PTR host238.two.net.nt. < 239 PTR host239.two.net.nt. < 240 PTR host240.two.net.nt. < 241 PTR host241.two.net.nt. < 242 PTR host242.two.net.nt. < 243 PTR host243.two.net.nt. < 244 PTR host244.two.net.nt. < 245 PTR host245.two.net.nt. < 246 PTR host246.two.net.nt. < 247 PTR host247.two.net.nt. < 248 PTR host248.two.net.nt. < 249 PTR host249.two.net.nt. < 250 PTR host250.two.net.nt. < 251 PTR host251.two.net.nt. < 252 PTR host252.two.net.nt. < 253 PTR host253.two.net.nt. < 254 PTR host254.two.net.nt. |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#host 192.168.14.2
2.14.168.192.in-addr.arpa domain name pointer zero.one.net.nt. |
#host zero.one.net.nt
Host zero.one.net.nt not found: 3(NXDOMAIN) |
#host zero.one.net.nt
Host zero.one.net.nt not found: 3(NXDOMAIN) |
#host zero.one.net.nt
Host zero.one.net.nt not found: 3(NXDOMAIN) |
#rndc flush
|
#host zero.one.net.nt
zero.one.net.nt has address 192.168.14.2 |
#hostname -f
zero.two.net.nt |
#tail -f /var/log/daemon.log
Jun 1 22:37:57 host2 named[4685]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone 15.168.192.in-addr.arpa/IN: loaded serial 2007060104 Jun 1 22:37:57 host2 named[4685]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone localhost/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone two.net.nt/IN: has no NS records Jun 1 22:37:57 host2 named[4685]: running Jun 1 22:37:57 host2 named[4685]: zone 15.168.192.in-addr.arpa/IN: sending notifies (serial 2007060104) Jun 1 22:38:06 host2 named[4685]: client 192.168.15.1#43708: transfer of '15.168.192.in-addr.arpa/IN': AXFR started Jun 1 22:38:06 host2 named[4685]: client 192.168.15.1#43708: transfer of '15.168.192.in-addr.arpa/IN': AXFR ended Jun 1 22:43:37 host2 named[4685]: unexpected RCODE (SERVFAIL) resolving 'zero.one.net.nt/A/IN': 192.168.15.1#53 |
#host zero.one.net.nt
zero.one.net.nt has address 192.168.14.2 |
#tail -f /var/log/daemon.log
Jun 1 22:37:57 host2 named[4685]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone 15.168.192.in-addr.arpa/IN: loaded serial 2007060104 Jun 1 22:37:57 host2 named[4685]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone localhost/IN: loaded serial 1 Jun 1 22:37:57 host2 named[4685]: zone two.net.nt/IN: has no NS records Jun 1 22:37:57 host2 named[4685]: running Jun 1 22:37:57 host2 named[4685]: zone 15.168.192.in-addr.arpa/IN: sending notifies (serial 2007060104) Jun 1 22:38:06 host2 named[4685]: client 192.168.15.1#43708: transfer of '15.168.192.in-addr.arpa/IN': AXFR started Jun 1 22:38:06 host2 named[4685]: client 192.168.15.1#43708: transfer of '15.168.192.in-addr.arpa/IN': AXFR ended Jun 1 22:43:37 host2 named[4685]: unexpected RCODE (SERVFAIL) resolving 'zero.one.net.nt/A/IN': 192.168.15.1#53 q |
#/etc/init.d/bind9 stop
Stopping domain name service...: bind. |
#rndc flush
rndc: connect failed: 127.0.0.1#953: connection refused |
#/etc/init.d/bind9 start
Starting domain name service...: bind. |
#tail -f /var/log/daemon.log
Jun 1 23:10:01 host2 named[4938]: command channel listening on 127.0.0.1#953 Jun 1 23:10:01 host2 named[4938]: command channel listening on ::1#953 Jun 1 23:10:01 host2 named[4938]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 23:10:01 host2 named[4938]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 23:10:01 host2 named[4938]: zone 15.168.192.in-addr.arpa/IN: loaded serial 2007060104 Jun 1 23:10:01 host2 named[4938]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 23:10:01 host2 named[4938]: zone localhost/IN: loaded serial 1 Jun 1 23:10:01 host2 named[4938]: zone two.net.nt/IN: has no NS records Jun 1 23:10:01 host2 named[4938]: running Jun 1 23:10:01 host2 named[4938]: zone 15.168.192.in-addr.arpa/IN: sending notifies (serial 2007060104) |
#vim /etc/bind/db.two.net.nt
2c2 < @ SOA two.net.nt. user.two.net.nt. 2007060103 ( --- > @ SOA two.net.nt. user.two.net.nt. 2007060104 ( 10c10 < tree NS zero.tree --- > tree NS zero.tree 14,15c14,15 < NS zero < MX 5 zero --- > NS zero.two.net.nt. > MX 5 zero |
#/etc/init.d/bind9 start
Starting domain name service...: bind failed! |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#host zero.one.net.nt
zero.one.net.nt has address 192.168.14.2 |
#host zero.two.net.nt
Host zero.two.net.nt not found: 2(SERVFAIL) |
#hostname -f
zero.two.net.nt |
#tail -f /var/log/daemon.log
Jun 1 23:11:33 host2 named[5020]: command channel listening on 127.0.0.1#953 Jun 1 23:11:33 host2 named[5020]: command channel listening on ::1#953 Jun 1 23:11:33 host2 named[5020]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 23:11:33 host2 named[5020]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 23:11:33 host2 named[5020]: zone 15.168.192.in-addr.arpa/IN: loaded serial 2007060104 Jun 1 23:11:33 host2 named[5020]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 23:11:33 host2 named[5020]: zone localhost/IN: loaded serial 1 Jun 1 23:11:33 host2 named[5020]: zone two.net.nt/IN: has no NS records Jun 1 23:11:33 host2 named[5020]: running Jun 1 23:11:33 host2 named[5020]: zone 15.168.192.in-addr.arpa/IN: sending notifies (serial 2007060104) |
#less /var/log/daemon.log
|
#vim /etc/bind/db.two.net.nt
10,11c10,11 < tree NS zero.tree < zero.tree A 192.168.17.2 --- > ;;tree NS zero.tree > ;;zero.tree A 192.168.17.2 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#tail -f /var/log/daemon.log
Jun 1 23:12:41 host2 named[5106]: zone 0.in-addr.arpa/IN: loaded serial 1 Jun 1 23:12:41 host2 named[5106]: zone 127.in-addr.arpa/IN: loaded serial 1 Jun 1 23:12:41 host2 named[5106]: zone 15.168.192.in-addr.arpa/IN: loaded serial 2007060104 Jun 1 23:12:41 host2 named[5106]: zone 255.in-addr.arpa/IN: loaded serial 1 Jun 1 23:12:41 host2 named[5106]: zone localhost/IN: loaded serial 1 Jun 1 23:12:41 host2 named[5106]: zone two.net.nt/IN: loaded serial 2007060104 Jun 1 23:12:41 host2 named[5106]: running Jun 1 23:12:41 host2 named[5106]: zone 15.168.192.in-addr.arpa/IN: sending notifies (serial 2007060104) Jun 1 23:12:41 host2 named[5106]: zone two.net.nt/IN: sending notifies (serial 2007060104) Jun 1 23:12:41 host2 named[5106]: client 192.168.15.2#33069: received notify for zone 'two.net.nt' |
#host zero.two.net.nt
zero.two.net.nt has address 192.168.15.2 |
#hostname -f
zero.two.net.nt |
#vim /etc/bind/db.two.net.nt
10,11c10 < ;;tree NS zero.tree < ;;zero.tree A 192.168.17.2 --- > 16a16,21 > tree NS zero.tree > zero.tree A 192.168.17.2 > > > > |
#vim /etc/bind/db.two.net.nt
2c2 < @ SOA two.net.nt. user.two.net.nt. 2007060104 ( --- > @ SOA two.net.nt. user.two.net.nt. 20070601055555 |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#vim /etc/bind/db.two.net.nt
2c2 < @ SOA two.net.nt. user.two.net.nt. 20070601055555 --- > @ SOA two.net.nt. user.two.net.nt. 2007060105 ( |
#/etc/init.d/bind9 restart
Stopping domain name service...: bind. Starting domain name service...: bind. |
#ifconfig
eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::2d0:b7ff:fecd:1bcf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9694 errors:0 dropped:0 overruns:0 frame:0 TX packets:7169 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:1049642 (1.0 MiB) TX bytes:1657807 (1.5 MiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1244 errors:0 dropped:0 overruns:0 frame:0 TX packets:1244 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:127842 (124.8 KiB) TX bytes:127842 (124.8 KiB) |
#hostname -f
zero.two.net.nt |
#dig @127.0.0.1 two.net.nt ns
; <<>> DiG 9.3.4 <<>> @127.0.0.1 two.net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48081 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;two.net.nt. IN NS ;; ANSWER SECTION: two.net.nt. 24 IN NS zero.two.net.nt. ;; ADDITIONAL SECTION: zero.two.net.nt. 24 IN A 192.168.15.2 ;; Query time: 60 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 1 23:22:35 2007 ;; MSG SIZE rcvd: 63 |
#cat /etc/bind/named.conf.options
options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.15.1; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; // allow-transfer { 192.168.16.0/24; 192.168.0.0/24; } ; }; |
#cat /etc/bind/db.
db.0 db.15.168.192 db.255 db.local db.svl.net.nt db.127 db.16.168.192 db.empty db.root db.two.net.nt |
#cat /etc/bind/db.two.net.nt
host106.two.net.nt. A 192.168.15.106 host107.two.net.nt. A 192.168.15.107 host108.two.net.nt. A 192.168.15.108 host109.two.net.nt. A 192.168.15.109 host110.two.net.nt. A 192.168.15.110 host111.two.net.nt. A 192.168.15.111 host112.two.net.nt. A 192.168.15.112 host113.two.net.nt. A 192.168.15.113 host114.two.net.nt. A 192.168.15.114 host115.two.net.nt. A 192.168.15.115 ... host245.two.net.nt. A 192.168.15.245 host246.two.net.nt. A 192.168.15.246 host247.two.net.nt. A 192.168.15.247 host248.two.net.nt. A 192.168.15.248 host249.two.net.nt. A 192.168.15.249 host250.two.net.nt. A 192.168.15.250 host251.two.net.nt. A 192.168.15.251 host252.two.net.nt. A 192.168.15.252 host253.two.net.nt. A 192.168.15.253 host254.two.net.nt. A 192.168.15.254 |
#cat /etc/bind/db.two.net.nt | head
$TTL 24 @ SOA two.net.nt. user.two.net.nt. 2007060105 ( 10h 1h 1w 1h ) |
#cat /etc/bind/db.two.net.nt | head -40
$TTL 24 @ SOA two.net.nt. user.two.net.nt. 2007060105 ( 10h 1h 1w 1h ) NS zero.two.net.nt. MX 5 zero tree NS zero.tree ... host11.two.net.nt. A 192.168.15.11 host12.two.net.nt. A 192.168.15.12 host13.two.net.nt. A 192.168.15.13 host14.two.net.nt. A 192.168.15.14 host15.two.net.nt. A 192.168.15.15 host16.two.net.nt. A 192.168.15.16 host17.two.net.nt. A 192.168.15.17 host18.two.net.nt. A 192.168.15.18 host19.two.net.nt. A 192.168.15.19 host20.two.net.nt. A 192.168.15.20 |
#host host3.net.nt
Host host3.net.nt not found: 3(NXDOMAIN) |
#host host3.two.net.nt
host3.two.net.nt has address 192.168.15.3 |
#host 192.168.15.3
3.15.168.192.in-addr.arpa domain name pointer host3.two.net.nt. |
#host 192.168.17.2
2.17.168.192.in-addr.arpa domain name pointer zero.tree.two.net.nt. |
#host 192.168.17.3
3.17.168.192.in-addr.arpa domain name pointer zero3.tree.two.net.nt. |
#tcpdump port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes 23:35:34.396434 IP 192.168.15.1.32848 > zero.two.net.nt.domain: 41861 [1au] A? zero.tree.two.net.nt. (49) 23:35:34.396839 IP zero.two.net.nt.domain > 192.168.15.1.32848: 41861 0/1/2 (79) 23:39:03.071841 IP 192.168.14.2.32915 > 192.168.16.1.domain: 27108+ A? xgu.ru. (24) 23:39:03.072563 IP zero.two.net.nt.33075 > 192.168.15.1.domain: 1910+ [1au] PTR? 1.16.168.192.in-addr.arpa. (54) 23:39:05.075267 IP zero.two.net.nt.33075 > 198.41.0.4.domain: 955 [1au] PTR? 1.16.168.192.in-addr.arpa. (54) 23:39:07.079353 IP zero.two.net.nt.33075 > 192.228.79.201.domain: 14278 [1au] PTR? 1.16.168.192.in-addr.arpa. (54) 23:39:08.071383 IP zero.two.net.nt.33080 > 192.168.16.15.domain: 374+ PTR? 1.16.168.192.in-addr.arpa. (43) 23:39:08.071701 IP 192.168.14.2.32915 > 192.168.16.1.domain: 27108+ A? xgu.ru. (24) 23:39:09.083553 IP zero.two.net.nt.33075 > 192.112.36.4.domain: 52702 PTR? 1.16.168.192.in-addr.arpa. (43) 23:43:05.460584 IP 192.168.15.1.32769 > zero.two.net.nt.domain: 44883 [1au] A? zero.tree.two.net.nt. (49) 23:43:05.467248 IP zero.two.net.nt.domain > 192.168.15.1.32769: 44883 0/1/2 (79) 11 packets captured 11 packets received by filter 0 packets dropped by kernel |
#ls
1 Desktop ODINAKOVOneOdInAkOvORAVNO sim-0.9.4.3.tar.bz2 12 install ODINAKOVO_neOdInAkOvO_RAVNO userapp 123 linux-2.6.21.3.tar.bz2 ODINAKOVONEoDinakovoRAVNO user_passwd 1.gif Mail ODINAKOVO_NEoDinakovo_RAVNO var 1.jpg mbox sent 1.png nohup.out sim-0.9.4.3 |
#hostname -f
zero.two.net.nt |
#tcpdump -n port 53
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes 00:13:34.964808 IP 192.168.15.1.32769 > 192.168.15.2.53: 31776 [1au] A? zero3.tree.two.net.nt. (50) 00:13:34.965232 IP 192.168.15.2.53 > 192.168.15.1.32769: 31776 0/1/2 (85) 2 packets captured 2 packets received by filter 0 packets dropped by kernel |
#tcpdump -n port 53 -v
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes 00:14:22.073240 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 77) 192.168.15.1.32769 > 192.168.15.2.53: 61284% [1au] A? zero.tree.two.net.nt. (49) 00:14:22.073629 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 77) 192.168.15.1.32769 > 192.168.15.2.53: 63410% [1au] AAAA? zero.tree.two.net.nt. (49) 00:14:22.073732 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 107) 192.168.15.2.53 > 192.168.15.1.32769: 61284 0/1/2 (79) 00:14:22.073831 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: UDP (17), length: 107) 192.168.15.2.53 > 192.168.15.1.32769: 63410 0/1/2 (79) 4 packets captured 4 packets received by filter 0 packets dropped by kernel |
#startx
> Error: Missing KeyNames section in a Keymap file > Description of Keymap not compiled Errors from xkbcomp are not fatal to the X server (EE) Error loading keymap /var/lib/xkb/server-0.xkm ** (gnome-keyboard-properties:8509): CRITICAL **: XkbGetKeyboard failed to get keyboard from the server! xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compatibility { include "complete" }; xkb_symbols { include "pc(pc105)+ru" }; xkb_geometry { include "pc(pc104)" }; ... скорее всего, X-сервер был выключен или был уничтожен менеджер окон. The application 'nautilus' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. The application 'vino-session' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. xinit: connection to X server lost. waiting for X server to shut down |
#shh nigma.kiev.ua
bash: shh: command not found |
#ss
ss ssh ssh-agent ssh-copy-id ssh-keygen ssindex ssconvert ssh-add ssh-argv0 sshd ssh-keyscan |
#ssh
ssh ssh-agent ssh-copy-id ssh-keygen ssh-add ssh-argv0 sshd ssh-keyscan |
#hostname
zero |
#vim /etc/hostname
1c1 < zero --- > host2 |
#ping nigma.kiev.ua
PING nigma.kiev.ua (217.27.155.198) 56(84) bytes of data. 217.27.155.198 --- nigma.kiev.ua ping statistics --- 10 packets transmitted, 0 received, 100% packet loss, time 9010ms |
#shh 217.27.155.198
bash: shh: command not found |
#ssh 217.27.155.198
|
#vim /etc/b
|
#vim /etc/bind/db.
|
#vim /etc/bind/db.two.net.nt
|
#setxkbmap -layout us,ru(phonetic) -option "grp:ctrl_shift_toggle,grp_led:scroll"
bash: syntax error near unexpected token `(' |
#tcpdump -n port 53 -v
|
#shh nigma.kiev.ua
|
#setxkbmap -layout us,ru -option "grp:ctrl_shift_toggle,grp_led:s
xauth: creating new authority file /root/.serverauth.8036 X: warning; process set to priority -1 instead of requested priority 0 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: UNKNOWN Current Operating System: Linux zero 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 Build Date: 04 April 2007 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. ... ** (gnome-terminal:8255): WARNING **: Отсутствует обработчик управляющей последовательности "device-control-string". CalDAV Eplugin starting up ... libnm_glib_nm_state_cb: dbus returned an error. (org.freedesktop.DBus.Error.ServiceUnknown) The name org.freedesktop.NetworkManager was not provided by any .service files xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compatibility { include "complete+ledscroll(group_lock)" }; xkb_symbols { include "pc(pc105)+us+ru:2+level3(ralt_switch_for_alts_toggle):1+group(alts_toggle)+group(ctrl_shift_toggle)" }; xkb_geometry { include "pc(pc104)" }; roll" |
#shh 192.168.14.2
bash: shh: command not found |
#screen -x
|
#screen -x
|
#screen -x
|
#screen -x
|
#ssh 192.168.14.2
Last login: Sat Jun 2 09:56:59 2007 from 192.168.14.1 Linux #linux1a okno1 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. l3-agent is already running: pid=3275; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#netstat -nlp |grep :3128
[root@zero:~]# dpkg -l | grep squid [root@zero:~]# apt-get install squid Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Будут установлены следующие дополнительные пакеты: squid-common Предлагаемые пакеты: squidclient squid-cgi logcheck-database resolvconf smbclient НОВЫЕ пакеты, которые будут установлены: squid squid-common ... Хотите продолжить [Д/н]? y Получено:1 http://debian.org.ua etch/main squid-common 2.6.5-6 [438kB] Получено:2 http://debian.org.ua etch/main squid 2.6.5-6 [654kB] Получено 1093kB за 0s (3485kB/c) Предварительная настройка пакетов ... Выбор ранее не выбранного пакета squid-common.---------------------------------------- (Чтение базы данных... на данный момент установлено 89556 файлов и каталогов.) Распаковывается пакет squid-common (из файла .../squid-common_2.6.5-6_all.deb)... Выбор ранее не выбранного пакета squid. Распаковывается пакет squid (из файла .../squid_2.6.5-6_i386.deb)... |
#ping nigma.kiev.ua
4327 # is most likely better to make your server return a 4328 # meaningful Last-Modified header however. :set number 4329 #xed_header_parser on 4330 #Default: 4331 # minimum_expiry_time 60 seconds 4332 4333 # TAG: relaxed_header_parser on|off|warn 4334 # In the default "on" setting Squid accepts certain forms 4335 # of non-compliant HTTP messages where it is unambiguous ... 4342 # 4343 # If set to "off" then such HTTP errors will cause the request 4344 # or response to be rejected. 4345 # 4348,0-1 Внизу PING nigma.kiev.ua (217.27.155.198) 56(84) bytes of data. 4346 #Default: 4347 # relaxed_header_parser on --- nigma.kiev.ua ping statistics --- 4348 11 packets transmitted, 0 received, 100% packet loss, time 10001ms |
#ping 217.27.155.198
4327 # is most likely better to make your server return a 4328 # meaningful Last-Modified header however. :set number 4329 #xed_header_parser on 4330 #Default: 4331 # minimum_expiry_time 60 seconds 4332 4333 # TAG: relaxed_header_parser on|off|warn 4334 # In the default "on" setting Squid accepts certain forms 4335 # of non-compliant HTTP messages where it is unambiguous ... 4342 # 4343 # If set to "off" then such HTTP errors will cause the request 4344 # or response to be rejected. 4345 # 4348,0-1 Внизу PING 217.27.155.198 (217.27.155.198) 56(84) bytes of data. 4346 #Default: 4347 # relaxed_header_parser on --- 217.27.155.198 ping statistics --- 4348 6 packets transmitted, 0 received, 100% packet loss, time 5010ms |
#ping 217.27.155.198
4327 # is most likely better to make your server return a 4328 # meaningful Last-Modified header however. :set number 4329 #xed_header_parser on 4330 #Default: 4331 # minimum_expiry_time 60 seconds 4332 4333 # TAG: relaxed_header_parser on|off|warn 4334 # In the default "on" setting Squid accepts certain forms 4335 # of non-compliant HTTP messages where it is unambiguous ... 4343 # If set to "off" then such HTTP errors will cause the request 4344 # or response to be rejected. 4345 # 4348,0-1 Внизу PING 217.27.155.198 (217.27.155.198) 56(84) bytes of data. 4346 #Default: c 4347 # relaxed_header_parser on --- 217.27.155.198 ping statistics --- 4348 10 packets transmitted, 0 received, 100% packet loss, time 9005ms |
#ls -l /var/spool/squid
итого 68 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 00 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 01 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 02 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 03 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 04 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 05 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 06 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 07 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 08 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 09 drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0A drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0B drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0C drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0D drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0E drwxr-x--- 258 proxy proxy 4096 2007-05-29 07:34 0F -rw-r----- 1 proxy proxy 48 2007-06-01 21:01 swap.state -rw-r----- 1 proxy proxy 0 2007-06-01 21:01 swap.state.last-clean |
#ls -li /
итого 53 134905 drwxr-xr-x 3 root root 1024 2007-05-21 12:18 2 764457 drwxr-xr-x 2 root root 2048 2007-06-01 15:40 bin 200313 drwxr-xr-x 3 root root 1024 2007-05-24 13:42 boot 20441 lrwxrwxrwx 1 root root 11 2007-05-13 17:39 cdrom -> media/cdrom 809 drwxr-xr-x 14 root root 4240 2007-06-02 09:25 dev 265721 drwxr-xr-x 97 root root 4096 2007-06-02 09:41 etc 2 drwxr-xr-x 15 root root 1024 2007-05-23 15:35 home 964769 drwxr-xr-x 2 root root 1024 2007-05-13 17:40 initrd 20444 lrwxrwxrwx 1 root root 28 2007-05-21 16:29 initrd.img -> boot/initrd.img-2.6.18-4-686 ... 568233 drwxr-xr-x 2 root root 3072 2007-05-30 13:03 sbin 57233 drwxr-xr-x 2 root root 1024 2007-05-13 17:40 srv 1 drwxr-xr-x 11 root root 0 2007-06-01 21:01 sys 2 drwxrwxrwt 9 root root 4096 2007-06-02 10:47 tmp 2 drwxr-xr-x 12 root root 4096 2007-05-22 12:13 usr 2 drwxr-xr-x 15 root root 4096 2007-05-30 13:05 var 20445 lrwxrwxrwx 1 root root 25 2007-05-21 16:29 vmlinuz -> boot/vmlinuz-2.6.18-4-686 20443 lrwxrwxrwx 1 root root 25 2007-05-13 17:41 vmlinuz.old -> boot/vmlinuz-2.6.16-2-686 2 drwxr-xr-x 3 root root 4096 2007-05-18 19:10 xen 220753 drwxr-xr-x 2 root root 1024 2007-05-15 03:12 xen2 |
#cd /
each time such HTTP error is encountered. 4325 # defaults to 60 seconds. In reverse proxy enorinments it # If set to "off" then such HTTP errors will cause the request 4326 # might be desirable to honor shorter object lifetimes. It # 4327 # is most likely better to make your server return a 4328 # meaningful Last-Modified header however. :set number 4329 #xed_header_parser on 4330 #Default: ... 4339 # 4340 # If set to "warn" then a warning will be emitted in cache.log 4341 # each time such HTTP error is encountered. 4342 # 4343 # If set to "off" then such HTTP errors will cause the request 4344 # or response to be rejected. 4345 # 4348,0-1 Внизу 4346 #Default: 4347 # relaxed_header_parser on 4348 |
#ping serzh
PING net.nt (192.168.16.15) 56(84) bytes of data. 64 bytes from net.nt (192.168.16.15): icmp_seq=1 ttl=64 time=0.970 ms 64 bytes from net.nt (192.168.16.15): icmp_seq=2 ttl=64 time=0.252 ms 64 bytes from net.nt (192.168.16.15): icmp_seq=3 ttl=64 time=0.321 ms 64 bytes from net.nt (192.168.16.15): icmp_seq=4 ttl=64 time=2.80 ms --- net.nt ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3011ms rtt min/avg/max/mdev = 0.252/1.088/2.809/1.032 ms |
db.0 db.15.168.192 db.255 db.local db.svl.net.nt db.127 db.16.168.192 db.empty db.root db.two.net.nt
host106.two.net.nt. A 192.168.15.106 host107.two.net.nt. A 192.168.15.107 host108.two.net.nt. A 192.168.15.108 host109.two.net.nt. A 192.168.15.109 host110.two.net.nt. A 192.168.15.110 host111.two.net.nt. A 192.168.15.111 host112.two.net.nt. A 192.168.15.112 host113.two.net.nt. A 192.168.15.113 host114.two.net.nt. A 192.168.15.114 host115.two.net.nt. A 192.168.15.115 host116.two.net.nt. A 192.168.15.116 host117.two.net.nt. A 192.168.15.117 host118.two.net.nt. A 192.168.15.118 host119.two.net.nt. A 192.168.15.119 host120.two.net.nt. A 192.168.15.120 host121.two.net.nt. A 192.168.15.121 host122.two.net.nt. A 192.168.15.122 host123.two.net.nt. A 192.168.15.123 host124.two.net.nt. A 192.168.15.124 host125.two.net.nt. A 192.168.15.125 host126.two.net.nt. A 192.168.15.126 host127.two.net.nt. A 192.168.15.127 host128.two.net.nt. A 192.168.15.128 host129.two.net.nt. A 192.168.15.129 host130.two.net.nt. A 192.168.15.130 host131.two.net.nt. A 192.168.15.131 host132.two.net.nt. A 192.168.15.132 host133.two.net.nt. A 192.168.15.133 host134.two.net.nt. A 192.168.15.134 host135.two.net.nt. A 192.168.15.135 host136.two.net.nt. A 192.168.15.136 host137.two.net.nt. A 192.168.15.137 host138.two.net.nt. A 192.168.15.138 host139.two.net.nt. A 192.168.15.139 host140.two.net.nt. A 192.168.15.140 host141.two.net.nt. A 192.168.15.141 host142.two.net.nt. A 192.168.15.142 host143.two.net.nt. A 192.168.15.143 host144.two.net.nt. A 192.168.15.144 host145.two.net.nt. A 192.168.15.145 host146.two.net.nt. A 192.168.15.146 host147.two.net.nt. A 192.168.15.147 host148.two.net.nt. A 192.168.15.148 host149.two.net.nt. A 192.168.15.149 host150.two.net.nt. A 192.168.15.150 host151.two.net.nt. A 192.168.15.151 host152.two.net.nt. A 192.168.15.152 host153.two.net.nt. A 192.168.15.153 host154.two.net.nt. A 192.168.15.154 host155.two.net.nt. A 192.168.15.155 host156.two.net.nt. A 192.168.15.156 host157.two.net.nt. A 192.168.15.157 host158.two.net.nt. A 192.168.15.158 host159.two.net.nt. A 192.168.15.159 host160.two.net.nt. A 192.168.15.160 host161.two.net.nt. A 192.168.15.161 host162.two.net.nt. A 192.168.15.162 host163.two.net.nt. A 192.168.15.163 host164.two.net.nt. A 192.168.15.164 host165.two.net.nt. A 192.168.15.165 host166.two.net.nt. A 192.168.15.166 host167.two.net.nt. A 192.168.15.167 host168.two.net.nt. A 192.168.15.168 host169.two.net.nt. A 192.168.15.169 host170.two.net.nt. A 192.168.15.170 host171.two.net.nt. A 192.168.15.171 host172.two.net.nt. A 192.168.15.172 host173.two.net.nt. A 192.168.15.173 host174.two.net.nt. A 192.168.15.174 host175.two.net.nt. A 192.168.15.175 host176.two.net.nt. A 192.168.15.176 host177.two.net.nt. A 192.168.15.177 host178.two.net.nt. A 192.168.15.178 host179.two.net.nt. A 192.168.15.179 host180.two.net.nt. A 192.168.15.180 host181.two.net.nt. A 192.168.15.181 host182.two.net.nt. A 192.168.15.182 host183.two.net.nt. A 192.168.15.183 host184.two.net.nt. A 192.168.15.184 host185.two.net.nt. A 192.168.15.185 host186.two.net.nt. A 192.168.15.186 host187.two.net.nt. A 192.168.15.187 host188.two.net.nt. A 192.168.15.188 host189.two.net.nt. A 192.168.15.189 host190.two.net.nt. A 192.168.15.190 host191.two.net.nt. A 192.168.15.191 host192.two.net.nt. A 192.168.15.192 host193.two.net.nt. A 192.168.15.193 host194.two.net.nt. A 192.168.15.194 host195.two.net.nt. A 192.168.15.195 host196.two.net.nt. A 192.168.15.196 host197.two.net.nt. A 192.168.15.197 host198.two.net.nt. A 192.168.15.198 host199.two.net.nt. A 192.168.15.199 host200.two.net.nt. A 192.168.15.200 host201.two.net.nt. A 192.168.15.201 host202.two.net.nt. A 192.168.15.202 host203.two.net.nt. A 192.168.15.203 host204.two.net.nt. A 192.168.15.204 host205.two.net.nt. A 192.168.15.205 host206.two.net.nt. A 192.168.15.206 host207.two.net.nt. A 192.168.15.207 host208.two.net.nt. A 192.168.15.208 host209.two.net.nt. A 192.168.15.209 host210.two.net.nt. A 192.168.15.210 host211.two.net.nt. A 192.168.15.211 host212.two.net.nt. A 192.168.15.212 host213.two.net.nt. A 192.168.15.213 host214.two.net.nt. A 192.168.15.214 host215.two.net.nt. A 192.168.15.215 host216.two.net.nt. A 192.168.15.216 host217.two.net.nt. A 192.168.15.217 host218.two.net.nt. A 192.168.15.218 host219.two.net.nt. A 192.168.15.219 host220.two.net.nt. A 192.168.15.220 host221.two.net.nt. A 192.168.15.221 host222.two.net.nt. A 192.168.15.222 host223.two.net.nt. A 192.168.15.223 host224.two.net.nt. A 192.168.15.224 host225.two.net.nt. A 192.168.15.225 host226.two.net.nt. A 192.168.15.226 host227.two.net.nt. A 192.168.15.227 host228.two.net.nt. A 192.168.15.228 host229.two.net.nt. A 192.168.15.229 host230.two.net.nt. A 192.168.15.230 host231.two.net.nt. A 192.168.15.231 host232.two.net.nt. A 192.168.15.232 host233.two.net.nt. A 192.168.15.233 host234.two.net.nt. A 192.168.15.234 host235.two.net.nt. A 192.168.15.235 host236.two.net.nt. A 192.168.15.236 host237.two.net.nt. A 192.168.15.237 host238.two.net.nt. A 192.168.15.238 host239.two.net.nt. A 192.168.15.239 host240.two.net.nt. A 192.168.15.240 host241.two.net.nt. A 192.168.15.241 host242.two.net.nt. A 192.168.15.242 host243.two.net.nt. A 192.168.15.243 host244.two.net.nt. A 192.168.15.244 host245.two.net.nt. A 192.168.15.245 host246.two.net.nt. A 192.168.15.246 host247.two.net.nt. A 192.168.15.247 host248.two.net.nt. A 192.168.15.248 host249.two.net.nt. A 192.168.15.249 host250.two.net.nt. A 192.168.15.250 host251.two.net.nt. A 192.168.15.251 host252.two.net.nt. A 192.168.15.252 host253.two.net.nt. A 192.168.15.253 host254.two.net.nt. A 192.168.15.254
options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 192.168.15.1; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; // allow-transfer { 192.168.16.0/24; 192.168.0.0/24; } ; };
Время первой команды журнала | 22:14:49 2007- 6- 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:05:41 2007- 6- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.34 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.72 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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