From the verb vár (“to wait”) + -nak (personal suffix).
várnak
From the noun vár (“castle”) + -nak (dative suffix).