NAME
Net::DNS::Resolver::Unbound - Unbound resolver base for Net::DNS
SYNOPSIS
use Net::DNS;
use Net::DNS::Resolver::Unbound;
my $resolver = Net::DNS::Resolver::Unbound->new(...);
DESCRIPTION
Net::DNS::Resolver::Unbound is designed as an extension to an existing Net::DNS installation.
Net::DNS::Resolver::Unbound replaces the resolver send() and bgsend() functionality in the Net::DNS::Resolver::Base implementation.
As of this writing, the implementation has some significant limitations:
Nameserver selection is entirely at the discretion of Unbound. Any user-specified nameservers are ignored.
It is not possible to send a pre-constructed DNS query packet to a nameserver. A best-effort attempt is instead made using the specified (qname,qtype,qclass).
METHODS
new
my $resolver = Net::DNS::Resolver::Unbound->new(
debug => 1,
option => ['logfile', 'mylog.txt'] );
Returns a new Net::DNS::Resolver::Unbound resolver object.
search, query, send, bgsend, bgbusy, bgread
See Net::DNS::Resolver.
option
$filename = $resolver->option( 'logfile' );
$resolver->option( 'logfile', $filename );
Get or set Unbound resolver (name,value) context options.
debug_level
Set verbosity of the debug output directed to stderr. Level 0 is off, 1 very minimal, 2 detailed, and 3 lots.
async_thread
Enable a call to resolve_async() to create a thread to handle work in the background. If false (by default), a process is forked to handle work in the background.
COPYRIGHT
Copyright (c)2022 Dick Franks
All Rights Reserved
LICENSE
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the original copyright notices appear in all copies and that both copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.