A domain is a named set of values. Its main application in computing science is as a specification of the possible values of variable, or—what amounts to the same—as a constraint for an attribute in a database.