Some saniry checks would be good for the value.
is_hostname || is_ipaddr is mandatory here.