Date: Wed, 17 Mar 2010 19:13:44 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: Peter Steele <psteele@maxiscale.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Generating a random hostname Message-ID: <4BA16228.8050604@FreeBSD.org> In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27DFDA@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27DFDA@MBX03.exg5.exghost.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA16228.8050604>