title: jenkins.war stop error “Name or service not known”
body: <p>I have a jenkins service running in linux(no docker), sometimes service dont response
  when I excute "service --status-all" command show .war is stop
  in jenkins log show this message </p>
  
  <pre><code>WARNING: Could not intialize the host network interface on nullbecause of an error: myserver: myserver: Name or service not known
  java.net.UnknownHostException: myserver: myserver: Name or service not known
          at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
          at javax.jmdns.impl.HostInfo.newHostInfo(HostInfo.java:75)
          at javax.jmdns.impl.JmDNSImpl.&lt;init&gt;(JmDNSImpl.java:407)
          at javax.jmdns.JmDNS.create(JmDNS.java:60)
          at hudson.DNSMultiCast$1.call(DNSMultiCast.java:33)
          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
          at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
  Caused by: java.net.UnknownHostException: myserver: Name or service not known
          at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
          at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
          at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
          at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
  </code></pre>
  
  <p>if I restart service run normally but this problem is very inconvenient</p>