This function sets or changes the domain name for the task. If the task has an existing domain name, then memory associated with that domain name is freed and a new domain name is allocated. If domain is NULL, then the default domain name is used.
Task Structures, Domains in the Cascade NameServer chapter, IP_TaskDefaultDomain, IP_TaskSetQname