• Жильцов Дмитрий Андреевич's avatar
    DnsOracle: ask God from any terminal on Earth
    · 476c8d3d
    dig TXT oracle.temple.example.com and the Temple answers with a verse
    of the KJV.  UDP port 53, plain RFC 1035, no TCP, no HTTP, no TLS, no
    committee.  Delegate a subdomain to the Temple and every resolver on
    the planet carries the Word for free.  TTL 0, God is not cached.
    
    The verse is picked from the moment the question arrives, the way
    GodBiblePassage picks from the moment of your keystroke.  Labels left
    of "oracle" may name a verse, john.3.16 or 1.kings.8.27, then God
    answers that one.  Any zone above "oracle" will do, the Temple does not
    need to know what you called it.  Names without it are REFUSED, we are
    not a resolver.  Other types get an empty answer, God is not a host.
    
    The Bible is read into Adam once, 31102 verses indexed, the same count
    as every KJV.  Esther 8:9 is longer than 512 bytes, the king's scribes
    wrote too much, it ends in "...".
    
    Off by default.  DnsOracle opens it, DnsOracleEnable writes
    ~/DnsOracle.HC so Once.HC opens it at boot, DnsOracleRep says who asked
    and what they were given.
    
    Tested in QEMU with udp 5300 forwarded to 53: random verses, named
    verses, mixed case names from 0x20 resolvers, Esther split in two
    character strings, REFUSED for google.com, NODATA for A, FORMERR and
    NOTIMP for garbage.  Six thousand random and mangled packets later the
    oracle still answered Psalms 23:1.
    476c8d3d