in reply to Re: dns server in perl
in thread dns server in perl

I agree, Net::DNS is slow. dnsd's caching is _really_ primitive, and was/is just a hack until I implement some more features, like a better cache system, a "real" place to keep zone files in, etc. My main focus currently is a DNS server that can be used for serving domain names (authoritative servers for domains) and then I plan to extend it to implement remote queries and some optimizations that crazyinsomniac has made me aware of.

What are you using to write your DNS server? Are you using Net::DNS modules to parse the message? or do you have some other and faster way of parsing the DNS query?

Replies are listed 'Best First'.
Re: Re: Re: dns server in perl
by JPaul (Hermit) on Feb 08, 2002 at 15:35 UTC
    Greetings,
    Yep, all the packet work and the outside query lookups are done by Net::DNS.

    I'm not entirely sure (Admittedly, I've never really gone into that much detail to debug) WHAT it is precisely that Net::DNS takes so long with, whether its the outside lookups, or the packet work.
    After caching an object, I can return it back very quickly (as is the point), so I don't think the basic packet disassembly/reassembly functions are particularly slow - I'm pretty sure the problem is mostly in the query/send/search functions.

    JP,
    -- Alexander Widdlemouse undid his bellybutton and his bum dropped off --