coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.83k stars 356 forks source link

[20231213]: Windows DNS integration #363

Closed gcoon151 closed 11 months ago

gcoon151 commented 11 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] It's not a problem per se, but I can put it in problem statement: My code running in node-windows needs to expose to the network with a DNS name.

Describe the solution you'd like A clear and concise description of what you want to happen.

Windows has DNS services built into it. Ideally I'd just configure node-windows to say update $DNS-FQDN on windows DNS for this instance IP. The ultimate would be when I have multiple instances running on multiple windows servers DNS would provide the IPs of all the instances (at least up to 9 IPs)

Basically integrating something like this https://learn.microsoft.com/en-us/answers/questions/501319/need-a-script-for-updating-dns-host-record into node-windows config file.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Manually configuring all the DNS for this.

Additional context Add any other context or screenshots about the feature request here.

Please use the reactions to cast a vote in favor of or against this feature suggestion »
coreybutler commented 11 months ago

This is beyond the scope of what this project is intended for. It's possible to do this "manually" using Node's exec function, so that's the workaround you could use now.

Dynamic/toggled DNS servers are something on our radar for a different product. Unfortunately, that product isn't scheduled to start until later next year at the earliest. The plan, at this time, is to implement something like this in an add-on to Runtime.

gcoon151 commented 11 months ago

Appreciate the consideration and suggestion. Best of luck and I'll follow the runtime project repo.