N.C. Gen. Stat. § 20-25
Any person denied a license or whose license has been canceled, suspended or revoked by the Division, except where such cancellation is mandatory under the provisions of this Article, shall have a right to file a petition within 30 days thereafter for a hearing in the matter in the superior court of the county wherein such person shall reside, or to the resident judge of the district or judge holding the court of that district, or special or emergency judge holding a court in such district in which the violation was committed, and such court or judge is hereby vested with jurisdiction and it shall be its or his duty to set the matter for hearing upon 30 days' written notice to the Division, and thereupon to take testimony and examine into the facts of the case, and to determine whether the petitioner is entitled to a license or is subject to suspension, cancellation or revocation of license under the provisions of this Article. Provided, a judge of the district court shall have limited jurisdiction under this section to sign and enter a temporary restraining order only.
N.C. Gen. Stat. § 20-25