Net::Domain provides the hostdomain which seems to be what you are looking for:
#!/usr/bin/perl use strict; use warnings; use feature 'say'; use Net::Domain qw(hostdomain); say hostdomain;
In reply to Re: Resolving DNS of local network
by marto
in thread Resolving DNS of local network
by IB2017
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |