1 package System::Introspector::Probe::ResolvConf;
4 use System::Introspector::Util qw(
9 has resolv_conf_file => (
11 default => sub { '/etc/resolv.conf' },
17 resolv_conf_file => transform_exceptions {
18 my $file = $self->resolv_conf_file;
21 body => scalar output_from_file $file,
33 System::Introspector::Probe::ResolvConf - Gather name resolution configuration
37 Reads a C<resolv.conf> file to gather information about name resolution.
41 =head2 resolv_conf_file
43 The path to the C<resolv.conf> file that should be read. Defaults to
50 =item L<System::Introspector>
56 Copyright (c) 2012 the L<System::Introspector>
57 L<AUTHOR|System::Introspector/AUTHOR>,
58 L<CONTRIBUTORS|System::Introspector/CONTRIBUTORS> and
59 L<SPONSORS|System::Introspector/SPONSORS>.
63 This library is free software and may be distributed under the same terms