From owner-freebsd-questions@freebsd.org Sat Aug 8 10:13:39 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A99203A69FF for ; Sat, 8 Aug 2020 10:13:39 +0000 (UTC) (envelope-from 4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BNyjt3pBFz4bd8 for ; Sat, 8 Aug 2020 10:13:38 +0000 (UTC) (envelope-from 4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1596881619; x=1599473619; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=b4LMt5yBKr0y/ukbTFTmHkorgqcRFWzpjxdiJXkFmKQ=; b=elbrHzIEQ7N569y/1ixnRggmZWVMDtevmPZkrJBm/1yzrzD7yGhCbJ3bWKtFpGGkHAyQzSHDt2eiuk4X68ohZTbX9nlkKAUEVnO7XXtfvSTd7S4UONdblhB6yFd4YjMYiEJQJ6tLOC/4dSAGuqFqiXkPahShxhGzZBryEyQ8cfg= X-Thread-Info: NDI1MC45Mi4xZDRjMjAwMDdiMjY2ZjEuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r2.us-east-1.aws.in.socketlabs.com (r2.us-east-1.aws.in.socketlabs.com [142.0.191.2]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 8 Aug 2020 06:13:36 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.us-east-1.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 8 Aug 2020 06:13:36 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1k4Lr4-0002Q8-NV; Sat, 08 Aug 2020 11:13:34 +0100 Date: Sat, 8 Aug 2020 11:13:34 +0100 From: Steve O'Hara-Smith To: Aryeh Friedman Cc: FreeBSD Mailing List Subject: Re: Best way to make a machine boot with or without a Internet connection Message-Id: <20200808111334.4dc78fbd3369a0bcf9eada04@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BNyjt3pBFz4bd8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=elbrHzIE; dmarc=none; spf=pass (mx1.freebsd.org: domain of 4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com X-Spamd-Result: default: False [-2.10 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[142.0.176.198:from]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; NEURAL_HAM_MEDIUM(-0.98)[-0.978]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; NEURAL_HAM_LONG(-1.01)[-1.006]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[142.0.176.198:from]; NEURAL_HAM_SHORT(-0.41)[-0.414]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d4c20007b266f1.f0a035307e2234803dfc69b75a41326d@email-od.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2020 10:13:39 -0000 On Thu, 6 Aug 2020 17:20:16 -0400 Aryeh Friedman wrote: > Due to storm related damage my ISP went out for a few (12) hours earlier > in the week and while I got it usable without a Internet connection by > putting everything in my LAN in /etc/hosts (I also run a local_unbound > --> local bind9 on my file server which I have created a zone file for > the LAN machines also), but it was very slow in booting due to ntpdate, > tomcat and sendmail not being to connect to the Internet for either > forward or reverse DNS. I don't want to turn these services off, but I > want to be able to do a normal boot (no long hangs) if the ISP goes down > again. What is the best way to do this? Your problem is DNS so I'd suggest solving it at that level. Point everything at a local DNS service and provide that with the handful of addresses that you need to boot smoothly (or put them in /etc/hosts where they're needed) so that it doesn't have to forward queries for them. This does leave you open to problems if they change of course. -- Steve O'Hara-Smith