TailScale util to get device details
Project description
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')
License
This project is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.