Ok, I've created .bat file:
@echo off for /F "tokens=2" %%a in ('nslookup bbc.co.uk 184.108.40.206') do ( set value=%%a ) echo 0:%value%
This is stored on the PRTG server.
I've then created an EXE/Script sensor using the .bat. It works perfectly and shows the correct IP of bbc.co.uk
What I want to do is use the Parameters field on the PRTG sensor so I can use this multiple times for many DNS entries / URLs.
What should I use in the sensor and how should the .bat be amended to add a variable in to be passed by the sensor?