NXDOMAIN is RCODE 3. It differs from NOERROR with an empty answer, which means the name exists but has no record of the asked type. Resolvers cache negative answers too.