From owner-freebsd-questions@freebsd.org Thu Mar 22 12:13:23 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADDFEF609E4 for ; Thu, 22 Mar 2018 12:13:23 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [IPv6:2a02:1658:1::199:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "jail0199.vps.exonetric.net", Issuer "jail0199.vps.exonetric.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 415AE71484 for ; Thu, 22 Mar 2018 12:13:23 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [178.250.76.108]) by jail0199.vps.exonetric.net (8.15.2/8.15.2) with ESMTPS id w2MCDLtE066725 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Mar 2018 12:13:21 GMT (envelope-from as@jail0199.vps.exonetric.net) Received: (from as@localhost) by jail0199.vps.exonetric.net (8.15.2/8.15.2/Submit) id w2MCDKmV066723; Thu, 22 Mar 2018 12:13:20 GMT (envelope-from as) Date: Thu, 22 Mar 2018 12:13:20 +0000 From: Anton Shterenlikht To: Polytropon , freebsd-questions@freebsd.org Subject: Re: how to set hostname on a cable line? Message-ID: <20180322121320.GA66012@jail0199.vps.exonetric.net> Mail-Followup-To: Polytropon , freebsd-questions@freebsd.org References: <201803211834.w2LIY9Jh059885@jail0199.vps.exonetric.net> <79cc198c-daa9-1cb2-020f-d11d7d3d396a@yandex.com> <20180321213005.GA73927@jail0199.vps.exonetric.net> <20180321232254.3a2dc696.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180321232254.3a2dc696.freebsd@edvax.de> User-Agent: Mutt/1.9.2 (2017-12-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2018 12:13:23 -0000 On Wed, Mar 21, 2018 at 11:22:54PM +0100, Polytropon wrote: > > > > > > Have you tried setting the hostname with 'bsdconfig networking' ? > > > > Maybe I didn't explain myself well. > > > > I need a fully qualified domain name (FQDM). > > > > Perhaps I just cannot have one from a wireless router > > at home? > > Check the configuration of the device that hands out configuration > data via DHCP to check if you can define the FQDN from within there. No, cannot find anything. This is a basic router provided by Virgin media. Everything is done by IP only. > If not, you can always manually set it using > > hostname="fqdn.example.com" > > in /etc/rc.conf (or using "bsdconfig networking" interactively). But what shall I choose? No matter what I put there, ssh `hostname` will not work, because my randomly chosen hostname will not resolve to my IP! It seems I'm completely missing some piece here, perhaps some DNS must be involved at some stage? But more likely, I just cannot have a FQDN on a cable connection. > If yout DHCP server runs FreeBSD + isc-dhcpd, you can use its No, it's a proprietary Virgin media device. I don't know what it runs. Thanks anyway! Anton