From nobody Sat Aug 03 00:58:44 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 4WbPTv6f0bz5RXwB for ; Sat, 03 Aug 2024 00:58:59 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WbPTv4rPKz4qhF for ; Sat, 3 Aug 2024 00:58:59 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3db23a60850so4702994b6e.0 for ; Fri, 02 Aug 2024 17:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1722646736; x=1723251536; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=B5+v8XZ9nmJLWNoxBmLI0TTM9EAaKTX6l2YYUa52G7U=; b=OsN+AkMWnXpVa+KVNnR7IJMe9M3K3mJoc1oDi7I9JNPyVQEjutC4IUIDTnj5JQvWCZ EEI9l8/r5Ko1vMA07pXIknxsKLO4ubvyH6Q3CjftKyM3CLYX8AeEz36ZbfK2EC6F7TyV 2af3Ljh+q/F4kt/SIN+sQUTZLqbu2eWsB6oKqhH1xUXvUTS5paOJ0JAPkua7NowlJqe2 +tEeh79DL1yRDyuaPxRLqZKG/8AQVzUyEksirZWA3THa6oU+1+Xql1MP18URYDPFbhg3 JKd45N+d+81rTKcD//2PXT/YMN88tJQhKvsjPA+rzAunZ6du4bc1+PgCT6VvWuJwYtRr 4iwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722646736; x=1723251536; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B5+v8XZ9nmJLWNoxBmLI0TTM9EAaKTX6l2YYUa52G7U=; b=nlIDbD14Ber4xeP0EA2LBBTacE6Znp7SHSjNK5rep7HcfXw0LOC4W88PKBUgNg7T39 fOy6H99QmgnVJqzzCBLm4FYJp9+e16rcmziucoINjDrcObd4lGeHLFAALB/NN4wnQ+Q8 8LmyXWPGu+jMsSJqzHmV5NSdt1BCwhOhIaPraL+M/J+bWrF62weTFrelU76JtoJ3uX2O CaEGRpdZ/J8hE7ayyRl82VfPLnV6I74UEtPOKCbNST0GTLpMFDtvyiWLoys0odG7iPGq paOQ8FCQhqvN0iVmxmx4QJy0pgX308k/9bLReW5a2fIg21y246TdCPvKDpNDGE622Pq3 a0pA== X-Gm-Message-State: AOJu0YwKwOJQrQzZ8ugzP/mvyRlgZFNQjiKtnpqExVHhLQaWVR655Zj4 /nRKEk0+dHEd1STsjkSC1lOYSz7gfjMoVV/QI5LxuAga8ICY59YVNbD3VIuMc2iqwwV4ukosxko = X-Google-Smtp-Source: AGHT+IG4Tm1vLEpoJVc9rWOw1RYdoIbPRMGTERpc4rRttBBDDj71qYdRUjJbiF275rp1JcqQmvOPVg== X-Received: by 2002:a05:6808:3027:b0:3db:1b29:f28f with SMTP id 5614622812f47-3db55815cfdmr5960780b6e.24.1722646736410; Fri, 02 Aug 2024 17:58:56 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7b76346a9absm1568838a12.29.2024.08.02.17.58.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Aug 2024 17:58:55 -0700 (PDT) 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: Bakul Shah In-Reply-To: Date: Fri, 2 Aug 2024 17:58:44 -0700 Cc: FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org> 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> To: Alex Arslan X-Mailer: Apple Mail (2.3774.600.62) 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WbPTv4rPKz4qhF 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. What does your host use as a namesever? > 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? 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.