I'm guessing you already know, but for the others: This is precisely what the DNS protocol was created for.