Skip to main content

Discover SLAAC IPv6 neighbors and resolve their names via mDNS (Avahi)

Project description

SLAAC Resolver

Discover SLAAC-configured IPv6 neighbors and resolve their mDNS names using Avahi.

Overview

This tool scans a given network interface for IPv6 neighbors discovered via SLAAC, and attempts to resolve their names using avahi-resolve-address. It can be used both as a command-line utility and as a Python library.

Installation

Clone the repository and install it in editable mode:

git clone https://github.com/cjuniorfox/slaac-resolver.git
cd slaac-resolver
pip install -e .

This will make the slaac-resolver command available on your system.

Usage

Command-Line Interface

slaac-resolver <interface>

Example:

slaac-resolver br0

The output is a JSON list of resolved neighbors, like:

[
  {
    "hostname": ["mydevice", "local"],
    "ipv6": ["fe80", "", "abcd", "1234", "5678", "9abc", "def0", "1234"]
  }
]

Python Library

You can also use the resolver in your Python code:

from slaac_resolver import get_ipv6_neighbors

neighbors = get_ipv6_neighbors("br0")
print(neighbors)

Requirements

  • Python 3.7+
  • ip command (from iproute2)
  • avahi-resolve-address (part of avahi-utils)

License

GNU 3.0 License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slaac_resolver-0.0.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slaac_resolver-0.0.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file slaac_resolver-0.0.2.tar.gz.

File metadata

  • Download URL: slaac_resolver-0.0.2.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for slaac_resolver-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9e48b819cd11686619c0282b983aa94223b370647679e66b5e5885d76608c70f
MD5 89f3def8a1d78833681eb734d8112780
BLAKE2b-256 8dcbbf64678499f27387337dddde21f882028b8990ba14098264a7285d4ee6d7

See more details on using hashes here.

File details

Details for the file slaac_resolver-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: slaac_resolver-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for slaac_resolver-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 986457f88000b180e9ba1568f391cffff2f71d481d85115d60690ff48da9cea6
MD5 cb5c8140972dadec0a1014ff6d37f319
BLAKE2b-256 fa13ced4156ec72dab83392bdd233f87e0565b22b4ebdf3aafd2dbcb50e8b726

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page