NS_NXRRSET
,
NS_REFUSED
,
NS_SERVFAIL
,
NS_YXDOMAIN
, and
NS_YXRRSET
. If any of the
expressions passed to
ns-update evaluates to null, the update is not done and
ns-update returns the null value.
DNS Operators
A DNS operator is an expression that evaluates to a data structure that can be used by
the
ns-update operator to perform a DNS update.
The
add Operator
add (class, type, name, value, ttl)
The add operator instructs ns-update to add a resource record in the specified class,
of the specified type, and with the specified value to the DNS at the specified name,
with the specified time to live (TTL). If any of these evaluates to the null value, the
add operator evaluates to the null value as well. class is normally
C_IN
, but other
classes can also be specified.
type is the resource record (RR) type to add, and is
usually either
T_A
or
T_PTR
. name is the name at which to add the RR, and it should be
a fully qualified domain name.
value is the value for the record. For A records, it is
the IP address represented as binary data in network byte order. For other records, it
is an ASCII text string.
ttl is specified as a number of seconds.
The
delete Operator
delete (class, type, name [, value ])
The delete operator operator instructs ns-update to delete a resource record or RR
set. The arguments correspond to the arguments for the
add operator, except that no
TTL should be specified. If
value is specified, only the RR matching the name and
value is deleted. If
value is not specified, the entire RR set is deleted.
The
exists Operator
exists (class, type, name [, value ])
The exists operator operator instructs ns-update to place a prerequisite on the DNS
update that is being constructed. If just
class, type, and name are specified, the
prerequisite is that an RR set of the specified type must be attached to the specified
name in the DNS. If
value is also specified, there must be an RR in the DNS on the
specified name, and it must have the specified value.
The
not exists Operator
not exists (class, type, name [, value ])
The not exists operator instructs ns-update to place a prerequisite on the DNS
update that is being constructed. If just
class, type, and name are specified, the
prerequisite is that an RR set of the specified type must not be attached to the
Expressions 485
032 3273 App B 10/3/02 5:04 PM Page 485