cdchris12 / UDM-DNS-Fix

A simple script to provide basic DHCP hostname resolution in the latest UniFi Dream Machine Pro firmware.
Apache License 2.0
74 stars 8 forks source link

Use ~/.netrc for credentials, allow merging with local DNSMasq configurations. #9

Closed stephenhouser closed 1 year ago

stephenhouser commented 1 year ago

Wanted to add CNAMEs into my setup and while I was at it, changed to use ~/.netrc for credentials rather than providing on the command line (and getting into my shell history).

Changed some of the formatting, which you may or may not like, so as with any PR, adopt at your pleasure.

stephenhouser commented 1 year ago

Oh, also used a proper temp file so that the script won't have to write into the current directory.

stephenhouser commented 1 year ago

Apologies, I kept iterating on my fixes not realizing they went in as part of the PR. Hope the changes are still somewhat useful.