Gundai （a magistrate of a region or an administrator of a town) is the name of a post set in the bakufu (Japanese feudal government headed by a shogun) and in clan domains from the Muromachi period to the Edo period.
郡代（ぐんだい）とは室町時代から江戸時代にかけての幕府・諸藩に置かれた職名。