Question: How can I set Firefox to use remote DNS when I use socks proxy in Firefox?
Answer:
1. Search “proxy” on the Firefox options page. Then click the “Settings” button for its “Network Settings” to view Firefox’s proxy options.

2. Check the option “Proxy DNS when using SOCKS v5”.

With that box ticked, the hostname is resolved by the proxy instead of your local DNS. Mozilla documents the other connection options in its Firefox connection settings guide.