Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2018 12:13:20 +0000
From:      Anton Shterenlikht <as@cmplx.uk>
To:        Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: how to set hostname on a cable line?
Message-ID:  <20180322121320.GA66012@jail0199.vps.exonetric.net>
In-Reply-To: <20180321232254.3a2dc696.freebsd@edvax.de>
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>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180322121320.GA66012>