It's disappointing that #Nextcloud does something silly like DNS Pinning and considers it an important security feature to the point to refuse to document how to work around that.
If you really want to make some sort of pining, do certificate pinning, this is merely a time loss and troublesome for other people.