From nobody Sat Aug 03 01:51:30 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WbQgK0p6wz5RfBx for ; Sat, 03 Aug 2024 01:52:13 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resdmta-a2p-658371.sys.comcast.net (resdmta-a2p-658371.sys.comcast.net [IPv6:2001:558:fd01:2bb4::d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WbQgJ51NTz42tJ for ; Sat, 3 Aug 2024 01:52:12 +0000 (UTC) (envelope-from ararslan@comcast.net) Authentication-Results: mx1.freebsd.org; none Received: from resomta-a2p-647973.sys.comcast.net ([96.103.145.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resdmta-a2p-658371.sys.comcast.net with ESMTPS id a33cszUXEPxKoa3wDs8aqk; Sat, 03 Aug 2024 01:52:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1722649925; bh=4HZizdOtWECUdTlFfKxBTY3npmy3Asfp5oRd+Hmxv24=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To:Xfinity-Spam-Result; b=ptg108FITWyrORbMQlu3F3/iVzkED1hzbJRZ2AL7K9AG1k8rRMHgoBImgO7yzNQtn CHjd16uP4kbZMiTD4yqF33/wF2k0YZfNA750lsudSZ5xWyOb/pNSkhamQFZyp7AVf8 X99THTpTXBeVsj0avC/r8UYPgigtN10xcp9EQE45fk/E7fPZRL3WncwuDoW5J12cFV QodMCsHr/Xr4zrLRFiIplf7uVhlT7KJRQmia+9zd4WJf0rsadqbPnfSXU18ub4rFCP D3k1Ar7hLGXzDIVhClnfGeQXcCu6L871VjhGn2iHcAFO6+KTqYJJKXYpJhFtWbJc++ uUdbsywCVlgPQ== Received: from smtpclient.apple ([67.160.29.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-a2p-647973.sys.comcast.net with ESMTPSA id a3vpsRWiOjB19a3vqsHbOH; Sat, 03 Aug 2024 01:51:43 +0000 Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Diagnosing virtual machine network issues From: Alex Arslan In-Reply-To: <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org> Date: Fri, 2 Aug 2024 18:51:30 -0700 Cc: FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <4129CE13-5B1A-4E2E-A9C4-7A0162D1E5CC@comcast.net> References: <4a5a177a-5356-453c-8a09-f1d63d5d2e16@sentex.net> <4AB1C33B-DD93-4484-B63A-9FF8FE612B15@comcast.net> <799c7a15-52b8-4b44-bcbd-5ab6a3ef97a6@gmail.com> <0747ED5F-2ED6-461C-9C0B-CFD0EE480D82@comcast.net> <2B0A1E6F-7B89-4F7C-9ECE-ABA94E476D5A@iitbombay.org> <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org> To: Bakul Shah X-Mailer: Apple Mail (2.3774.600.62) X-CMAE-Envelope: MS4xfI7y2lf5/tgVDt5LGvQhSKZrw/uUg6vvU7QKs6iNcb6F3H+TMa1GISz+6w6EjXPyrfgBeB0n7yvx3wcm56gotUxQv3vv5OOugx51ALgN79JgtrM8L5Qn jDRY/lQNupoBzhmZGwGcBc9RWp5JPPCnIy4UFLgj9kcdsyzmwnPs4C0Ip7CMRf7RSMIpLrhzAInmfTg2zQgwisKi1bM+exqHuFOhIE5iyi4YF5uoAuJJ2jXL X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US] X-Rspamd-Queue-Id: 4WbQgJ51NTz42tJ > On Aug 2, 2024, at 5:58=E2=80=AFPM, Bakul Shah = wrote: >=20 > On Aug 2, 2024, at 3:52=E2=80=AFPM, Alex Arslan = wrote: >>=20 >>> Just a comment and a name server line: >>>=20 >>> $ cat /etc/resolv.conf >>> # Generated by resolvconf >>> nameserver 192.168.122.1 >>=20 >> I believe that is the host IP, so I guess the VM is using the host = for DNS >> resolution? Interestingly, if I add `nameserver 8.8.8.8` below the = line >> with the host IP, it takes 10 seconds rather than 30 to reach the = expected >> domain resolution failure. If I put 8.8.8.8 above the host IP, the = domain >> resolution failure is instantaneous. >=20 > What does your host use as a namesever? The nameserver is 127.0.0.53. It sets options edns0 and trust-ad, and includes a search entry as well. >=20 >> Not a particularly satisfying conclusion to this saga as I don't = understand >> why it's happening but at least I have a workaround that should = hopefully >> do the job. I really appreciate everyone's help and input thus far! >>=20 >> What's the best way to add `nameserver 8.8.8.8` to /etc/resolv.conf = as >> part of the VM's configuration? >=20 > You should diagnose the problem of the nameserver at 192.168.122.1 > and fix it to act properly. I don't use vm (just bhyve) so can't help > you with its config. I do still plan to try to figure out what the actual issue is, but I = also now have a path forward in the meantime. :)=