Mean field equations and domains of first kind