NAt based on dns name

I have two internal servers I need to point to a single public IP but it will be translated by different domain names
example: for public ip for

with same public ip

Is it possible to NAT different internal IPs based on which domain name was requested from outside?

[edited by: Adem SI at 12:58 PM (GMT -8) on 8 Jan 2021]