Custom-DNS changes not working due to HTTP-Error 500 "Internal Server Error"

There’s a solution for this user at the end of the thread.