Lines Matching defs:domain
53 * maildomain() - retrieve the domain name
59 * Retrieve the domain name from xgetenv("DOMAIN").
61 * and /etc/named.boot for "^domain[ ]+<domain>".
66 /* read a file for the domain */
76 if (strncmp(buf, "domain", 6) == 0)
91 /* read the domain from the xenvironment or one of the files */
117 static char *domain = 0;
121 if (domain != 0)
122 return (domain);
124 domain = readdomain(dombuf+1, NMLN);
126 /* Make certain that the domain begins with a single dot */
128 if (domain) {
130 domain = dombuf;
131 while (*domain && *domain == '.')
132 domain++;
133 domain--;
134 len = strlen(domain);
135 while ((len > 0) && (domain[len-1] == '.'))
136 domain[--len] = '\0';
138 /* no domain information */
140 domain = "";
142 return (domain);