I often create virtual machines in my network.
They are automatically assigned hostnames like this: “preisschild-vserver-105”
Currently I need to assign it then manually in pihole to ip addresses like “192.168.5.105” (where 105 is the id, like in the hostname).
Has anyone an idea how I could automatically do this?
It would be good if it would also overwrite an old record (if there is one), so when I delete a vserver and create a new with the same id, there shouldn’t be any problems.
If someone could point me in the right direction I think I should be able to write a bash-script.