update reverse_dns to be able to accept hostname as input