eNodeB selects an available MME to serve a particular UE based on typically network topology and location of the UE within the network, so that the best MME is selected e.g. to reduce the probability that the MME is changed.
As part of the UE Attach the eNB will query the DNS Server using the TAI for the address of the MME. Typically the DNS will have a pool of MMEs to select from in response to the query.
The format of the TAI FQDN is constructed as follows:
tac-lb.tac-hb.tac.epc.mnc.mcc.3gppnetwork.org
The DNS may also provide more than one MME address (candidate set) from which the eNB can select a MME.