I have tried all methods in the following link except DNS+DNSCrypt (having issues in flashing files):

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.