Multiple hostnames and DSN

Hi, I’m running sentry on-prem and I want my deployment to be available both internally (via private IP) and externally (via public IP). I have a reverse proxy sitting in front of the sentry deployment and I’m using my external hostname in my sentry config. The question is - can I use the internal hostname as well, even though the DSN key in project settings points to my external one?
So, for example, if I have two apps: backend and frontend, can I do something like this:

backend: https://111111111@my.internal.sentry/11

Or does the DSN visible in project settings need to match the DSN that is provided in the SDK explicitly including the @hostname part?