Write a Bash script domain2ip that takes a list of...

Description

New solution updates


Question

Write a Bash script domain2ip that takes a list of domain names as command line arguments and displays their IP addresses. Use the nslookup command. The following is a sample run of this program.
$ domain2ip up.edu redhat.com
Name: up.edu
Address: 192.220.208.9
Name: redhat.com
Address: 207.175.42.154
This involves LInux Programming

 

Solution ID:350714 | This paper was updated on 26-Nov-2015

Price : $30
SiteLock