Sorry I don’t know the problem of ddwrt.

Tor DNS will use the exit node DNS.