Can anyone tell me how to get the IP of a server, for example:
I need it for curl call, which might be slow because of dns.
I can't get ip with ping or any other tool I can think of.
What am I missing here? Also how to do this?
12 Answers
From command prompt:
nslookup capi-eval.signnow.com
dig capi-eval.signnow.com
Which returns:
Server: resolver1.dyndnsinternetguide.com
Address: 216.146.35.35
Non-authoritative answer:
Name: ec2-54-147-193-212.compute-1.amazonaws.com
Address: 54.147.193.212
Aliases: capi-eval.signnow.comPing reply often is shut off now to prevent useless DDOS attacks simply by flood pinging a server with requested maximum reply packet size among other things.
Note that if this is an AWS server you control, you can turn on ping reply through the security firewall. Otherwise you have to get the IP by other means. The assigned IP for this server is probably pretty static, so a single DNS query probably is sufficient to establsh the IP address.
did you tried this ? CMD --> ping
3