To translate Domain name to IP address, there are 2 commands in Linux:
1. dig +short [Domain name]
eg: $ dig +short google.com
216.58.197.142
2. nslookup [Domain name]
eg:$ nslookup google.com
Server: 172.31.0.2
Address: 172.31.0.2#53
Non-authoritative answer:
Name: google.com
Address: 172.217.26.14
1. dig +short [Domain name]
eg: $ dig +short google.com
216.58.197.142
2. nslookup [Domain name]
eg:$ nslookup google.com
Server: 172.31.0.2
Address: 172.31.0.2#53
Non-authoritative answer:
Name: google.com
Address: 172.217.26.14
Comments
Post a Comment