Set the domain name of the current host
#include <unistd.h>
int setdomainname( const char * name,
size_t namelen );
The setdomainname() function sets the domain name of the host machine. Only the superuser (root) can use this function and even then, the function is normally used only when bootstrapping a system.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |