Article View: muc.lists.freebsd.bugs
Article #751[Bug 301120] netstat(8): option -n not always works
From: bugzilla-noreply
Date: Wed, 25 Nov 2026 22:57
Date: Wed, 25 Nov 2026 22:57
95 lines
4669 bytes
4669 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301120
Bug ID: 301120
Summary: netstat(8): option -n not always works
Product: Base System
Version: 15.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: vermaden@interia.pl
Hi,
I have tested this on 14.5-RELEASE and 15.2-BETA3 and its the same.
The '-n' option for netstat(8) shout always omit DNS resolution:
-n Do not resolve numeric addresses and port numbers to names.
But ...
% netstat -win -f inet
Name Mtu Network Address Ipkts Ierrs Idrop
Opkts Oerrs Coll
lo0 - your-net localhost 18565 - -
34960 - -
ue0 - 10.0.0.0/24 f25 58256913 - -
92670084 - -
vm-public - 10.1.1.0/24 10.1.1.1 1727 - -
72787 - -
% netstat -wi -f inet
Name Mtu Network Address Ipkts Ierrs Idrop
Opkts Oerrs Coll
lo0 - your-net localhost 18565 - -
34960 - -
ue0 - 10.0.0.0/24 f25 58257698 - -
92673390 - -
vm-public - 10.1.1.0/24 10.1.1.1 1727 - -
72791 - -
Seems not to work with '-w' ... and works as described with '-W' option.
% netstat -Win -f inet
Name Mtu Network Address Ipkts Ierrs Idrop
Opkts Oerrs Coll
lo0 - 127.0.0.0/8 127.0.0.1 18565 - -
34960 - -
ue0 - 10.0.0.0/24 10.0.0.3 58257175 - -
92671028 - -
vm-public - 10.1.1.0/24 10.1.1.1 1727 - -
72788 - -
% netstat -Wi -f inet
Name Mtu Network Address Ipkts Ierrs Idrop
Opkts Oerrs Coll
lo0 - your-net localhost 18565 - -
34960 - -
ue0 - 10.0.0.0/24 f25 58257411 - -
92672260 - -
vm-public - 10.1.1.0/24 10.1.1.1 1727 - -
72790 - -
vm-VLAN239 - 172.27.33.192/26 172.27.33.193 433 - -
71770 - -
Regards,
vermaden
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-301120-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301120] netstat(8): option -n not always works Date: Wed, 25 Nov 2026 22:57:41 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301120-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="27879"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795647462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3C0MFjhiOdTT0K9E70Hsg9kkUwR4DRjjjFfwEAK0LBA=; b=Qe3i6M/m95guWYxAf1BI5ci+W3cvIPKkmzK/hlaHLfAnRd4KqcVMDmflPONO0fefV8HOxN bbQmMfRAm5MUAKmCmdsSQuwmUGzIAo7AXX46BhCPK1PXlQw7mA1h2g8EB2as44REMSOxmQ tpIB+VeFupKhKFsUCYT0AkeHvkSMp2y0Ih6BNLMVBBQvfP92xiQAJ8yRIW6y6xky8+bJiM leJLJ3S2Aq3k8AWvZ0TjTic8j2KoHW1QLH7nrC4+JNTuiEt8BfC33H6W8koYeUk8UHggfL fRu6sqCF//5D5u3zZo0Ed03+Irauac3Jp2ORspNWZUHcetn7MqmhPG8tM1pJJA== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes