How does a registrar know if a .pharmacy domain name is in premium pricing tier?
Registrars can query in real time the price of a create, update, transfer, or restore operation for a domain using the fee:check command. See Nominet registrar resources for more details.