From owner-freebsd-questions@FreeBSD.ORG Wed Mar 17 23:13:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62E46106566B for ; Wed, 17 Mar 2010 23:13:52 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 3FAC38FC12 for ; Wed, 17 Mar 2010 23:13:52 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Ns2Qr-000BVy-8u; Wed, 17 Mar 2010 19:13:50 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id A24A83D07047; Wed, 17 Mar 2010 19:13:45 -0400 (EDT) Message-ID: <4BA16228.8050604@FreeBSD.org> Date: Wed, 17 Mar 2010 19:13:44 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Peter Steele References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27DFDA@MBX03.exg5.exghost.com> In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27DFDA@MBX03.exg5.exghost.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.4 (/) Cc: "freebsd-questions@freebsd.org" Subject: Re: Generating a random hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 23:13:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter Steele wrote: > Is there any facility in FreeBSD for generating a random hostname? We have a template with a fixed hostname that has to be changed after the template is closed. It would be useful to have a hostname generated randomly. > Hi Peter, You could use the security/makepasswd port like so: # makepasswd --chars=8 xRVoqtQa You can also constrain the characters used for the hostname with the - --string option. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLoWIo0sRouByUApARAsmVAJwOtmcAaZQusmgdkNlI/cF4ihOQawCgj9W/ 3UKGgSc9FZ0DEIJvQQ6mCJE= =p5i/ -----END PGP SIGNATURE-----