Great script, just what I was looking for.
A simple improvement would be to handle record names like "VPN" and "vpn" as identical when checking for existence.
At the moment, if you use upper case letters in the record name, you will see this erroneous message:
DNS record "VPN" does not exists - will be created.
instead of the (correct):
DNS record "VPN" is up to date - nothing to to.
However, contrary to the first warning, no new record "VPN" will be created (if a record "vpn" already exists), because DNS names and hostnames are case-insensitive by default.
Great script, just what I was looking for.
A simple improvement would be to handle record names like "VPN" and "vpn" as identical when checking for existence.
At the moment, if you use upper case letters in the record name, you will see this erroneous message:
DNS record "VPN" does not exists - will be created.instead of the (correct):
DNS record "VPN" is up to date - nothing to to.However, contrary to the first warning, no new record "VPN" will be created (if a record "vpn" already exists), because DNS names and hostnames are case-insensitive by default.