Zonemaster/Test/Zone.pm untested

filter: Statementstmt 0.0% 0 / 217 Branchbran 0.0% 0 / 104 Conditioncond 0.0% 0 / 48 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 25 Podpod 0.0% 0 / 15 totaltotal 0.0% 0 / 409 CC 53 SCAR 41.4
CC
53
Cov
0%
all
210.0
zone01
72.0
zone09
72.0
CRAP 63.1
1 package Zonemaster::Test::Zone v1.0.1;
2  
3 use 5.14.2;
4 use strict;
5 use warnings;
6  
7 use Zonemaster;
8 use Zonemaster::Util;
9 use Zonemaster::Test::Address;
10 use Zonemaster::TestMethods;
11 use Zonemaster::Constants qw[:soa :ip];
12 use List::MoreUtils qw[none];
13  
14 use Carp;
15  
16 ###
17 ### Entry Points
18 ###
19  
20 sub all {
21 my ( $class, $zone ) = @_;
22 my @results;
23  
24 push @results, $class->zone01( $zone ) if Zonemaster->config->should_run('zone01');
25 if ( none { $_->tag eq q{NO_RESPONSE_SOA_QUERY} } @results ) {
26  
27 push @results, $class->zone02( $zone ) if Zonemaster->config->should_run('zone02');
28 push @results, $class->zone03( $zone ) if Zonemaster->config->should_run('zone03');
29 push @results, $class->zone04( $zone ) if Zonemaster->config->should_run('zone04');
30 push @results, $class->zone05( $zone ) if Zonemaster->config->should_run('zone05');
31 push @results, $class->zone06( $zone ) if Zonemaster->config->should_run('zone06');
32 if ( none { $_->tag eq q{MNAME_RECORD_DOES_NOT_EXIST} } @results ) {
33 push @results, $class->zone07( $zone ) if Zonemaster->config->should_run('zone07');
34 }
35 }
36 if ( none { $_->tag eq q{MNAME_RECORD_DOES_NOT_EXIST} } @results ) {
37 push @results, $class->zone08( $zone ) if Zonemaster->config->should_run('zone08');
38 if ( none { $_->tag eq q{NO_RESPONSE_MX_QUERY} } @results ) {
39 push @results, $class->zone09( $zone ) if Zonemaster->config->should_run('zone09');
40 }
41 }
42  
43 return @results;
44 } ## end sub all
45  
46 ###
47 ### Metadata Exposure
48 ###
49  
50 sub metadata {
51 my ( $class ) = @_;
52  
53 return {
54 zone01 => [
55 qw(
56 MNAME_RECORD_DOES_NOT_EXIST
57 MNAME_NOT_AUTHORITATIVE
58 MNAME_NO_RESPONSE
59 MNAME_NOT_IN_GLUE
60 MNAME_IS_AUTHORITATIVE
61 NO_RESPONSE_SOA_QUERY
62 )
63 ],
64 zone02 => [
65 qw(
66 REFRESH_MINIMUM_VALUE_LOWER
67 REFRESH_MINIMUM_VALUE_OK
68 NO_RESPONSE_SOA_QUERY
69 )
70 ],
71 zone03 => [
72 qw(
73 REFRESH_LOWER_THAN_RETRY
74 REFRESH_HIGHER_THAN_RETRY
75 NO_RESPONSE_SOA_QUERY
76 )
77 ],
78 zone04 => [
79 qw(
80 RETRY_MINIMUM_VALUE_LOWER
81 RETRY_MINIMUM_VALUE_OK
82 NO_RESPONSE_SOA_QUERY
83 )
84 ],
85 zone05 => [
86 qw(
87 EXPIRE_MINIMUM_VALUE_LOWER
88 EXPIRE_LOWER_THAN_REFRESH
89 EXPIRE_MINIMUM_VALUE_OK
90 NO_RESPONSE_SOA_QUERY
91 )
92 ],
93 zone06 => [
94 qw(
95 SOA_DEFAULT_TTL_MAXIMUM_VALUE_HIGHER
96 SOA_DEFAULT_TTL_MAXIMUM_VALUE_LOWER
97 SOA_DEFAULT_TTL_MAXIMUM_VALUE_OK
98 NO_RESPONSE_SOA_QUERY
99 )
100 ],
101 zone07 => [
102 qw(
103 MNAME_IS_CNAME
104 MNAME_IS_NOT_CNAME
105 NO_RESPONSE_SOA_QUERY
106 MNAME_HAS_NO_ADDRESS
107 )
108 ],
109 zone08 => [
110 qw(
111 MX_RECORD_IS_CNAME
112 MX_RECORD_IS_NOT_CNAME
113 NO_RESPONSE_MX_QUERY
114 )
115 ],
116 zone09 => [
117 qw(
118 NO_MX_RECORD
119 MX_RECORD_EXISTS
120 NO_RESPONSE_MX_QUERY
121 )
122 ],
123 };
124 } ## end sub metadata
125  
126 sub translation {
127 return {
128 'RETRY_MINIMUM_VALUE_LOWER' =>
129 'SOA \'retry\' value ({retry}) is less than the recommended one ({required_retry}).',
130 'RETRY_MINIMUM_VALUE_OK' =>
131 'SOA \'retry\' value ({retry}) is more than the minimum recommended value ({required_retry}).',
132 'MNAME_NO_RESPONSE' => 'SOA \'mname\' nameserver {ns}/{address} does not respond.',
133 'MNAME_IS_CNAME' => 'SOA \'mname\' value ({mname}) refers to a NS which is an alias (CNAME).',
134 'MNAME_IS_NOT_CNAME' => 'SOA \'mname\' value ({mname}) refers to a NS which is not an alias (CNAME).',
135 'NO_MX_RECORD' => 'No target (MX, A or AAAA record) to deliver e-mail for the domain name.',
136 'MX_RECORD_EXISTS' => 'Target ({info}) found to deliver e-mail for the domain name.',
137 'REFRESH_MINIMUM_VALUE_LOWER' =>
138 'SOA \'refresh\' value ({refresh}) is less than the recommended one ({required_refresh}).',
139 'REFRESH_MINIMUM_VALUE_OK' =>
140 'SOA \'refresh\' value ({refresh}) is higher than the minimum recommended value ({required_refresh}).',
141 'EXPIRE_LOWER_THAN_REFRESH' =>
142 'SOA \'expire\' value ({expire}) is lower than the SOA \'refresh\' value ({refresh}).',
143 'SOA_DEFAULT_TTL_MAXIMUM_VALUE_HIGHER' =>
144 'SOA \'minimum\' value ({minimum}) is higher than the recommended one ({highest_minimum}).',
145 'SOA_DEFAULT_TTL_MAXIMUM_VALUE_LOWER' =>
146 'SOA \'minimum\' value ({minimum}) is less than the recommended one ({lowest_minimum}).',
147 'SOA_DEFAULT_TTL_MAXIMUM_VALUE_OK' =>
148 'SOA \'minimum\' value ({minimum}) is between the recommended ones ({lowest_minimum}/{highest_minimum}).',
149 'MNAME_NOT_AUTHORITATIVE' =>
150 'SOA \'mname\' nameserver {ns}/{address} is not authoritative for \'{zone}\' zone.',
151 'MNAME_RECORD_DOES_NOT_EXIST' => 'SOA \'mname\' field does not exist',
152 'EXPIRE_MINIMUM_VALUE_LOWER' =>
153 'SOA \'expire\' value ({expire}) is less than the recommended one ({required_expire}).',
154 'MNAME_NOT_IN_GLUE' =>
155 'SOA \'mname\' nameserver ({mname}) is not listed in "parent" NS records for tested zone ({ns}).',
156 'REFRESH_LOWER_THAN_RETRY' =>
157 'SOA \'refresh\' value ({refresh}) is lower than the SOA \'retry\' value ({retry}).',
158 'REFRESH_HIGHER_THAN_RETRY' =>
159 'SOA \'refresh\' value ({refresh}) is higher than the SOA \'retry\' value ({retry}).',
160 'MX_RECORD_IS_CNAME' => 'MX record for the domain is pointing to a CNAME.',
161 'MX_RECORD_IS_NOT_CNAME' => 'MX record for the domain is not pointing to a CNAME.',
162 'MNAME_IS_AUTHORITATIVE' => 'SOA \'mname\' nameserver ({mname}) is authoritative for \'{zone}\' zone.',
163 'NO_RESPONSE_SOA_QUERY' => 'No response from nameserver(s) on SOA queries.',
164 'NO_RESPONSE_MX_QUERY' => 'No response from nameserver(s) on MX queries.',
165 'MNAME_HAS_NO_ADDRESS' => 'No IP address found for SOA \'mname\' nameserver ({mname}).',
166 'EXPIRE_MINIMUM_VALUE_OK' =>
167 'SOA \'expire\' value ({expire}) is higher than the minimum recommended value ({required_expire}) and lower than \'refresh\' value.',
168 };
169 } ## end sub translation
170  
171 sub version {
172 return "$Zonemaster::Test::Zone::VERSION";
173 }
174  
175 sub zone01 {
176 my ( $class, $zone ) = @_;
177 my @results;
178  
179 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
180  
181 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
182 my $soa_mname = $soa->mname;
183 $soa_mname =~ s/[.]\z//smx;
184 if ( not $soa_mname ) {
185 push @results, info( MNAME_RECORD_DOES_NOT_EXIST => {} );
186 }
187 else {
188 foreach my $ip_address ( Zonemaster::Recursor->get_addresses_for( $soa_mname ) ) {
189  
190 my $ns = Zonemaster::Nameserver->new( { name => $soa_mname, address => $ip_address->short } );
191  
192 if ( _is_ip_version_disabled($ns) ) {
193 next;
194 }
195  
196 my $p_soa = $ns->query( $zone->name, q{SOA} );
197 if ( $p_soa and $p_soa->rcode eq q{NOERROR} ) {
198 if ( not $p_soa->aa ) {
199 push @results,
200 info(
201 MNAME_NOT_AUTHORITATIVE => {
202 ns => $soa_mname,
203 address => $ip_address->short,
204 zone => $zone->name,
205 }
206 );
207 }
208 }
209 else {
210 push @results,
211 info(
212 MNAME_NO_RESPONSE => {
213 ns => $soa_mname,
214 address => $ip_address->short,
215 }
216 );
217 }
218 } ## end foreach my $ip_address ( Zonemaster::Recursor...)
219 if ( none { $_ eq $soa_mname } @{ Zonemaster::TestMethods->method2( $zone ) } ) {
220 push @results,
221 info(
222 MNAME_NOT_IN_GLUE => {
223 mname => $soa_mname,
224 ns => join( q{;}, @{ Zonemaster::TestMethods->method2( $zone ) } ),
225 }
226 );
227 }
228 } ## end else [ if ( not $soa_mname ) ]
229 if ( not scalar @results ) {
230 push @results,
231 info(
232 MNAME_IS_AUTHORITATIVE => {
233 mname => $soa_mname,
234 zone => $zone->name,
235 }
236 );
237 }
238 } ## end if ( $p and my ( $soa ...))
239 else {
240 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
241 }
242  
243 return @results;
244 } ## end sub zone01
245  
246 sub zone02 {
247 my ( $class, $zone ) = @_;
248 my @results;
249  
250 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
251  
252 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
253 my $soa_refresh = $soa->refresh;
254 if ( $soa_refresh < $SOA_REFRESH_MINIMUM_VALUE ) {
255 push @results,
256 info(
257 REFRESH_MINIMUM_VALUE_LOWER => {
258 refresh => $soa_refresh,
259 required_refresh => $SOA_REFRESH_MINIMUM_VALUE,
260 }
261 );
262 }
263 else {
264 push @results,
265 info(
266 REFRESH_MINIMUM_VALUE_OK => {
267 refresh => $soa_refresh,
268 required_refresh => $SOA_REFRESH_MINIMUM_VALUE,
269 }
270 );
271 }
272 } ## end if ( $p and my ( $soa ...))
273 else {
274 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
275 }
276  
277 return @results;
278 } ## end sub zone02
279  
280 sub zone03 {
281 my ( $class, $zone ) = @_;
282 my @results;
283  
284 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
285  
286 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
287 my $soa_retry = $soa->retry;
288 my $soa_refresh = $soa->refresh;
289 if ( $soa_retry >= $soa_refresh ) {
290 push @results,
291 info(
292 REFRESH_LOWER_THAN_RETRY => {
293 retry => $soa_retry,
294 refresh => $soa_refresh,
295 }
296 );
297 }
298 else {
299 push @results,
300 info(
301 REFRESH_HIGHER_THAN_RETRY => {
302 retry => $soa_retry,
303 refresh => $soa_refresh,
304 }
305 );
306 }
307 } ## end if ( $p and my ( $soa ...))
308 else {
309 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
310 }
311  
312 return @results;
313 } ## end sub zone03
314  
315 sub zone04 {
316 my ( $class, $zone ) = @_;
317 my @results;
318  
319 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
320  
321 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
322 my $soa_retry = $soa->retry;
323 if ( $soa_retry < $SOA_RETRY_MINIMUM_VALUE ) {
324 push @results,
325 info(
326 RETRY_MINIMUM_VALUE_LOWER => {
327 retry => $soa_retry,
328 required_retry => $SOA_RETRY_MINIMUM_VALUE,
329 }
330 );
331 }
332 else {
333 push @results,
334 info(
335 RETRY_MINIMUM_VALUE_OK => {
336 retry => $soa_retry,
337 required_retry => $SOA_RETRY_MINIMUM_VALUE,
338 }
339 );
340 }
341 } ## end if ( $p and my ( $soa ...))
342 else {
343 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
344 }
345  
346 return @results;
347 } ## end sub zone04
348  
349 sub zone05 {
350 my ( $class, $zone ) = @_;
351 my @results;
352  
353 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
354  
355 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
356 my $soa_expire = $soa->expire;
357 my $soa_refresh = $soa->refresh;
358 if ( $soa_expire < $SOA_EXPIRE_MINIMUM_VALUE ) {
359 push @results,
360 info(
361 EXPIRE_MINIMUM_VALUE_LOWER => {
362 expire => $soa_expire,
363 required_expire => $SOA_EXPIRE_MINIMUM_VALUE,
364 }
365 );
366 }
367 if ( $soa_expire < $soa_refresh ) {
368 push @results,
369 info(
370 EXPIRE_LOWER_THAN_REFRESH => {
371 expire => $soa_expire,
372 refresh => $soa_refresh,
373 }
374 );
375 }
376 if ( not scalar @results ) {
377 push @results,
378 info(
379 EXPIRE_MINIMUM_VALUE_OK => {
380 expire => $soa_expire,
381 required_expire => $SOA_EXPIRE_MINIMUM_VALUE,
382 }
383 );
384 }
385 } ## end if ( $p and my ( $soa ...))
386 else {
387 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
388 }
389  
390 return @results;
391 } ## end sub zone05
392  
393 sub zone06 {
394 my ( $class, $zone ) = @_;
395 my @results;
396  
397 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
398  
399 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
400 my $soa_minimum = $soa->minimum;
401 if ( $soa_minimum > $SOA_DEFAULT_TTL_MAXIMUM_VALUE ) {
402 push @results,
403 info(
404 SOA_DEFAULT_TTL_MAXIMUM_VALUE_HIGHER => {
405 minimum => $soa_minimum,
406 highest_minimum => $SOA_DEFAULT_TTL_MAXIMUM_VALUE,
407 }
408 );
409 }
410 elsif ( $soa_minimum < $SOA_DEFAULT_TTL_MINIMUM_VALUE ) {
411 push @results,
412 info(
413 SOA_DEFAULT_TTL_MAXIMUM_VALUE_LOWER => {
414 minimum => $soa_minimum,
415 lowest_minimum => $SOA_DEFAULT_TTL_MINIMUM_VALUE,
416 }
417 );
418 }
419 else {
420 push @results,
421 info(
422 SOA_DEFAULT_TTL_MAXIMUM_VALUE_OK => {
423 minimum => $soa_minimum,
424 highest_minimum => $SOA_DEFAULT_TTL_MAXIMUM_VALUE,
425 lowest_minimum => $SOA_DEFAULT_TTL_MINIMUM_VALUE,
426 }
427 );
428 }
429 } ## end if ( $p and my ( $soa ...))
430 else {
431 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
432 }
433  
434 return @results;
435 } ## end sub zone06
436  
437 sub zone07 {
438 my ( $class, $zone ) = @_;
439 my @results;
440  
441 my $p = _retrieve_record_from_zone( $zone, $zone->name, q{SOA} );
442  
443 if ( $p and my ( $soa ) = $p->get_records( q{SOA}, q{answer} ) ) {
444 my $soa_mname = $soa->mname;
445 $soa_mname =~ s/[.]\z//smx;
446 my $addresses_nb = 0;
447 foreach my $address_type ( q{A}, q{AAAA} ) {
448 my $p_mname = Zonemaster::Recursor->recurse( $soa_mname, $address_type );
449 if ( $p_mname ) {
450 if ( $p_mname->has_rrs_of_type_for_name( $address_type, $soa_mname ) ) {
451 $addresses_nb++;
452 }
453 if ( $p_mname->has_rrs_of_type_for_name( q{CNAME}, $soa_mname ) ) {
454 push @results,
455 info(
456 MNAME_IS_CNAME => {
457 mname => $soa_mname,
458 }
459 );
460 }
461 else {
462 push @results,
463 info(
464 MNAME_IS_NOT_CNAME => {
465 mname => $soa_mname,
466 }
467 );
468 }
469 } ## end if ( $p_mname )
470 } ## end foreach my $address_type ( ...)
471 if ( not $addresses_nb ) {
472 push @results,
473 info(
474 MNAME_HAS_NO_ADDRESS => {
475 mname => $soa_mname,
476 }
477 );
478 }
479 } ## end if ( $p and my ( $soa ...))
480 else {
481 push @results, info( NO_RESPONSE_SOA_QUERY => {} );
482 }
483  
484 return @results;
485 } ## end sub zone07
486  
487 sub zone08 {
488 my ( $class, $zone ) = @_;
489 my @results;
490  
491 my $p = $zone->query_auth( $zone->name, q{MX} );
492  
493 if ( $p ) {
494 if ( $p->has_rrs_of_type_for_name( q{CNAME}, $zone->name ) ) {
495 push @results, info( MX_RECORD_IS_CNAME => {} );
496 }
497 else {
498 push @results, info( MX_RECORD_IS_NOT_CNAME => {} );
499 }
500 }
501 else {
502 push @results, info( NO_RESPONSE_MX_QUERY => {} );
503 }
504  
505 return @results;
506 } ## end sub zone08
507  
508 sub zone09 {
509 my ( $class, $zone ) = @_;
510 my @results;
511 my $info;
512  
513 my $p = $zone->query_auth( $zone->name, q{MX} );
514  
515 if ( $p ) {
516 if ( not $p->has_rrs_of_type_for_name( q{MX}, $zone->name ) ) {
517 my $p_a = _retrieve_record_from_zone( $zone, $zone->name, q{A} );
518 my $p_aaaa = _retrieve_record_from_zone( $zone, $zone->name, q{AAAA} );
519 if (
520 ( not defined $p_a and not defined $p_aaaa )
521 or ( ( not defined $p_a or not $p_a->has_rrs_of_type_for_name( q{A}, $zone->name ) )
522 and ( not defined $p_aaaa or not $p_aaaa->has_rrs_of_type_for_name( q{AAAA}, $zone->name ) ) )
523 )
524 {
525 push @results, info( NO_MX_RECORD => {} );
526 }
527 else {
528 my @as = defined $p_a ? $p_a->get_records_for_name( q{A}, $zone->name ) : ();
529 my @aaas = defined $p_aaaa ? $p_aaaa->get_records_for_name( q{AAAA}, $zone->name ) : ();
530 $info = join q{/}, map { $_ =~ /:/smx ? q{AAAA=} . $_->address : q{A=} . $_->address } ( @as, @aaas );
531 }
532 }
533 else {
534 my @mx = $p->get_records_for_name( q{MX}, $zone->name );
535 $info = join q{/}, map { my $tmp = q{MX=} . $_->exchange; $tmp =~ s/[.]\z//smx; $tmp } @mx;
536 }
537 if ( not scalar @results ) {
538 push @results, info( MX_RECORD_EXISTS => { info => $info } );
539 }
540 } ## end if ( $p )
541 else {
542 push @results, info( NO_RESPONSE_MX_QUERY => {} );
543 }
544  
545 return @results;
546 } ## end sub zone09
547  
548 sub _retrieve_record_from_zone {
549 my ( $zone, $name, $type ) = @_;
550  
551 # Return response from the first authoritative server that gives one
552 foreach my $ns ( @{ Zonemaster::TestMethods->method5( $zone ) } ) {
553  
554 if ( _is_ip_version_disabled($ns) ) {
555 next;
556 }
557  
558 my $p = $ns->query( $name, $type );
559  
560 if ( defined $p and scalar $p->get_records( $type, q{answer} ) > 0 ) {
561 return $p if $p->aa;
562 }
563 }
564  
565 return;
566 } ## end sub _retrieve_record_from_zone
567  
568 sub _is_ip_version_disabled {
569 my $ns = shift;
570  
571 if ( not Zonemaster->config->ipv4_ok and $ns->address->version == $IP_VERSION_4 ) {
572 Zonemaster->logger->add( SKIP_IPV4_DISABLED => { ns => "$ns" } );
573 return 1;
574 }
575  
576 if ( not Zonemaster->config->ipv6_ok and $ns->address->version == $IP_VERSION_6 ) {
577 Zonemaster->logger->add( SKIP_IPV6_DISABLED => { ns => "$ns" } );
578 return 1;
579 }
580  
581 return;
582 }
583  
584 1;
585  
586 =head1 NAME
587  
588 Zonemaster::Test::Zone - module implementing tests of the zone content in DNS, such as SOA and MX records
589  
590 =head1 SYNOPSIS
591  
592 my @results = Zonemaster::Test::Zone->all($zone);
593  
594 =head1 METHODS
595  
596 =over
597  
598 =item all($zone)
599  
600 Runs the default set of tests and returns a list of log entries made by the tests
601  
602 =item translation()
603  
604 Returns a refernce to a hash with translation data. Used by the builtin translation system.
605  
606 =item metadata()
607  
608 Returns a reference to a hash, the keys of which are the names of all test methods in the module, and the corresponding values are references to
609 lists with all the tags that the method can use in log entries.
610  
611 =item version()
612  
613 Returns a version string for the module.
614  
615 =back
616  
617 =head1 TESTS
618  
619 =over
620  
621 =item zone01($zone)
622  
623 Check that master nameserver in SOA is fully qualified.
624  
625 =item zone02($zone)
626  
627 Verify SOA 'refresh' minimum value.
628  
629 =item zone03($zone)
630  
631 Verify SOA 'retry' value is lower than SOA 'refresh' value.
632  
633 =item zone04($zone)
634  
635 Verify SOA 'retry' minimum value.
636  
637 =item zone05($zone)
638  
639 Verify SOA 'expire' minimum value.
640  
641 =item zone06($zone)
642  
643 Verify SOA 'minimum' (default TTL) value.
644  
645 =item zone07($zone)
646  
647 Verify that SOA master is not an alias (CNAME).
648  
649 =item zone08($zone)
650  
651 Verify that MX records does not resolve to a CNAME.
652  
653 =item zone09($zone)
654  
655 Verify that there is a target host (MX, A or AAAA) to deliver e-mail for the domain name.
656  
657 =back
658  
659 =cut