Date: Sat, 10 Aug 2024 09:11:22 -0700 (PDT) From: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> To: Alex Arslan <ararslan@comcast.net> Cc: Bakul Shah <bakul@iitbombay.org>, FreeBSD Hackers <freebsd-hackers@FreeBSD.org> Subject: Re: Diagnosing virtual machine network issues Message-ID: <202408101611.47AGBMV4065737@gndrsh.dnsmgr.net> In-Reply-To: <4129CE13-5B1A-4E2E-A9C4-7A0162D1E5CC@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > > On Aug 2, 2024, at 5:58?PM, Bakul Shah <bakul@iitbombay.org> wrote: > > > > On Aug 2, 2024, at 3:52?PM, Alex Arslan <ararslan@comcast.net> wrote: > >> > >>> Just a comment and a name server line: > >>> > >>> $ cat /etc/resolv.conf > >>> # Generated by resolvconf > >>> nameserver 192.168.122.1 > >> > >> 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? > > The nameserver is 127.0.0.53. It sets options edns0 and trust-ad, and > includes a search entry as well. First, is that a typo and you mean 127.0.0.1:53? Second, is that name server locked to 127.0.0.1, or is it actually listinging on *:53? If it is LOCKED you have no name server running on 192.168.122.1 to be reached by the VM, if it is NOT locked can the guest ping 192.168.122.1, and can it reach dns at that IP on port 53? Can the host send a packet BACK to the guest? Third you can "fix" the "nameserver 192.168.122.1" entry in /etc/resolv.conf by configuring the DHCP server that handed out the lease to the VM to send a namserver entry of 8.8.8.8. > > > > >> 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! > >> > >> 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. > > 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. :) > > -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408101611.47AGBMV4065737>