Lines Matching defs:new
259 * new zones to be added at runtime.
1856 dns_rpz_zone_t *new;
1871 new = isc_mem_get(view->rpzs->mctx, sizeof(*new));
1872 if (new == NULL) {
1878 memset(new, 0, sizeof(*new));
1879 result = isc_refcount_init(&new->refs, 1);
1881 isc_mem_put(view->rpzs->mctx, new, sizeof(*new));
1884 dns_name_init(&new->origin, NULL);
1885 dns_name_init(&new->client_ip, NULL);
1886 dns_name_init(&new->ip, NULL);
1887 dns_name_init(&new->nsdname, NULL);
1888 dns_name_init(&new->nsip, NULL);
1889 dns_name_init(&new->passthru, NULL);
1890 dns_name_init(&new->drop, NULL);
1891 dns_name_init(&new->tcp_only, NULL);
1892 dns_name_init(&new->cname, NULL);
1893 new->num = view->rpzs->p.num_zones++;
1894 view->rpzs->zones[new->num] = new;
1898 view->rpzs->p.no_rd_ok &= ~DNS_RPZ_ZBIT(new->num);
1900 view->rpzs->p.no_rd_ok |= DNS_RPZ_ZBIT(new->num);
1905 view->rpzs->p.no_log |= DNS_RPZ_ZBIT(new->num);
1907 view->rpzs->p.no_log &= ~DNS_RPZ_ZBIT(new->num);
1912 new->max_policy_ttl = cfg_obj_asuint32(obj);
1914 new->max_policy_ttl = ttl_def;
1916 if (*old_rpz_okp && new->max_policy_ttl != old->max_policy_ttl)
1920 result = configure_rpz_name(view, rpz_obj, &new->origin, str, "zone");
1923 if (dns_name_equal(&new->origin, dns_rootname)) {
1930 &new->origin)) {
1937 if (*old_rpz_okp && !dns_name_equal(&old->origin, &new->origin))
1940 result = configure_rpz_name2(view, rpz_obj, &new->client_ip,
1941 DNS_RPZ_CLIENT_IP_ZONE, &new->origin);
1945 result = configure_rpz_name2(view, rpz_obj, &new->ip,
1946 DNS_RPZ_IP_ZONE, &new->origin);
1950 result = configure_rpz_name2(view, rpz_obj, &new->nsdname,
1951 DNS_RPZ_NSDNAME_ZONE, &new->origin);
1955 result = configure_rpz_name2(view, rpz_obj, &new->nsip,
1956 DNS_RPZ_NSIP_ZONE, &new->origin);
1960 result = configure_rpz_name(view, rpz_obj, &new->passthru,
1965 result = configure_rpz_name(view, rpz_obj, &new->drop,
1970 result = configure_rpz_name(view, rpz_obj, &new->tcp_only,
1977 new->policy = DNS_RPZ_POLICY_GIVEN;
1980 new->policy = dns_rpz_str2policy(str);
1981 INSIST(new->policy != DNS_RPZ_POLICY_ERROR);
1982 if (new->policy == DNS_RPZ_POLICY_CNAME) {
1984 result = configure_rpz_name(view, rpz_obj, &new->cname,
1990 if (*old_rpz_okp && (new->policy != old->policy ||
1991 !dns_name_equal(&old->cname, &new->cname)))
2005 dns_rpz_zones_t *new;
2021 new = view->rpzs;
2033 new->p.break_dnssec = ISC_TRUE;
2035 new->p.break_dnssec = ISC_FALSE;
2045 new->p.min_ns_labels = cfg_obj_asuint32(sub_obj) + 1;
2047 new->p.min_ns_labels = 2;
2051 new->p.qname_wait_recurse = ISC_TRUE;
2053 new->p.qname_wait_recurse = ISC_FALSE;
2057 new->p.nsip_wait_recurse = ISC_TRUE;
2059 new->p.nsip_wait_recurse = ISC_FALSE;
2099 if (old != NULL && memcmp(&old->p, &new->p, sizeof(new->p)) != 0)
2135 "catz: allow-new-zones statement missing from "
2195 /* Create a config for new zone */
3719 * otherwise create a new cache.
5220 * Create a new view and add it to the list.
5497 * Check for duplicates in the new zone table.
5560 * new view.
5568 * to create a new one.
5646 * Add the zone to its view in the new view list.
6534 /* See if we need to (re)generate a new key. */
6593 /* The new zone file may not exist. That is OK. */
6697 result = ns_config_get(maps, "allow-new-zones", &nz);
6728 * A non-empty catalog-zones statement implies allow-new-zones
7053 * Revert new view assignment for a zone found in NZD.
7340 * Parse the configuration file using the new config code.
7890 * If we're allowing new zones, we need to be able to find the
7891 * new zone file and count those as well. So we setup the new
8003 * Commit any dns_zone_setview() calls on all zones in the new
8013 /* Swap our new view list with the production one. */
8025 /* Swap our new cache list with the production one. */
8109 * switching to a new userid. We close them now, and reopen
8186 "creating new logging configuration");
9514 "scheduled loading new zones");
9518 "loading new zones failed: %s",
10222 /* Look for the new level name. */
12085 "added new zone was not found: %s",
12093 * we've created. If there was a previous one, merge the new
12137 /* Save the new zone configuration into the NZD */
12195 TCHECK(putstr(text, "new zone config is not set"));
12322 /* Store the new zone configuration; also in NZF if applicable */
12395 /* Are we accepting new zones in this view? */
12402 (void) putstr(text, "Not allowing new zones in view '");