Skip to content
This repository
file 27 lines (18 sloc) 0.63 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
package DDG::Goodie::PublicDNS;

use DDG::Goodie;

primary_example_queries 'public dns';
description 'list common public DNS servers and their IP addresses';
name 'Public DNS';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/PublicDNS.pm';
category 'cheat_sheets';
topics 'sysadmin';

attribution github => ['https://github.com/warthurton', 'warthurton'];

triggers end => "public dns", "dns servers";

zci is_cached => 1;
zci answer_type => "public_dns";

my $text = share('publicdns.txt')->slurp;
my $html = share('publicdns.html')->slurp;

handle sub {
    $text, html => $html;
};

1;
Something went wrong with that request. Please try again.