For both of them create A records if you want to point to IP addresses.
I don’t know of a way in DNS to forward all traffic to any port or in this case 8080.
Edit: Didn’t see you were trying to go to another host for 8080.
If you are trying to redirect to 8080 for web, do a redirect under via the add domain and set the redirect to me. http://thatsite.com:8080
(do not use custom DNS for this unless the host you are trying to redirect doesn’t have any vhosts.
Promo Code: WJD97 - $97.00 off any new DreamHost plan (except month-month payments).