From user-return-11210-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Fri Jan 12 17:05:22 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 0488C180621 for ; Fri, 12 Jan 2018 17:05:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E8705160C33; Fri, 12 Jan 2018 16:05:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1268D160C30 for ; Fri, 12 Jan 2018 17:05:20 +0100 (CET) Received: (qmail 11654 invoked by uid 500); 12 Jan 2018 16:05:19 -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 11641 invoked by uid 99); 12 Jan 2018 16:05:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2018 16:05:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 03CC21A10D2 for ; Fri, 12 Jan 2018 16:05:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.095 X-Spam-Level: ***** X-Spam-Status: No, score=5.095 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URI_TRY_3LD=1.999] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ejoVXndTU6CH for ; Fri, 12 Jan 2018 16:05:16 +0000 (UTC) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-oln040092002078.outbound.protection.outlook.com [40.92.2.78]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E598D5F485 for ; Fri, 12 Jan 2018 16:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JPdYojwZQ5K0/ngm/t7uOffrvOkB8AvfV97Tf8sY0zs=; b=Dy6MLVj5CwGIUZhXeM7suqQcZUGfLIsIRs89819NDIcCKz9QcW5uoeA+oMYAqMFpyfwIKIx3mWYOiQpAQxtiGELmhoB0AJ+wHgXGleH0biEEbT8ZrzIUAfh0TO+rkqTj5LYuIMNEiSZ9f8CbbXu35Pal6qCBMRZlZGQlKKMaDexCUOExpgHRrUZ7DHFySloal6yaVYFq3cuCb+uNM6wLATwykzP1KLpy6ZtNGCMRQlWm6hHlXgT2nNFntWIsmUP6kCw6D/JjPwELuW6cWMvq4zcS/BsFW7RC6OM0zpbwG4Wxudm+aX7mYd4hetXC6DlGovIHRm8JM6o26ti/x8NwnA== Received: from BN3NAM01FT046.eop-nam01.prod.protection.outlook.com (10.152.66.51) by BN3NAM01HT030.eop-nam01.prod.protection.outlook.com (10.152.67.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12; Fri, 12 Jan 2018 16:05:08 +0000 Received: from BLUPR14MB0259.namprd14.prod.outlook.com (10.152.66.58) by BN3NAM01FT046.mail.protection.outlook.com (10.152.66.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.345.12 via Frontend Transport; Fri, 12 Jan 2018 16:05:08 +0000 Received: from BLUPR14MB0259.namprd14.prod.outlook.com ([10.163.212.21]) by BLUPR14MB0259.namprd14.prod.outlook.com ([10.163.212.21]) with mapi id 15.20.0386.006; Fri, 12 Jan 2018 16:05:07 +0000 From: Martin Gainty To: "user@zookeeper.apache.org" Subject: Re: Is it possible to use the server address as the host address? Thread-Topic: Is it possible to use the server address as the host address? Thread-Index: AQHTfkwr+AnamE3hbUyfro/IEl2fYqNqvRIAgAAKSACABbgIDg== Date: Fri, 12 Jan 2018 16:05:07 +0000 Message-ID: References: <1515456018.2453715.1228639824.33D41F9E@webmail.messagingengine.com>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2D4981925D43EC6543AFB1ED4419F597501AC4989BF94E689C35A1603E3D0B4B;UpperCasedChecksum:97A97DE9980E8EC748C682D473DC5FBF487E81992916D267320BF0EC2EA04C52;SizeAsReceived:7341;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [6oFPEiFtNUpaqs7CFbcTkimPb2MkiSsVQlQ1O4fjnVKaOo/s7xzlmcrUgOK0TWlp] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN3NAM01HT030;6:taZt6VU53F8seguC0xiv6Xw1Ps4kT6HX0/KkUzh/ElKKSCEbkM/FCYhX2Ea8pJQcme647WtlRUmQ/CNY+kbF7kgsnp0iIf2F/RQm5NFRTfCt08rPaDSUFMPJuxWyVuG9bqa0uUDM9B1an1EVZwIFx/RZgqrpaxOurYR2i1EZrXMtqQZIwZ8UMcbo0H3F11YIjJcvToFMcrvV3CRkZlIbiapm0DvVjmv2tTLHrG6TEo0xHi08g7DscTFAfKvy0c+UfkcT2ywJKpNRHurhwbmE+cGcOuQidaIQhiEgd1qefNUrK6g2QBnMBWNLvZeGUSFfv7i2YOGKBu2kYkM906MNvgHOwqXuRi0s5zKjXHNlqi4=;5:VxHf0J1MFk5IkvD2FERxpgG584k5kaM5EJCoGVA+qbnKaG+mXBFsqOrfOW1/P80Kkf3/j86GoZAPiWu3kUo2aRv7eqgEYn6/vwIdXfO6L7BcxdaElcax+NupmArhRSM1RhCpW6s1oeAKce2rBxnPzlTbzbn3AxgQECHcRGsbJwQ=;24:BbDnC+nGVVx4D/lwKDRa5BnfliyVUFjI0D45mM2moh/aa1Kuv3wCllaqJYnzfvWLgY6FQ/Sis4HyKFjgfBdc1Mk096GbL3TTeIx1M9QjjD4=;7:3cayE4cNisSOxE/Q2sXT+A4ogwp36jnd3E50ilTlfDKs5Kh5OhmNQUZMZoAD96R3yp8I+BvWbK7GTkmLBqu5JhYTZhaohUTcKhwiCJfoxAYFwbUjFuQv41/j3B0jPLVZosUsh6VmrnQW2rAO5rW3Rug0KFH98qWTD77dYkrDVWnrmE53jXciQpTXKWKPWxIJlg/zOvCtWR4EoP+A98zLpRxf5x/DuJ0ql1Z6vKIgNo6AYBhp11K5lH7viQgZ/xi2 x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020084)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);SRVR:BN3NAM01HT030; x-ms-traffictypediagnostic: BN3NAM01HT030: x-ms-office365-filtering-correlation-id: 207a43df-7531-44ef-7f7d-08d559d64053 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:BN3NAM01HT030;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BN3NAM01HT030; x-forefront-prvs: 0550778858 x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:BN3NAM01HT030;H:BLUPR14MB0259.namprd14.prod.outlook.com;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BLUPR14MB025931AC41BCFFE516E2A37AAE170BLUPR14MB0259namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 207a43df-7531-44ef-7f7d-08d559d64053 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2018 16:05:07.9255 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT030 --_000_BLUPR14MB025931AC41BCFFE516E2A37AAE170BLUPR14MB0259namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MG>what abe has suggested is a vendor-specific solution with a hefty pricet= ag MG>if you're closer to "low-budget solution" (AKA free) look at implementin= g BIND: https://www.isc.org/downloads/bind/ BIND Open Source DNS Server | Internet Systems Consortium www.isc.org BIND is open source software that enables you to publish your Domain Name S= ystem (DNS) information on the Internet, and to resolve DNS queries for you= r users. MG>if your platform is Windows then read how to implement BIND for Windows https://kb.isc.org/article/AA-01392/77/Windows-zip-files-for-BIND-9.html MG>if your willing to go with a Microsoft specific solution then Microsoft = DNS Server is your solution (again vendor specific) https://technet.microsoft.com/en-us/library/cc730921(v=3Dws.11).aspx DNS - technet.microsoft.com technet.microsoft.com Domain Name System (DNS) is the name resolution protocol for TCP/IP network= s, such as the Internet. A DNS server hosts the information that enables cl= ient computers ... MG>HTH MG>Martin- ________________________________ From: Shafique Jamal Sent: Monday, January 8, 2018 7:37 PM To: user@zookeeper.apache.org Subject: Re: Is it possible to use the server address as the host address? Thanks Abe. In case it is helpful for some: those using AWS EC2 VM instances with an Elastic IP address (i.e. a static IP address) can ask Amazon to resolve a reverse DNS lookup on the Elastic IP address to one DNS address that they have set to resolve to that IP address. They can do so by filling out a form available at this link: https://aws.amazon.com/blogs/aws/reverse-dns-for-ec2s-elastic-ip-addresses/ [https://d2908q01vomqb2.cloudfront.net/356a192b7913b04c54574d18c28d46e63954= 28ab/2017/06/23/6288c174-a286-4b65-9b3b-6199bfdaa1e0.png] Configurable Reverse DNS for Amazon EC2=92s Elastic IP ... aws.amazon.com Get Started Start developing on Amazon Web Services using one of our pre-bu= ilt sample apps. The actual form is available here: https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-em= ail-limit-rdns-request [https://d1.awsstatic.com/Digital%20Marketing/House/signin/en_US/Prospect_i= mage.96f0d724be07d2e2f486f0f31ceb421b666970d4.jpg] Amazon Web Services Sign-In aws-portal.amazon.com Amazon Web Services uses information from your Amazon.com account to identi= fy you and allow access to Amazon Web Services. Your use of this site is go= verned by our ... Google Cloud has something similar - you can request a PTR record. With Google Cloud you get the reverse DNS done quicker - AWS could take several hours or a day to get it done. This link has more information: https://cloud.google.com/compute/docs/instances/create-ptr-record Creating a PTR Record for a VM Instance | Compute Engine ... cloud.google.com This is a Beta release of PTR support for Google Compute Engine. This featu= re is not covered by any SLA or deprecation policy and may be subject to ..= . This can solve the issue of using SASL with ZooKeeper with server names. On Mon, Jan 8, 2018 at 7:00 PM, Abraham Fine wrote: > Hello Shafique- > > I believe this discussion on the mailing list from a month ago goes over > the same issue: https://mail-archives.apache.org/mod_mbox/zookeeper-user/ > 201711.mbox/%3cCABinuxd3bNjYW2p=3D6t4ztmGzk7U5yiDu7otZv05FKcyK1c > 6aPg@mail.gmail.com%3e > > The issue has been fixed in 3.5 and there are some issues that need to be > taken into account regarding backwards compatibility if we are to fix thi= s > on the 3.4 line. > > Thanks, > Abe > > On Tue, Dec 26, 2017, at 05:19, Shafique Jamal wrote: > > Hello, > > > > I have documented my issue here: > > https://stackoverflow.com/a/47956320/2251463 [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v= =3D73d79a89bded] Zookeeper/SASL Checksum failed stackoverflow.com How do I fix the problem that generates this error: WARN [NIOServerCxn.Fact= ory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@1040] - Client failed to SASL auth= enticate: javax.security.sasl.SaslException: ... > > > > When I use the ZooKeeper client to connect to a server, it takes the > server > > address from the "-server" command line argument, looks up the IP > address, > > and then tried to find the host name based on that IP address. > > > > If you're using an Amazon EC2 instance, then instead of getting somethi= ng > > like mysookeeperhost.mydomain.com for the host name, instead something > like > > ec2-35-169-37-216.compute-1.amazonaws.com will be returned. > > > > Is there an option to use the server address from the command line as t= he > > host name? > > > > Thanks, > --_000_BLUPR14MB025931AC41BCFFE516E2A37AAE170BLUPR14MB0259namp_--