gclayburg / synology-diskstation-scripts

Update Synology DNS records from DHCP IP address reservation
169 stars 41 forks source link

Can you help / advise how to create a wildcard entry? #18

Closed ispyinternet closed 7 years ago

ispyinternet commented 7 years ago

This script is really helping to align my dev environment to how I want it.

As well as registering the A record for new machine name I would also like to add a wildcard entry for sub-domains of the machine. IE:

*.newDHCPmachine.mydns-domain.com

Could you advise what changes I need to make to the script?

Thanks

ispyinternet commented 7 years ago

After line 128 I added:

if (RecordType == "A") print 2000 + arr[4] "\t" "*." NAME "." YourNetworkName ".\t" RENEW "\tA\t" IP "\t;dynamic"

Thanks!