gclayburg / synology-diskstation-scripts

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

synology-diskstation-scripts #31

Open bwiczkowsk96 opened 4 years ago

bwiczkowsk96 commented 4 years ago

Hi, I've got a question.

YourNetworkName=home.lan
ForwardMasterFile=home.lan
ReverseMasterFile=1.168.192.in-addr.arpa

What in case when I have "large" network. 172.26.200.0/22? How to use ReverseMasterFile?

gclayburg commented 4 years ago

Its been a while since I've looked at this in detail, but I don't believe there is anything special in these scripts that would prevent it from working with a "large" network. You still need to setup the DNS files according to the synology instructions. Then the reverse master file should exist in this directory :

/var/packages/DNSServer/target/named/etc/zone/master/

There you should see both the forward and reverse master file.

bwiczkowsk96 commented 4 years ago

Okay, But should I run four script for /22 network like. 172.26.200.0/22?

200.26.172.in-addr.arpa, 201.26.172.in-addr.arpa, 202.26.172.in-addr.arpa, 203.26.172.in-addr.arpa ?

gclayburg commented 4 years ago

Well, this script basically just knows how to update the DNS files from DHCP data. So if you have more than one set to manage you might be able to run the script a few times, but you might need to modify them to prevent conflicts, i.e. handle the auto start.