From owner-freebsd-questions@freebsd.org Thu Mar 22 15:36:24 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 36AAAF4F3E3 for ; Thu, 22 Mar 2018 15:36:24 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A362A7B755 for ; Thu, 22 Mar 2018 15:36:23 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id l16so16996877wmh.3 for ; Thu, 22 Mar 2018 08:36:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pFxAPf449H3NIwjig0Xn5gUzYruojuec3V2iGrn0LV4=; b=qdcV/7vOA7IWL3ZldYg83QQaq1U9kdt8jjrQp9MUWMUmuaZQBTsY07QJBP7qN7+CLp L+Rtn34P8Gq6fBxp8QzWvia7ChIXUNv8HdSYZw+dU2aa8mxsSYtuqCs5l9Av+Nc04VDC Q0IBwPic6ZOvjVMKbVCSUTR9iTKraPebHhuhDihLlq/lXwkNAZbBdAobZo6biJJbz+GW EYNvHmk4zh8/pcbT4AKO/DCf6uCOqXGHWRb+pemivNUMw9DCmLiHVK+D752fIwwM5w+I xE/JxNGqzFS/lC9GmKhP5dCnsnRY+kKG5XFZ7+ICgSv7l4sGnayVv7ZhjhCITGXbtPdO 2yLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pFxAPf449H3NIwjig0Xn5gUzYruojuec3V2iGrn0LV4=; b=MSAXbcc+EppY5U5cW83GSNq1ARyZWcq8kdV6suxepmvdDEnNCu1+aIWMb7omA+NEmL elplywcBeAkBYnHoMgnuVK955ctdQ0Wl/rhTFKQc8D78UiTrmydp2JqwnPAbPcgQyAUc 2FutdzAmIUrJyYOrrQ59rpWvidX7jvZJqOKdmOK7Erl4jFbvPHjjcztAm/WA12fFRGHC Wvd9376iOCb4p+/J3f5ovDZO01+RJgFz0N/5/jHQN1XrkLAKvMNWmiHfVjA40viytAEL ki2UzSRmA1IZBjbjgucb186iiyLtSVW7A712R/SD1NmNYI7wAD+gJo0fYE3LjlQyifR2 kGFQ== X-Gm-Message-State: AElRT7GcCi3ylAlQc707M+YRZGY1M0JPmOy6gJLvXqjIi/CXrKZqXEoC +Sh0KH414Uuv/uAXCmfzbU61ka72j9TL3TAbWQ== X-Google-Smtp-Source: AG47ELsorB54SQzYDcz+KtCp70FVyXnOlQIqq9L/iTZZcBjpebGd+5S514+IQBZJV88QSedaKNOPgP6V1tlNqXhA1jM= X-Received: by 10.80.183.194 with SMTP id i2mr25616797ede.284.1521732982079; Thu, 22 Mar 2018 08:36:22 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <86e6405e-a0e0-8d9c-c363-b6537ef4ed8d@yandex.com> From: Shamim Shahriar Date: Thu, 22 Mar 2018 15:36:11 +0000 Message-ID: Subject: Re: how to set hostname on a cable line? To: Manish Jain Cc: Polytropon , "freebsd-questions@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 15:36:24 -0000 In my limited understanding, you will be better off using a raspberry pi (for low footprint) in your network, ruining freebsd and dnsmasq, offering DNS and DHCP service to the network. Disable DHCP on the router, and that router is not expected to offer DNS for local network zone (it only resolves public IP from upstream DNS server). Just my 2p All the best On Thu, 22 Mar 2018, 15:18 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 ? > > -- > Tx and Regards, > Manish Jain > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >