• exec/load/dns.js

    From Deuc¿@VERT to Git commit to main/sbbs/master on Saturday, April 03, 2021 00:33:11
    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 Saturday, April 03, 2021 00:34:04
    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 Saturday, April 03, 2021 21:44:30
    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 Sunday, April 04, 2021 13:58:33
    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 Sunday, April 04, 2021 18:16:15
    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 Monday, April 05, 2021 17:11:05
    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 Monday, April 05, 2021 17:29:48
    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 Monday, April 05, 2021 19:21:38
    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 Thursday, April 29, 2021 07:02:53
    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 Saturday, June 05, 2021 18:33:45
    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 Tuesday, December 14, 2021 21:56:49
    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 Sunday, January 02, 2022 16:37:37
    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 Saturday, February 25, 2023 15:01:54
    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