Background Service To update a NameSilo DNS entry with the running computer's public IP Address.
This is meant to be run continuously on a computer to update a hostname (A Record) on NameSilo. The computer will send a request to NameSilo's API. The request will have all of the hostnames for the domain specified in the appsettings.json config file as well as the public IP address it recieved the request from. It uses these two pieces of information to then make an update on NameSilo using the API if necessary.
The config file controls how this program will behave.
- Host: host.domain.com
- Domain: host.domain.com
- APIKey: Generate here
This is a DotNet Core app that can be run anywhere. See your OS guides for setting up as service. You can build and publish this by using dotnet publish --self-contained --runtime win-x64
to create an executable in Windows. To run the Executable in Windows you can use something like NSSM or use the Windows Task Scheduler
This app uses Serilog for logging. Logging is setup in the appsettings.json file in the Serilog section. The following sinks are currently supported:
- Console
- File
- Http