Lines Matching defs:dc_list
80 char *build_dn_from_dc_list (char **dc_list, unsigned int ttl, int flag);
124 char **dc_list;
275 dc_list = hostname_to_dn_list (argzone, argzone, DNS_TOP);
276 basedn = build_dn_from_dc_list (dc_list, 0, NO_SPEC);
361 char **dc_list;
382 dc_list = hostname_to_dn_list (name, argzone, DNS_OBJECT);
383 len = (get_attr_list_size (dc_list) - 2);
384 dn = build_dn_from_dc_list (dc_list, ttl, WI_SPEC);
389 add_to_rr_list (dn, dc_list[len], type, data, ttl, DNS_OBJECT);
634 /* build an sdb compatible LDAP DN from a "dc_list" (char **).
639 build_dn_from_dc_list (char **dc_list, unsigned int ttl, int flag)
648 size = get_attr_list_size (dc_list);
653 if (x == (size - 2) && (strncmp (dc_list[x], "@", 1) == 0) && (ttl))
654 sprintf (tmp, "relativeDomainName=%s + dNSTTL=%d,", dc_list[x], ttl);
656 sprintf(tmp, "relativeDomainName=%s,",dc_list[x]);
658 sprintf(tmp,"dc=%s,", dc_list[x]);
662 sprintf(tmp, "dc=%s,", dc_list[x]);
669 sprintf (tmp, "dc=%s", dc_list[0]);