Help for this page

Select Code to Download


  1. or download this
       open(STDERR, ">&STDOUT") if $redirect_stderr;
       exec("/usr/bin/nslookup", "-q=$query_type",
            $input, $nameserver) or die "exec: $!";
    
  2. or download this
    print "Without:\n";
    print "| $_\n" foreach nslookup('test', 'A');
    ...
    
    print "With:\n";
    print "| $_\n" foreach nslookup('test', 'A');
    
  3. or download this
    Without:
    Note:  nslookup is deprecated and may be removed from future releases.
    ...
    | Address:      10.0.0.1#53
    |
    | ** server can't find test: NXDOMAIN