• help with dns.js

    From Nelgin@VERT/EOTLBBS to All on Friday, July 07, 2023 00:28:26
    This is more a Deuce or DM question but if anyone else can help, feel free.

    I cannot figure out how to use dns.js, basically...I would like to take an IP, reverse it, add a domain name and then look up against a specific server and get an A record or NXDOMAIN returned.

    For such a simple query I suppose I could use a DIY method, but it looks like it should be possible but I'm having problems constructing the correct calls.

    Any helps would be appreciated.
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to Nelgin on Friday, July 07, 2023 12:14:12
    Re: help with dns.js
    By: Nelgin to All on Fri Jul 07 2023 12:28 am

    This is more a Deuce or DM question but if anyone else can help, feel free.

    I cannot figure out how to use dns.js, basically...I would like to take an IP, reverse it, add a domain name and then look up against a specific server and get an A record or NXDOMAIN returned.

    For such a simple query I suppose I could use a DIY method, but it looks like it should be possible but I'm having problems constructing the correct calls.

    Any helps would be appreciated.

    dns.js is for asynchronous/non-blocking name look-ups. If you don't need that, then use resolve_ip() instead.
    --
    digital man (rob)

    Breaking Bad quote #50:
    I've got your restraining order right here. [grabs crotch] Restrain this! - WW Norco, CA WX: 73.3øF, 58.0% humidity, 3 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nelgin@VERT/EOTLBBS to Digital Man on Friday, July 07, 2023 17:13:08
    Re: help with dns.js
    By: Digital Man to Nelgin on Fri Jul 07 2023 12:14:12

    dns.js is for asynchronous/non-blocking name look-ups. If you don't need that, then use resolve_ip() instead.

    That's what I did in the end. Thanks.
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com