NAME
Net::DNSServer::Proxy - A Net::DNSServer::Base which simply forwards a request to another name server to resolve.
SYNOPSIS
#!/usr/bin/perl -w -T
use strict;
use Net::DNSServer;
use Net::DNSServer::Proxy;
# Specify which remote server to proxy to
my $resolver = new Net::DNSServer::Proxy {
real_dns_server => "12.34.56.78",
};
-- or --
# Or, it will default to the first "nameserver"
# entry in /etc/resolv.conf
my $resolver = new Net::DNSServer::Proxy;
run Net::DNSServer {
priority => [$resolver],
};
DESCRIPTION
This resolver does not actually do any resolving itself. It simply forwards the request to another server and responds with whatever the response is from other server.
new
The new() method takes a hash ref of properties.
real_dns_server (optional)
This value is the IP address of the server to proxy the requests to. This server should have a nameserver accepting connections on the standard named port (53). It defaults to the first "nameserver" entry found in the /etc/resolv.conf file.
AUTHOR
Rob Brown, rob@roobik.com
SEE ALSO
Net::Bind::Resolv, Net::DNSServer::Base, resolv.conf(5), resolver(5)
COPYRIGHT
Copyright (c) 2001, Rob Brown. All rights reserved. Net::DNSServer is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: Proxy.pm,v 1.8 2001/06/08 07:48:50 rob Exp $