Hi Greg
Its not possible.
The closest thing you can get is using Cloudflare DNS and create a page-rule, that handles the redirect based on your settings. This saves a trip to your server, however its not a real DNS redirect since its just another server doing a redirect instead.
Hope it makes sense