In order to check hostname entry is correct, you can use the below script.

############
/scripts/ipcheck
############