• help with dns.js

    From Nelgin@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 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
  • From Nelgin@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