<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_host_ip(host: str) -> str: """ Fetch ip by host """

    try:
        ip = socket.gethostbyname(host)
    except socket.gaierror:
        return ''

    return ip