1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Class to setup a number of nameservers that respond to specific DNS queries

(QNAME,QTYPE) by prespecified answers. This class is to be used in test suites
where you want to have servers to show predefined behavior.

If the server will do a lookup based on QNAME,QTYPE and return the specified
data. If there is no QNAME, QTYPE match the server will return a SERVFAIL.

A log will be written to STDERR it contains time, IP/PORT, QNAME, QTYPE, RCODE.

WWW:    http://search.cpan.org/dist/Net-DNS-TestNS/

PR:		ports/148161
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Feature safe:	yes
This commit is contained in:
Wen Heping 2010-06-27 01:21:47 +00:00
parent 8f2d200d40
commit 331728e9f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257034
5 changed files with 48 additions and 0 deletions

View File

@ -99,6 +99,7 @@
SUBDIR += p5-Net-DNS-RR-SRV-Helper
SUBDIR += p5-Net-DNS-Resolver-Programmable
SUBDIR += p5-Net-DNS-SEC
SUBDIR += p5-Net-DNS-TestNS
SUBDIR += p5-Net-DNS-ToolKit
SUBDIR += p5-Net-DNS-ZoneCheck
SUBDIR += p5-Net-DNS-ZoneFile

View File

@ -0,0 +1,25 @@
# New ports collection makefile for: p5-Net-DNS-TestNS
# Date created: 2010-06-26
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
#
# $FreeBSD$
#
PORTNAME= Net-DNS-TestNS
PORTVERSION= 1.10
CATEGORIES= dns perl5
MASTER_SITES= CPAN/../../authors/id/O/OL/OLAF/
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@sunpoet.net
COMMENT= Perl extension for simulating simple Nameservers
BUILD_DEPENDS= p5-Net-DNS>0.64:${PORTSDIR}/dns/p5-Net-DNS \
p5-XML-LibXML>1.53:${PORTSDIR}/textproc/p5-XML-LibXML
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Net::DNS::TestNS.3 Net::DNS::TestNS::DTD.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Net-DNS-TestNS-1.10.tar.gz) = f227f6dadadbed28d32b4c8b7ff83a16
SHA256 (Net-DNS-TestNS-1.10.tar.gz) = 8126573ff1c94891f7225d5a1cbf058b5fc0d65fbfa00fbbb037928fc3f4559f
SIZE (Net-DNS-TestNS-1.10.tar.gz) = 16905

View File

@ -0,0 +1,10 @@
Class to setup a number of nameservers that respond to specific DNS queries
(QNAME,QTYPE) by prespecified answers. This class is to be used in test suites
where you want to have servers to show predefined behavior.
If the server will do a lookup based on QNAME,QTYPE and return the specified
data. If there is no QNAME, QTYPE match the server will return a SERVFAIL.
A log will be written to STDERR it contains time, IP/PORT, QNAME, QTYPE, RCODE.
WWW: http://search.cpan.org/dist/Net-DNS-TestNS/

View File

@ -0,0 +1,9 @@
@comment $FreeBSD$
%%SITE_PERL%%/Net/DNS/TestNS.pm
%%SITE_PERL%%/Net/DNS/TestNS/DTD.pm
%%SITE_PERL%%/Net/DNS/TestNS/Nameserver.pm
%%SITE_PERL%%/Net/DNS/TestNS/Packet.pm
%%SITE_PERL%%/mach/auto/Net/DNS/TestNS/.packlist
@dirrm %%SITE_PERL%%/mach/auto/Net/DNS/TestNS
@dirrm %%SITE_PERL%%/Net/DNS/TestNS
@dirrmtry %%SITE_PERL%%/Net/DNS