Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42E9B1152D for ; Tue, 23 Sep 2014 15:50:07 +0000 (UTC) Received: (qmail 21413 invoked by uid 500); 23 Sep 2014 15:50:06 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 21369 invoked by uid 500); 23 Sep 2014 15:50:06 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 21356 invoked by uid 99); 23 Sep 2014 15:50:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 15:50:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of carl.hoerberg@gmail.com designates 209.85.215.53 as permitted sender) Received: from [209.85.215.53] (HELO mail-la0-f53.google.com) (209.85.215.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 15:49:38 +0000 Received: by mail-la0-f53.google.com with SMTP id ge10so8777869lab.40 for ; Tue, 23 Sep 2014 08:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type :content-transfer-encoding:content-disposition; bh=1W2WJEhL4BVD8uh2/r61lkO8Uvbtw8+vOcnq5wROMuI=; b=Haw9764Bc6FF4OpY5koXfv8BfyT7HL2qH1PnED8wU67hDTjoBmrlzFgkAqzGTpgHR5 fOuq0mCUu9g4LVPVlfs2+CeTOOK+pUVwPbS1G1DUKaZU1PdtsgKgLZpnLm2I2WeDcbca nlKzG7XPkwxTB3IeNczYTR58Perlx+lqLShOkFBdH0DYlFVk6/N+kJqdaa9YsdDpXkSE hL0989JmWDw0cUwO9t/c3Aiw0k4+om2Esi4RCfQgZ9Gs8enOBTRUYhyoBGZVZp/h5xNJ q96iOOiMK4v6f5AgM4M7OKBC2h8BIBRzCPJQj1ri27O3jZ7y+XCYPMd2Fc/fp73f1uSl T/og== X-Received: by 10.112.138.8 with SMTP id qm8mr377488lbb.37.1411487377916; Tue, 23 Sep 2014 08:49:37 -0700 (PDT) Received: from [192.168.1.64] (81-233-157-84-no83.tbcn.telia.com. [81.233.157.84]) by mx.google.com with ESMTPSA id ua3sm4869172lac.35.2014.09.23.08.49.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Sep 2014 08:49:36 -0700 (PDT) Date: Tue, 23 Sep 2014 17:49:32 +0200 From: =?utf-8?Q?Carl_H=C3=B6rberg?= To: user@zookeeper.apache.org Message-ID: <48FAE90C75604937B20170D5FA885DC6@gmail.com> Subject: override server hostname X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org When starting up zookeeper it finds its own hostname, eg: 2014-09-23 15:28:02,356 [myid:] - INFO [main:Environment@100] - Server environment:host.name=ip-10-90-128-35.eu-west-1.compute.internal But is it possible to override it? I've tried changing /etc/hostname but to no avail. The problem I have is that when a client connects to the servers public IP it seems like the connection is accepted but then the clients tries to resolve and connect to the hostname that the server has set, so if the client can't resolve it, eg. in this case if the client isn't in EC2, it won't successfully connect. Also, why is the client doing that?