Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Get VPS's IP and the IP's reverse DNS (PTR)
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Get VPS's IP and the IP's reverse DNS (PTR)

I forgot if I have posted the subject here, but I did made a service you can try:

$ curl -sL myhostnames.com
Your IP: 23.95.246.240, Hostname: 23-95-246-240-host.colocrossing.com.

thanks. :) :)

Comments

  • bruh21bruh21 Member, Host Rep

    cool

    Thanked by 1jpeng
  • Better if json or xml output is available

  • aquaaqua Member, Patron Provider

    Or just use IPInfo

  • Don't need sL with icanhazip.

    Thanked by 1Ganonk
  • jpengjpeng Barred

    @TimboJones said:
    Don't need sL with icanhazip.

    I don't understand. without -sL it doesn't work.

  • JabJabJabJab Member
    edited July 2021

    @jpeng said: I don't understand. without -sL it doesn't work.

    idk, works for me.

    root@hostname2:~# curl icanhazip.com
    50.3.72.19
    

    No freaking idea why you force httpS there in your website, totally useless.

    Thanked by 1TimboJones
  • HarambeHarambe Member, Host Rep

    curl ipinfo.io
    +
    curl v6.ipinfo.io

  • jpengjpeng Barred

    @Harambe said:
    curl ipinfo.io
    +
    curl v6.ipinfo.io

    they are probably different from my usage.
    myhostnames.com answers with IP and its reverse DNS.
    For querying IP info I just use the other service such as IPAPI.co.

  • wget -qO- http://ipecho.net/plain ; echo

  • yoursunnyyoursunny Member, IPv6 Advocate

    @JabJab said:

    No freaking idea why you force httpS there in your website, totally useless.

    'cause they want to hide behind Cloudflare?
    It's prolly a Workers script, as such API doesn't need a backend server.

  • JabJabJabJab Member

    @yoursunny said: 'cause they want to hide behind Cloudflare?

    WAT.
    You saying Cloudflare not working over http and they banned it globally or something?

  • jpengjpeng Barred

    for https setting just b/c this service can be accessed from browser as well.
    without https enabled some browsers will throw up a warning that I won't see.

  • LordSpockLordSpock Member, Host Rep

    curl ifconfig.pro/ip.host

  • @jpeng said:

    @Harambe said:
    curl ipinfo.io
    +
    curl v6.ipinfo.io

    they are probably different from my usage.
    myhostnames.com answers with IP and its reverse DNS.
    For querying IP info I just use the other service such as IPAPI.co.

    Yeah, but then you have to parse that result to get the reverse. One generally wants just a single string response if it's from the command like used in scripting.

Sign In or Register to comment.