• Re: dns_get_record() with timeout?

    From Raul Molnar@21:1/5 to Salvatore on Mon Feb 13 08:09:05 2023
    Hi,

    See

    https://github.com/bluelibraries/dns

    This will help you to control your timeout (and more)/

    On Friday, November 16, 2012 at 5:23:46 PM UTC+2, Salvatore wrote:
    On 2012-11-16, Simon <b...@example.com> wrote:
    Would anybody know of a fairly generic way of getting the IP addresses
    of a site, (ipv4 and ipv6 when available), while protecting myself from timeouts.
    You have to write your own function that will build a UDP packet to
    query a DNS server, call the socket_set_timeout() function to set a
    timeout value, send the UDP packet, and hope that you get a response.

    An example of how you can do this is located at php.net:

    http://www.php.net/manual/en/function.gethostbyaddr.php#46869

    --
    Blah blah bleh...
    GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From J.O. Aho@21:1/5 to Raul Molnar on Mon Feb 13 18:33:24 2023
    On 2/13/23 17:09, Raul Molnar wrote:

    Hi,

    See

    I think you didn't see "November 16, 2012", I doubt the OP been waiting
    for your reply for 3741 days.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Raul Molnar@21:1/5 to J.O. Aho on Fri Mar 24 10:05:45 2023
    On Monday, February 13, 2023 at 7:33:32 PM UTC+2, J.O. Aho wrote:
    On 2/13/23 17:09, Raul Molnar wrote:

    Hi,

    See

    I think you didn't see "November 16, 2012", I doubt the OP been waiting
    for your reply for 3741 days.


    https://github.com/bluelibraries/dns

    I've added a playground for it

    https://gethostinfo.com/records

    It should be short timeout here to maximum 10 seconds.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jerry Stuckle@21:1/5 to J.O. Aho on Fri Mar 24 13:24:54 2023
    On 2/13/2023 12:33 PM, J.O. Aho wrote:
    On 2/13/23 17:09, Raul Molnar wrote:

    Hi,

    See

    I think you didn't see "November 16, 2012", I doubt the OP been waiting
    for your reply for 3741 days.



    I think your point went way over his head, J.O. :)

    --
    ==================
    Remove the "x"'s from my email address
    Jerry Stuckle
    stucklex.jerryx@gmail.com
    ==================

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From J.O. Aho@21:1/5 to Jerry Stuckle on Fri Mar 24 21:58:24 2023
    On 24/03/2023 18:24, Jerry Stuckle wrote:
    On 2/13/2023 12:33 PM, J.O. Aho wrote:
    On 2/13/23 17:09, Raul Molnar wrote:

    Hi,

    See

    I think you didn't see "November 16, 2012", I doubt the OP been
    waiting for your reply for 3741 days.



    I think your point went way over his head, J.O. :)

    :)
    Too big numbers for him to understand, but more important to post github
    url.

    --
    //Aho

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)