• exec/load/dns.js

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Apr 3 00: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 typesSRV, NAPTR, and URI
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Apr 3 00: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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Apr 3 21: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 lookupsThe DNS_blocking class supports the same API as the DNS class, butdoes not use events, so any method will complete before returning.As such, the callback argument is optional.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Apr 4 13: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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Apr 4 18: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 5secAlso, check that the opcode and
    response flag are correct whenparsing responses.When handling a resolve call, ensure no errors occured.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Apr 5 17: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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Apr 5 17: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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Apr 5 19: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()
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Apr 29 07:02:53 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/f9da3080214a01b898c81659
    Modified Files:
    exec/load/dns.js
    Log Message:
    Fix DNS response flag parsing.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sat Jun 5 18: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())
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Randy Sommerfeld@1:103/705 to Git commit to main/sbbs/master on Tue Dec 14 21: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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Randy Sommerfeld@1:103/705 to Git commit to main/sbbs/master on Sun Jan 2 16: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
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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/availableMy /etc/resolv.conf was wiped by Network Manager (gee, thanks), soircd.js was throwing the following unhelpful exceptions when startingup:Feb 25 13:47:51 git
    jsexec[19108]: !JavaScript : uncaught exception: Unable to create any socketsFeb 25 13:47:51 git jsexec[19108]: !JavaScript : uncaught exception: Unable to create any socketsFirst, instead of throwing a string, throw an Error
    object so we canactually know where the exception ocurred. Please, everyone, throw Errorsnot Strings.Second, throw a different more helpful exception if there are no nameserversspecified in the DNS constructor or configured on the system.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)