Cross Environment networking-

Is cross environment networking possible in rancher cluster running on-premise.

problem: services running in a host at environment A creates a lotttt of dns look up to the dns server. since hosts file refreshes at container restart, i need a solution to make the service aware of other service in other environment.
I am new to rancher and any guidance is really appreciated.