I would like to have a local DNS server which I can configure in some way. Maybe a php script, which gets the requested hostname and returns the IP. I don’t want to have an IP/Hostname list, but I want to generate the IPs in code!
Do you know how to do this?
I would like to have a local DNS server which I can configure in
Share
Simple DNS Plus has several APIs (plain HTTP, .NET, COM, command line) that are easy to use.
For example, you could add an IP-address (A-record) by seding it a simple HTTP request like “http://127.0.0.1:8053/updatehost?host=test.example.com&data=1.2.3.4” – which you could issue from your PHP script with the standard cURL library.