@@ -152,7 +152,7 @@ like(http_host_header('cname.example.net', '/'), qr/200 OK/,
152
152
# CNAME + A combined answer
153
153
# demonstrates the name in answer section different from what is asked
154
154
155
- like(http_host_header(' cname_a .example.net' , ' /' ), qr / 200 OK/ , ' CNAME + A' );
155
+ like(http_host_header(' cname-a .example.net' , ' /' ), qr / 200 OK/ , ' CNAME + A' );
156
156
157
157
# CNAME refers to non-existing A
158
158
@@ -247,11 +247,11 @@ like(http_host_header('ttl.example.net', '/valid'), qr/502 Bad/,
247
247
# When ttl in CNAME is expired, the answer should not be served from cache.
248
248
# Catch this by returning SERVFAIL on the 2nd and subsequent queries.
249
249
250
- http_host_header(' cname_a_ttl2 .example.net' , ' /' );
250
+ http_host_header(' cname-a-ttl2 .example.net' , ' /' );
251
251
252
252
sleep 2;
253
253
254
- like(http_host_header(' cname_a_ttl2 .example.net' , ' /' ), qr / 502 Bad/ ,
254
+ like(http_host_header(' cname-a-ttl2 .example.net' , ' /' ), qr / 502 Bad/ ,
255
255
' CNAME + A with expired CNAME ttl' );
256
256
257
257
like(http_host_header(' example.net' , ' /invalid' ), qr / 502 Bad/ , ' no resolver' );
@@ -265,7 +265,7 @@ my $s2 = http_get('/bad', start => 1);
265
265
http_end($s );
266
266
ok(http_end($s2 ), ' timeout handler on 2nd request' );
267
267
268
- like(http_host_header(' fe_id .example.net' , ' /' ), qr / 502 Bad/ , ' format error' );
268
+ like(http_host_header(' fe-id .example.net' , ' /' ), qr / 502 Bad/ , ' format error' );
269
269
270
270
# several requests waiting on same name query
271
271
# 1st request aborts before name is resolved
@@ -356,7 +356,7 @@ sub reply_handler {
356
356
357
357
push @rdata , rd_addr($ttl , ' 127.0.0.1' );
358
358
359
- } elsif ($name eq ' fe_id .example.net' && $type == A) {
359
+ } elsif ($name eq ' fe-id .example.net' && $type == A) {
360
360
$id = 42;
361
361
$rcode = FORMERR;
362
362
@@ -421,7 +421,7 @@ sub reply_handler {
421
421
select undef , undef , undef , 2.1;
422
422
return ;
423
423
424
- } elsif ($name eq ' cname_a .example.net' ) {
424
+ } elsif ($name eq ' cname-a .example.net' ) {
425
425
push @rdata , pack (" n3N nCa5n" , 0xc00c, CNAME, IN, $ttl ,
426
426
8, 5, ' alias' , 0xc014);
427
427
@@ -432,16 +432,16 @@ sub reply_handler {
432
432
4, split (/ \. / , ' 127.0.0.1' ));
433
433
}
434
434
435
- } elsif ($name eq ' cname_a_ttl2 .example.net' && $type == A) {
435
+ } elsif ($name eq ' cname-a-ttl2 .example.net' && $type == A) {
436
436
push @rdata , pack (" n3N nCa18n" , 0xc00c, CNAME, IN, 1,
437
- 21, 18, ' cname_a_ttl2_alias ' , 0xc019);
437
+ 21, 18, ' cname-a-ttl2-alias ' , 0xc019);
438
438
if (++$state -> {cttl2cnt } >= 2) {
439
439
$rcode = SERVFAIL;
440
440
}
441
441
push @rdata , pack (' n3N nC4' , 0xc036, A, IN, $ttl ,
442
442
4, split (/ \. / , ' 127.0.0.1' ));
443
443
444
- } elsif ($name eq ' cname_a_ttl_alias .example.net' && $type == A) {
444
+ } elsif ($name eq ' cname-a-ttl-alias .example.net' && $type == A) {
445
445
push @rdata , rd_addr($ttl , ' 127.0.0.1' );
446
446
447
447
} elsif ($name eq ' cname2.example.net' ) {
0 commit comments