Image 01
profile-image

schmiddim

bla the 1st blabla
nmap script for conky

Conky by schmiddim 2 comments

Hi,

I think there are many ways to do this. Here are two solutions from me:

-You can use the command nslookup if you're running a DNS Server in your network.

-Modify your /etc/hosts. You can get the Hostname by ip with this ugly command:
getent hosts 192.168.0.1 |sed 's/[0-9]\| \|\.//g'

You just have to modify the output of nmap in the script. I'm not sure where you have to do this because I wrote this conkyrc a long time ago in place far, far away, but it should be easy to find.

Feel free to post your results and improved scripts here. Have fun:) - Dec 09 2010