GEO IP PDNS RECURSOR

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GEO IP PDNS RECURSOR

Federico87
Hi All,

Is it possible to enable GEO IP localization for PDS Recursor?. I need it in order to populate the graphs on DSC

(DSC Conf)

 client_subnet_accum => {
    plot_type => 'accum1d',
    keys        => [ qw(?? IA LA AP RI AR) ],
    names       => [ qw(Unknown IANA LACNIC APNIC RIPE ARIN) ],
    colors      => [ qw(black red purple yellow blue brightgreen) ],
    label_func => sub {
        use Geo::IP;
        my $l = Geo::IP->new(GEOIP_MEMORY_CACHE|GEOIP_CHECK_CACHE);
        $l->country_code_by_addr(shift) || '??';
    },
    color_func => sub {
        "??";
    },
    data_reader => \&DSC::extractor::read_data2,
    data_summer => \&DSC::grapher::data_summer_0d,
    munge_func  => \&DSC::grapher::munge_anonymize_ip,
    yaxes       => $std_accum_yaxes,
    plottitle   => 'Busiest Client Subnets',
    map_legend  => 1,
  },