Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2018 03:50:22 +0530
From:      Manish Jain <jude.obscure@yandex.com>
To:        Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: how to set hostname on a cable line?
Message-ID:  <39f5bbec-a505-2712-34a8-9a22f9000bf8@yandex.com>
In-Reply-To: <20180322214416.GB15614@jail0199.vps.exonetric.net>
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> <20180322121320.GA66012@jail0199.vps.exonetric.net> <86e6405e-a0e0-8d9c-c363-b6537ef4ed8d@yandex.com> <20180322214416.GB15614@jail0199.vps.exonetric.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 03/23/18 03:14, Anton Shterenlikht wrote:
> On Thu, Mar 22, 2018 at 08:42:26PM +0530, Manish Jain wrote:
>> On 03/22/18 17:43, Anton Shterenlikht wrote:
>>> No matter what I put there,
>>> ssh `hostname` will not work, because
>>> my randomly chosen hostname will not resolve to my IP!
>>
>> Hi Anton,
>>
>> I suppose you have already tried something like this, but I just wanted
>> to be sure: can you not 1) put fqdn in rc.conf; and then 2) put the IP
>> for the machine's fqdn in /etc/hosts on the box that needs to ssh ?
> 
> That did it, thanks!
> 
> Sorry for being so dumb.
> 
> I never need to dial into this laptop from outside,
> so this is all I need. As somebody else suggested,
> I'll probably need to pay for a better service,
> which will include some DNS if I need a proper FQDN.
> 
> Thanks again
> 
> Anton
> 

I am glad that it worked for you. But I felt rather dumb that I realized 
very late your host name is randomly generated, possibly upon each boot.

-- 
Tx and Regards,

Manish Jain



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?39f5bbec-a505-2712-34a8-9a22f9000bf8>