From nobody Thu Mar 14 19:18:34 2024 X-Original-To: freebsd-net@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 4TwccL4WyFz5Dds9 for ; Thu, 14 Mar 2024 19:18:42 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TwccL1P2lz4SV6 for ; Thu, 14 Mar 2024 19:18:42 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; none Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 42EJIYEM004620; Thu, 14 Mar 2024 12:18:40 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1710443920; x=1710444520; r=y; bh=w2aKnKFHq+3H2PnzaCuaS6ZLe4sFHPLxuGjMYb3OxbI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=gcDAnCyd3nZZvkTwx7B6Lf5OA2E6trUT9bZ8Pe1Yq5owlpIE9luQLCN1caNuoxGBG 5FQ3o96Yak+IlQ71JHOkHBHYjFfltP8gXogUgR15oyp+LK6zXAz6pr7Nrhqcm9J+y6 4nGK2tB+a7h7sx6akfBXfamEKeMPpHl1Quwer79ZASoI2PaE2Wb+okdYe1mF2JgWSa wqxaC4y9n83iDm6jrPEdI1wMNUr/VLZa/a+PpLC6nVEEWaCD67fc1Rd9iP84dl0zji nVDH6DhqqvgLGnPMJYjbK+XPXSF3LQiwGxi1MQmVLBuXYC85c8kUU532BZPBM5Kftc z8mntJJu1b/mQ== List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Date: Thu, 14 Mar 2024 12:18:34 -0700 From: Chris To: Sreenath Battalahalli Cc: freebsd-net@freebsd.org Subject: Re: Sporadic DNS failure In-Reply-To: <962395829.4561667.1710400340452@mail.yahoo.com> References: <962395829.4561667.1710400340452.ref@mail.yahoo.com> <962395829.4561667.1710400340452@mail.yahoo.com> User-Agent: UDNSMS/17.0 Message-ID: X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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:11404, ipnet:24.113.0.0/16, country:US] X-Rspamd-Queue-Id: 4TwccL1P2lz4SV6 On 2024-03-14 00:12, Sreenath Battalahalli wrote: > Hi, > > I have been using freebsd as my primary OS on my ACER laptop for many years > now. > My laptop has 802.11AC card for which there is no kernel driver available. I > am I > use a USB wifi adapter to access the wifi router. > > I am having sporadic DNS failures . > > After reboot, everything works fine but after some time (30 minutes to a > couple of > hours), Internet > connections start to fail. > > When this happens, I am able to ping 1.1.1.1, my DNS server. > > However, > # drill yahoo.com (or any other name) fails with following error: > > Error: error sending query: Could not send or receive, because of network > error > > Other devices connected to same Wifi router continue to work fine. > > I ran drill under truss and it appears after sendto to 1.1.1.1, no response > comes. > > After this error occurs, it stays like that for many some time (20-30 > minutes) and > sometimes it gets resolved by itself. > > > #uname -a > FreeBSD bsd12 13.0-RELEASE-p13 FreeBSD 13.0-RELEASE-p13 #0: Mon Aug 29 > 19:52:47 > UTC 2022 root@amd64-builder.d > aemonology.net:/usr/obj/usr/src/amd64.amd64/sys > /GENERIC amd64 > > Can someone please help me debug this problem? I'm going to suggest that this might be a symptom of your usb port/hub hanging-up/ disconnecting due to inactivity. Your BIOS setup may have a setting associated with that. OTOH I don't know what NIC driver you're using for your USB network adapter. When you discover you can't perform DNS lookups, are you still associated? eg; does the output of ifconfig still show associated? What are the settings in rc.conf(5) related to your network setup? > > Thanks, > Sreenath HTH --Chris