Date: Fri, 2 Aug 2024 18:51:30 -0700 From: Alex Arslan <ararslan@comcast.net> To: Bakul Shah <bakul@iitbombay.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Diagnosing virtual machine network issues Message-ID: <4129CE13-5B1A-4E2E-A9C4-7A0162D1E5CC@comcast.net> In-Reply-To: <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org> References: <FA265FAA-216D-4DCC-92C0-50017C17F7DE@comcast.net> <4a5a177a-5356-453c-8a09-f1d63d5d2e16@sentex.net> <4AB1C33B-DD93-4484-B63A-9FF8FE612B15@comcast.net> <E72DA395-3C66-4520-B58B-31C19E7462A3@comcast.net> <799c7a15-52b8-4b44-bcbd-5ab6a3ef97a6@gmail.com> <0747ED5F-2ED6-461C-9C0B-CFD0EE480D82@comcast.net> <2B0A1E6F-7B89-4F7C-9ECE-ABA94E476D5A@iitbombay.org> <A9069EB9-2CFE-4A9A-98AD-2C8085873163@comcast.net> <DB67A5F9-1B15-482F-AD12-0FD4547EC0D0@comcast.net> <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Aug 2, 2024, at 5:58=E2=80=AFPM, Bakul Shah <bakul@iitbombay.org> = wrote: >=20 > On Aug 2, 2024, at 3:52=E2=80=AFPM, Alex Arslan <ararslan@comcast.net> = 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. :)=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4129CE13-5B1A-4E2E-A9C4-7A0162D1E5CC>