You are not logged in.

#1 2009-03-03 18:47:17

fana-m
Member
Registered: 2007-06-17
Posts: 13

[solved] pdnsd strange behavior

Hey,

ive recently installed pdnsd to speed-up my firefox a bit, works w/o a problem.
but as i visited youtube, pdnsd makes things strange.
normaly it takes up to ~ 5 secs to connect to the video file and the download is also fast.
but with running pdnsd it takes ( when it connects ) about up to ~ 30 - 60 secconds to get the file
and the download itself is like pain, takes about 6 times longer the w/o pdnsd.

maybe / hopefully someone had the samproblem and solved it.

fana-m

global {
    perm_cache=5120;
    cache_dir="/var/cache/pdnsd";
    run_as="pdnsd";
    server_ip = 127.0.0.1;
    status_ctl = on;
    query_method=udp_tcp;
    min_ttl=15m;
    max_ttl=1w;
    timeout=10;
}

server {
    label = "opendns";
    ip = 208.67.222.222, 208.67.220.220;
    reject = 208.69.32.0/24, 208.69.34.0/24, 208.67.219.0/24;
    reject_policy = fail;
    timeout = 30;
    uptest = ping;
        ping_timeout = 50;
    interval = 15m;
    preset = off;
    purge_cache=off;
}

server {
    label = "arcordns";
    ip = 195.50.140.114, 195.50.140.252;
    reject_policy = fail;
    timeout = 30;
    uptest = ping;
        ping_timeout = 50;
    interval = 15m;
    preset = off;
    purge_cache=off;
}

server {
    label = "router";
    ip = 192.168.178.1;
    reject_policy = fail;
    timeout = 30;
    uptest = ping;
        ping_timeout = 50;
    interval = 15m;
    preset = off;
    purge_cache=off;
}

source {
    owner=localhost;
#    serve_aliases=on;
    file="/etc/hosts";
}

rr {
    name=localhost;
    reverse=on;
    a=127.0.0.1;
    owner=localhost;
    soa=localhost,root.localhost,42,86400,900,86400,86400;
}

Last edited by fana-m (2009-03-04 14:33:35)

Offline

#2 2009-03-03 21:18:07

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [solved] pdnsd strange behavior

What resolvers do you use when you aren't using opendns.
If you use your ISPs, then that would explain it. Google (and youtube) generally do geodns, which relies on the geoip of the nameserver doing the query against their authoritative dns servers, to reply with an ip that is much closer to the dns server.

So if you point your primary resolver to .. say.. opendns, then you get webservers that are close to opendns, but not close to you. When you use your ISPs dns servers, those are generally one hop upstream (or at least N hops directly upstream) from you, so you aren't lampooning the system.

Could be something else happening, but if when you arent using pdnsd you end up using your ISPs nameservers, that would certainly explain it. If you still use opendns when you aren't using pdnsd, then I have no idea.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-03-04 14:33:11

fana-m
Member
Registered: 2007-06-17
Posts: 13

Re: [solved] pdnsd strange behavior

Hi,
thanks. You'r right it was the problem with this geoip and the opendns-server

removing it from the pdnsd.conf helped, youtube is now at normal speed.

made some tests w/o pdnsd
router ( which gets isp's dns ) YT = normal
ISP as nameserver YT = normal
opendns as nameserver YT = slow

with pdnsd was the same as w/o

Offline

Board footer

Powered by FluxBB