Here you can find the source of getInetAddress(String hostName)
public static InetAddress getInetAddress(String hostName)
//package com.java2s; import java.net.InetAddress; import java.net.UnknownHostException; public class Main { /**//w ww. jav a 2s . com * Gets the Inet address for the graylog2ServerHost and gives a specialised error message if an exception is thrown * * @return The Inet address for graylog2ServerHost */ public static InetAddress getInetAddress(String hostName) { try { return InetAddress.getByName(hostName); } catch (UnknownHostException e) { throw new IllegalStateException("Unknown host: " + e.getMessage() + ". Make sure you have specified the 'graylog2ServerHost' property correctly in your logback.xml'"); } } }