From owner-freebsd-questions@FreeBSD.ORG Thu Jan 21 05:10:20 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 AFB3D10656CC for ; Thu, 21 Jan 2010 05:10:20 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-qy0-f190.google.com (mail-qy0-f190.google.com [209.85.221.190]) by mx1.freebsd.org (Postfix) with ESMTP id 661A08FC23 for ; Thu, 21 Jan 2010 05:10:19 +0000 (UTC) Received: by qyk28 with SMTP id 28so3667410qyk.28 for ; Wed, 20 Jan 2010 21:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=C9fUm06x6xbWbjnzdNJveCMGxxfvhvxYKZTRtbno86c=; b=jBRk9RYjBMapF1UdAxW4b4b8ZEWtBcqXNOH2oTj9btpQGkf2GtAYiuJGeTfQWPZKUM 6+/fkM8Vy8Qohp2/5Xb0jmcX75loMYaMH8/W1wse55ohqoL+W97YUylbOTog451eVmd2 En6tgVDmdCHCd36Kbv1VAV2av3Jj1MliPCoFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=N5+TXGI5S4ZWgjGgHEcc3qINJAX0PPpF10UVGRZxp6iY6lXS51N+bDodCaaqrVziDb 7EYi9Da1Dmb290TBpt41NxKLNgY2qOppijSMEBJkre3mGS3Qz1pNaI46lMPC8QydKbKi o7nNyc3fzmuLF6mSVQm2lC/D3CoYwoWkv6YE8= Received: by 10.224.79.3 with SMTP id n3mr660115qak.207.1264050619531; Wed, 20 Jan 2010 21:10:19 -0800 (PST) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 22sm510044qyk.6.2010.01.20.21.10.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 20 Jan 2010 21:10:18 -0800 (PST) Message-ID: <4B57E1BC.9060708@gmail.com> Date: Thu, 21 Jan 2010 00:10:20 -0500 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20100120) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: simulating dnsdomain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 05:10:20 -0000 I have an application that needs to reliably get the fully qualified dns name for the localhost (3rd party app so I don't want to change it unless I have to).... currrently it calls dnsdomainname which is in linux is an alias for hostname --fqdn but FreeBSD does not have that option set... how can I simulate this?