I have tried all methods in the following link except DNS+DNSCrypt (having issues in flashing files):
https://forum.xda-developers.com/gen...t3273769/page1


I need something which actively locks DNS after I set it.

I have tried Override DNS & scripts in the link but that only set my specified DNS after reboot and connectivity change and do not prevent DNS servers from changing.