Skip to content

Instantly share code, notes, and snippets.

@oakaigh
Last active July 14, 2018 02:28
Show Gist options
  • Save oakaigh/0c58ca791be75fc4d01221742f32a2c0 to your computer and use it in GitHub Desktop.
Save oakaigh/0c58ca791be75fc4d01221742f32a2c0 to your computer and use it in GitHub Desktop.
the Berkeley Lynx

Blynx

Berkeley Lynx Theoretical
A Domain Name System

Configuration


server {
    address = 8.8.8.8#543;
    resolve = {8.8.4.4#530, /etc/resolv.conf, /etc/blynx/*.conf, /etc/blynx/*.*};
    query = {tcp, udp, edns};
    cache = false;
    ttl = 15w;
    reject = {208.69.32.0/24};  # fail
    exclude = {208.69.34.0/24, g*.edu}; # none of this server's business
    validate = {
        ping,   # ICMP ping response addr   - IP Address
        http,   # HTTP based test - IP Address
        rtime   # HTTP based test - with SNI response
    };  # maintenance job here
    criterion = {
        interval = immediate;
        after = next;
        after = 124.6.6.7;
        after = [BLynx];
        ping < 100ms;
        http > 400ms;
        rtime <= 300ms;
    };

}

[BLynx] {

    127.0.0.1   -   *.blynx.com
    127.0.0.1   -   www.blynx*.com (127.0.0.1#5353)
    8.8.8.8         ns1.blynx.com
    0.0.0.0         *.withblynx.com

    [blynxd.com]
            NS      a.withblynx.com
    with    CNAME   services.dblynx.com
    contrib A       127.0.0.1
    fastly  AAAA    aaaa:bbbb::11
    @	MX	10	    mail.dblynx.com

    8.8.8.8         ns2.blynx.com
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment