dns: Add neighbor-based hostname resolution to local server

This commit is contained in:
世界
2026-04-29 22:26:10 +08:00
parent 8e0b96a04e
commit a81ca0f5c5
16 changed files with 290 additions and 71 deletions
+1
View File
@@ -14,6 +14,7 @@ type NeighborEntry struct {
type NeighborResolver interface {
LookupMAC(address netip.Addr) (net.HardwareAddr, bool)
LookupHostname(address netip.Addr) (string, bool)
LookupAddresses(hostname string) []netip.Addr
Start() error
Close() error
}