Skip to main content

TailScale util to get device details

Project description

PyPI version Downloads MIT license tailscale

This is a tailscale plugin for getting IP Address of specific device.

Installation

pip install tailscale-util-ns

Usage

Add tailscale.ini file into the root directory.

[config]
tskey : <tskey-xxxxxxxxx>
advertise-tags : tag:<tag_name>

How to up Tailscale?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp()

How to get IP Address for DNS?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp().get_ip_for_dns('prtg02').strip()

How to get IP Address for Device?

from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

TailScaleDeviceIp().get_ip_for_device(device_name='PRTG02')

Author

Nishith Shah - github

License

This project is licensed under the MIT 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

tailscale-util-ns-2.0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file tailscale-util-ns-2.0.1.tar.gz.

File metadata

  • Download URL: tailscale-util-ns-2.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for tailscale-util-ns-2.0.1.tar.gz
Algorithm Hash digest
SHA256 3dfe79719317e64c82df765884a64f2daa229e480aea1e79173377283c64bac2
MD5 244ee6125f6e1973baa61e41b814ab1f
BLAKE2b-256 54a8e00d4eb0331e4128d3660f9e0b097abc7404b58b3a7717839236217198a9

See more details on using hashes here.

Supported by

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