Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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, Host Rep

    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.