NAME
Geo::Location::IP::Model::Domain - DNS domain details
VERSION
version 0.003
SYNOPSIS
my
$reader
= Geo::Location::IP::Database::Reader->new(
file
=>
'/path/to/Domain.mmdb'
,
);
eval
{
my
$domain_model
=
$reader
->domain(
ip
=>
'1.2.3.4'
);
my
$domain
=
$domain_model
->domain;
printf
"domain is %s\n"
,
$domain
;
};
DESCRIPTION
This class contains details about a DNS domain.
SUBROUTINES/METHODS
new
my
$domain_model
= Geo::Location::IP::Model::Domain->new(
domain
=>
'example.com'
.
ip_address
=>
$ip_address
,
);
Creates a new object with data from an IP address query in a Domain database.
All fields may contain undefined values.
domain
my
$domain
=
$domain_model
->domain;
Returns the domain name as a string.
ip_address
my
$ip_address
=
$domain_model
->ip_address;
Returns the IP address the data is for as a Geo::Location::IP::Address object.
DIAGNOSTICS
None.
CONFIGURATION AND ENVIRONMENT
None.
DEPENDENCIES
None.
INCOMPATIBILITIES
None.
BUGS AND LIMITATIONS
None known.
AUTHOR
Andreas Vögele <voegelas@cpan.org>
LICENSE AND COPYRIGHT
Copyright (C) 2025 Andreas Vögele
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.