Hello,
This is a trick part. Several methods exist to control and manage inbound routing, including Route Health Injection (RHI), Null Aggregation and Locator Indentity Separation Protocol (LISP).
Each these, there are one better use depending of scenario. I could start to explain but this is a very broad subject.
Keep in mind that also can be done with a Global Load Balancer solution.
Richard