1 package System::Introspector::Probe::Hosts;
4 use System::Introspector::Util qw(
11 default => sub { '/etc/hosts' },
16 my $file = $self->hosts_file;
18 hosts_file => transform_exceptions {
21 body => scalar output_from_file $file,
33 System::Introspector::Hosts - Gather known hosts
37 Reads a C<hosts> file to produce a list of known hosts
43 The path to the C<hosts> file that should be read. Defaults to C</etc/hosts>.
49 =item L<System::Introspector>