Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2024 17:58:44 -0700
From:      Bakul Shah <bakul@iitbombay.org>
To:        Alex Arslan <ararslan@comcast.net>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Diagnosing virtual machine network issues
Message-ID:  <1532517A-7BD4-42F8-828D-5E1840A10853@iitbombay.org>
In-Reply-To: <DB67A5F9-1B15-482F-AD12-0FD4547EC0D0@comcast.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1532517A-7BD4-42F8-828D-5E1840A10853>