netbox-ddns/netbox_ddns/utils.py

6 lines
128 B
Python
Raw Normal View History

def normalize_fqdn(dns_name: str) -> str:
if not dns_name:
return ''
return dns_name.lower().rstrip('.') + '.'