Hi all,
got stuck on the followings and need your help, please.
when i do nslookup by name (loop2) i get the followings:
Code:
#nslookup loop2
server: mainsrv-local.local
address: 192.168.0.1
server: loop2-local.local
address: 192.168.20.36
i am interested in the second address (address: 192.168.20.36) have output only the ip address. so to get only
192.168.20.36.
tried different ways with sed and awk but so far nothing worked any suggestions? getting the ip from the second address makes it difficult.
thank you in advance.