How to check the subdomain IP address

I am sending XML from a client site to an external server. For this external server administrator, you must verify the sender's IP address. We have a script working when sending from the main site (domain.com), but I'm not sure when we are sending from the subdomain of the main site (sub.domain.com, having received currently an error). Is there a way to check the subdomain IP address so that I can tell the administrator the correct IP address?

Thanks.

UPDATE: I used the firefox IP extension and domain information and compare the information from domain.com and sub.domain.com and both look pretty much the same.

+4
source share
2 answers

I also searched for this topic, then found a website that helps me find the IP address of subdomains http://www.hcidata.info/host2ip.htm

+7
source

You should be able to just use nslookup from the terminal.

nslookup google.com nslookup mail.google.com 

From here it’s trivial to write a script for this

0
source

Source: https://habr.com/ru/post/1445563/


All Articles