Re: Protocols.DNS.server anyone used it in a DNS server?

"Tobias S. Josefowitz" <[email protected]> Thu, 8 Feb 2018 08:59:08 +0100
Newsgroups gmane.comp.lang.pike.devel,gmane.comp.lang.pike.user
Message-ID <CAEZM=bN7yDtEwsEGHaUXaNnAn6rY40Dkd_yH=7hmA2LkxK4cvA@mail.gmail.com>
On Thu, Feb 8, 2018 at 2:04 AM, Stephen R. van den Berg <[email protected]> wrote:
> Has anyone ever used Protocols.DNS.server in an application
> (to implement a mini-DNS server)?

Yes. I've myself used it in many applications and seen it used in some more.

> Is the code available?

I could give you access to a private github repo with a general
purpose authoritative nameserver implementation, never fully got
around to getting it into releasable state though. It does things like
this:

object zone = DS.Zone("syncdb.org",
    DS.Record.SOA("", "ns2.kiwihaven.com", "tobij.tobij.de", 2015111500, 3600),
    DS.Record.NS("", "ns1.kiwihaven.com"),
    DS.Record.NS("", "ns2.kiwihaven.com"),
    DS.Record.NS("", "ns4.kiwihaven.com"),
    DS.Record.A("", "127.0.0.1"),
    DS.Record.MX("", 10, "hi.tobij.de"),
    DS.Record.A("ns1", "209.239.120.27"),
    DS.Record.A("ns2", "210.48.10.69"),
    DS.Record.A("ns3", "178.63.103.12"),
    DS.Record.A("www", "127.0.0.127"),
    DS.Record.Geo("geo", ([ "SE" : DS.Record.A("geo", "209.239.120.27"),
    "NO" : DS.Record.A("geo", "209.239.120.27"),
    "_" : DS.Record.A("geo", "188.40.42.213") ]), ipdb)
);

Tobi