in reply to Resolving DNS of local network
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Resolving DNS of local network
by IB2017 (Pilgrim) on Jan 23, 2018 at 10:52 UTC | |
by marto (Cardinal) on Jan 23, 2018 at 10:57 UTC |