I can’t remember if the tor firmware has LuCI or not. You can enter custom dns using LuCI in Interfaces → Wan → Advanced Settings → Use Custom DNS Servers
If not, then you can do it via SSH, check the OpenWRT manual for that