Skip to content

feat(ui): look up public addresses on IP sites - #540

Merged
Zakkaus merged 1 commit into
mainfrom
feat/ipinfo-link
Oct 9, 2026
Merged

Zakkaus merged 1 commit into
mainfrom
feat/ipinfo-link

Conversation

@Zakkaus

@Zakkaus Zakkaus commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Problem

There is no way to see who owns a destination or DNS answer address. Looking it up inside doona would mean either new honk API surface or doona fetching data from a third party in the background.

How

  • A public address in the connection details (the whole destination ip:port) and in DNS query cards and log details (A/AAAA answers) becomes a trigger. Clicking it opens a menu that says the chosen site opens in a new tab and receives the address, and lists ipinfo.io, ipapi.is, ip-api.com and bgp.he.net.
  • Links open in a new tab with rel="noreferrer". Nothing is requested before the user picks a site, so there is no setting.
  • isPublicIp excludes private, loopback, link-local, CGNAT, ULA, multicast and reserved ranges, including IPv4-mapped IPv6. Documentation ranges stay clickable so the demo shows the feature.
  • DNS answers lead with the record data, followed by the type and TTL in muted text; the owner name shows only when it differs from the name asked for, as down a CNAME chain. The per-answer "Add rule" button sits at the row's end.
  • The new styles load with the connections and DNS routes, not the startup CSS.

Net lines: src +120, unit +128, e2e +112, css +51.

Verified

  • pnpm typecheck, lint, format:check, check:i18n, check:size, test (3,743 passed).
  • e2e: connections, connections-open, dns, dns-actions, dns-quick-rule, phone-connections (113 passed), including no external request before a site is picked. Full e2e suite passed (1,828) before the final CSS move.
  • Screenshots at 1280 and 390, zh-TW, in the latest comment.

@Zakkaus

Zakkaus commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Connection menu (1280: before / after; 390 after)

DNS query cards

DNS log detail

@Zakkaus

Zakkaus commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Updated DNS screenshots: the address itself is the link, and the per-answer "新增規則" buttons line up on the right.

DNS query cards (before / after)

DNS log detail (before / after)

@Zakkaus

Zakkaus commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Updated: clicking a public address opens a popover to choose the lookup site. The ⋮ menu item is gone.

DNS query card (closed / open)

DNS log detail (open)

Connection detail (closed / open)

@Zakkaus Zakkaus changed the title feat(ui): link public addresses to ipinfo feat(ui): look up public addresses on IP sites Oct 9, 2026
@Zakkaus

Zakkaus commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Updated: the lookup opens a menu, DNS answers lead with the address (type and TTL after it), and the destination trigger covers ip:port. Light / dark.

DNS log detail

DNS query card

Connection detail

Lookup menu

Clicking a public address in the connection details or a DNS answer opens a menu of ipinfo.io, ipapi.is, ip-api.com and bgp.he.net. The chosen site opens in a new tab without a referrer; nothing is requested before that.

DNS answers now lead with the record data, followed by the type and TTL, and show the owner name only when it differs from the name asked for.
@Zakkaus
Zakkaus merged commit 7d1237e into main Oct 9, 2026
16 checks passed
@Zakkaus
Zakkaus deleted the feat/ipinfo-link branch October 9, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant