How to Check IP Address of Subdomain

2019-06-21 03:14发布

问题:

I'm sending XML from a client's site to an external server. This external server admin needs to verify the IP from the sender. We have the script working fine when sending from the main site (domain.com), but I am not sure when we are sending from a subdomain of the main site (sub.domain.com, getting an error currently). Is there a way to check the IP of a subdomain so I can give the admin the right IP address?

Thanks.

UPDATE: I've used the firefox extension 'IP Addresses and Domain Information' and am comparing the info from both domain.com and sub.domain.com and both look pretty much identical.

回答1:

I was also search on this topic then i have found a web site that helps me to find my subdomains IP address http://www.hcidata.info/host2ip.htm



回答2:

You should be able to just use nslookup from terminal.

nslookup google.com
nslookup mail.google.com

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



标签: ip subdomain