• exec/load/dns.js

    From Deuc¿@VERT to Git commit to main/sbbs/master on Fri Apr 2 20:33:11 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/6ff18ca2d027bd12d4a640e6
    Modified Files:
    exec/load/dns.js
    Log Message:
    Add untested parsers for interesting record types

    SRV, NAPTR, and URI

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri Apr 2 20:34:04 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/22b8c2ab06532e3efff8ad99
    Modified Files:
    exec/load/dns.js
    Log Message:
    At least test that it compiles.

    Sheesh.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Apr 3 17:44:30 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/48a21fc6b04d0121d4936c0f
    Modified Files:
    exec/load/dns.js
    Log Message:
    Add DNS_blocking sub-class for non-event driven lookups

    The DNS_blocking class supports the same API as the DNS class, but
    does not use events, so any method will complete before returning.
    As such, the callback argument is optional.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Apr 4 09:58:33 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/73f3c98add2c71c12ed4280b
    Modified Files:
    exec/load/dns.js
    Log Message:
    Use a single class, and pass in a synchronous flag.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sun Apr 4 14:16:15 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/be1ad28063cddbbaf0ab51dd
    Modified Files:
    exec/load/dns.js
    Log Message:
    Change default failures to 3 and timeout to 5sec

    Also, check that the opcode and response flag are correct when
    parsing responses.

    When handling a resolve call, ensure no errors occured.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon Apr 5 13:11:05 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d52a4c5c51ac4e5178933cd6
    Modified Files:
    exec/load/dns.js
    Log Message:
    Use this, not ctx in handlers.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon Apr 5 13:29:48 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/8e3a8aa74b820ad45305bae0
    Modified Files:
    exec/load/dns.js
    Log Message:
    Only the async query needs the timeout now, so move it back in.

    Also, have handle_response() return errors.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Mon Apr 5 15:21:38 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/6021475e628e55c94d255bd4
    Modified Files:
    exec/load/dns.js
    Log Message:
    Fixes for async lookups

    - Add a unique number to event names for each request
    Prevents responses from being acepted by multiple queries
    - Don't set Socket.dnsObject for synchronous lookups
    - OPcode of 2 is used for status replies (ie: NXDOMAIN)
    - Be more careful construct result array in request()

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Thu Apr 29 03:02:53 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/f9da3080214a01b898c81659
    Modified Files:
    exec/load/dns.js
    Log Message:
    Fix DNS response flag parsing.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Jun 5 14:33:45 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d5881f9b91824d2e3435474c
    Modified Files:
    exec/load/dns.js
    Log Message:
    Fix parsing of the return code.

    This fixes an issue in TypeClass lookups (such as used by reverse())

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Randy Sommerfeld@VERT to Git commit to main/sbbs/master on Tue Dec 14 16:56:49 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/e543d8ad6ce2befb0982fefb
    Modified Files:
    exec/load/dns.js
    Log Message:
    Allow IPv{4,6} only queries while retaining backwards compatibility.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Randy Sommerfeld@VERT to Git commit to main/sbbs/master on Sun Jan 2 11:37:37 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/797b95b7b0f3845d13e41a48
    Modified Files:
    exec/load/dns.js
    Log Message:
    Actually call back on a timeout

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Feb 25 15:01:54 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/2e9f58be866886dbe6d8ad10
    Modified Files:
    exec/load/dns.js
    Log Message:
    Throw a more helpful exception when no nameservers specified/available

    My /etc/resolv.conf was wiped by Network Manager (gee, thanks), so
    ircd.js was throwing the following unhelpful exceptions when starting
    up:
    Feb 25 13:47:51 git jsexec[19108]: !JavaScript : uncaught exception: Unable to create any sockets
    Feb 25 13:47:51 git jsexec[19108]: !JavaScript : uncaught exception: Unable to create any sockets

    First, instead of throwing a string, throw an Error object so we can
    actually know where the exception ocurred. Please, everyone, throw Errors
    not Strings.

    Second, throw a different more helpful exception if there are no nameservers specified in the DNS constructor or configured on the system.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net