File: cname.t

package info (click to toggle)
libnet-nslookup-perl 2.04-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 120 kB
  • sloc: perl: 152; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl -w

# vim: set ft=perl:

use strict;
use Test::More tests => 2;
my ($res, @res);

use_ok("Net::Nslookup");

# Get CNAME record
$res = nslookup(host => "ctest.boston.com", type => "CNAME");
is($res, "www.boston.com", "nslookup(host => 'ctest.boston.com', type => CNAME) -> www.boston.com");