Aveti aici un script bash care transforma o lista de ip-uri in reverse ip, adica in hostname-uri:
for i in `cat ip.txt` do nslookup $i |grep name |awk '{print $NF}' |sed 's/.$//' >> hosts.txt done
Aveti aici un script bash care transforma o lista de ip-uri in reverse ip, adica in hostname-uri:
for i in `cat ip.txt` do nslookup $i |grep name |awk '{print $NF}' |sed 's/.$//' >> hosts.txt done