zone.c revision 69d44b2f5ac8e35bdb0b80aeb304f5cb62197892
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * Copyright (C) 1999-2001 Internet Software Consortium.
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * Permission to use, copy, modify, and distribute this software for any
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * purpose with or without fee is hereby granted, provided that the above
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * copyright notice and this permission notice appear in all copies.
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
cffe50abf66495ee08084f8e1081278a9b589985Brian Wellington/* $Id: zone.c,v 1.322 2001/05/09 05:20:28 marka Exp $ */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define ZONEMGR_MAGIC 0x5a6d6772U /* Zmgr */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define LOAD_MAGIC ISC_MAGIC('L','o','a','d')
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define FORWARD_MAGIC ISC_MAGIC('F','o','r','w')
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define RANGE(a, b, c) (((a) < (b)) ? (b) : ((a) < (c) ? (a) : (c)))
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Default values.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_DEFAULT_IDLEIN 3600 /* 1 hour */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_DEFAULT_IDLEOUT 3600 /* 1 hour */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define MAX_XFER_TIME (2*3600) /* Documented default is 2 hours */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_MAX_EXPIRE 14515200 /* 24 weeks */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington do { (z)->locked = ISC_FALSE; UNLOCK(&(z)->lock); } while (0)
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* Unlocked */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington ISC_LINK(dns_zone_t) link; /* Used by zmgr. */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* Access Control Lists */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Zones in certain states such as "waiting for zone transfer"
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * or "zone transfer in progress" are kept on per-state linked lists
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * in the zone manager using the 'statelink' field. The 'statelist'
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * field points at the list the zone is currently on. It the zone
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * is not on any such list, statelist is NULL.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Optional per-zone statistics counters (NULL if not present).
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONE_FLAG(z,f) (ISC_TF(((z)->flags & (f)) != 0))
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONE_SETFLAG(z,f) do { \
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington (z)->flags |= (f); \
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONE_CLRFLAG(z,f) do { \
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington (z)->flags &= ~(f); \
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* XXX MPA these may need to go back into zone.h */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_REFRESH 0x00000001U /* refresh check in progress */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_NEEDDUMP 0x00000002U /* zone need consolidation */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_USEVC 0x00000004U /* use tcp for refresh query */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_DUMPING 0x00000008U /* a dump is in progress */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_HASINCLUDE 0x00000010U /* $INCLUDE in zone file */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_LOADED 0x00000020U /* database has loaded */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_EXITING 0x00000040U /* zone is being destroyed */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_EXPIRED 0x00000080U /* zone has expired */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_NEEDREFRESH 0x00000100U /* refresh check needed */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_UPTODATE 0x00000200U /* zone contents are
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * uptodate */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_NEEDNOTIFY 0x00000400U /* need to send out notify
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * messages */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_DIFFONRELOAD 0x00000800U /* generate a journal diff on
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_NOMASTERS 0x00001000U /* an attempt to refresh a
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * zone with no masters
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_LOADING 0x00002000U /* load from disk in progress*/
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_HAVETIMERS 0x00004000U /* timer values have been set
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * from SOA (if not set, we
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * are still using
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * default timer values) */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONEFLG_FORCEXFER 0x00008000U /* Force a zone xfer */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONE_OPTION(z,o) (((z)->options & (o)) != 0)
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington/* Flags for zone_load() */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington#define DNS_ZONELOADFLAG_NOSTAT 0x00000001U /* Do not stat() master files */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* Locked by rwlock. */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* Configuration data. */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington /* Locked by iolock */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Hold notify state.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * dns_stub holds state while performing a 'stub' transfer.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * 'db' is the zone's 'db' or a new one if this is the initial
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Hold load state.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Hold forward state.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington * Hold IO request state.
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_settimer(dns_zone_t *, isc_stdtime_t);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_debuglog(dns_zone_t *zone, const char *, int debuglevel,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington const char *msg, ...);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_log(dns_zone_t *zone, int level, const char *fmt, ...);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_iattach(dns_zone_t *source, dns_zone_t **target);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_idetach(dns_zone_t **zonep);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zone_replacedb(dns_zone_t *zone, dns_db_t *db,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t default_journal(dns_zone_t *zone);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_xfrdone(dns_zone_t *zone, isc_result_t result);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zone_postload(dns_zone_t *zone, dns_db_t *db,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_needdump(dns_zone_t *zone, unsigned int delay);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_shutdown(isc_task_t *, isc_event_t *);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zone_loaddone(void *arg, isc_result_t result);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zone_startload(dns_db_t *db, dns_zone_t *zone,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington/* ondestroy example */
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void dns_zonemgr_dbdestroyed(isc_task_t *task, isc_event_t *event);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void refresh_callback(isc_task_t *, isc_event_t *);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void stub_callback(isc_task_t *, isc_event_t *);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void queue_soa_query(dns_zone_t *zone);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void soa_query(isc_task_t *, isc_event_t *);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void ns_query(dns_zone_t *zone, dns_rdataset_t *soardataset,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic int message_count(dns_message_t *msg, dns_section_t section,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_cancel(dns_zone_t *zone);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_find_address(dns_notify_t *notify);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_send(dns_notify_t *notify);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t notify_createmessage(dns_zone_t *zone,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_done(isc_task_t *task, isc_event_t *event);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void notify_send_toaddr(isc_task_t *task, isc_event_t *event);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zone_dump(dns_zone_t *);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void got_transfer_quota(isc_task_t *task, isc_event_t *event);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zmgr_start_xfrin_ifquota(dns_zonemgr_t *zmgr,
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zmgr_resume_xfrs(dns_zonemgr_t *zmgr);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic void zonemgr_free(dns_zonemgr_t *zmgr);
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellingtonstatic isc_result_t zonemgr_getio(dns_zonemgr_t *zmgr, isc_boolean_t high,
const char *templat);
return (ISC_R_NOMEMORY);
return (ISC_R_UNEXPECTED);
#ifdef DNS_ZONE_CHECKLOCK
goto free_mutex;
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
goto nomem;
for (i = 0; i < dbargc; i++)
for (i = 0; i < dbargc; i++) {
goto nomem;
goto unlock;
for (i = 0; i < dbargc; i++) {
return (result);
return (result);
static isc_result_t
char *copy;
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
char *journal;
return (ISC_R_NOMEMORY);
return (result);
return (result);
static isc_boolean_t
static isc_result_t
goto cleanup;
goto cleanup;
goto cleanup;
goto cleanup;
&filetime);
goto cleanup;
goto cleanup;
&db);
goto cleanup;
goto cleanup;
goto cleanup;
return (result);
goto fail;
goto fail;
fail:
static isc_result_t
return (ISC_R_NOMEMORY);
goto cleanup;
goto cleanup;
return (result);
return (result);
return (result);
static isc_result_t
unsigned int soacount = 0;
unsigned int nscount = 0;
goto cleanup;
goto cleanup;
goto cleanup;
nscount = 0;
soacount = 0;
case dns_zone_master:
case dns_zone_slave:
case dns_zone_stub:
if (nscount == 0) {
goto cleanup;
isc_time_t t;
goto cleanup;
zone,
sizeof(isc_event_t));
goto cleanup;
if (needdump)
return (result);
return (result);
static isc_boolean_t
return (ISC_TRUE);
return (ISC_FALSE);
static isc_result_t
unsigned int *nscount)
unsigned int count;
*nscount = 0;
goto invalidate_rdataset;
goto invalidate_rdataset;
count = 0;
count++;
return (result);
static isc_result_t
unsigned int *soacount,
unsigned int count;
goto invalidate_rdataset;
count = 0;
count++;
if (count > 0) {
return (result);
static isc_result_t
goto closeversion;
minimum);
return (answer);
unsigned int refs;
if (refs == 0) {
if (free_now)
if (free_needed)
if (value)
if (value)
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
goto unlock;
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
return (result);
sizeof(dns_name_t));
if (count == 0)
goto unlock;
goto unlock;
goto unlock;
for (i = 0; i < count; i++)
for (i = 0; i < count; i++) {
sizeof(dns_name_t));
goto allocfail;
newname[i]);
for (i = 0; i < count; i++)
newname[i],
goto unlock;
return (result);
return (result);
case dns_zone_slave:
case dns_zone_stub:
case dns_zone_slave:
case dns_zone_stub:
case dns_zone_master:
case dns_zone_slave:
case dns_zone_master:
case dns_zone_slave:
goto unlock;
goto unlock;
return (result);
return (result);
static isc_result_t
return (result);
return (ISC_R_SUCCESS);
return (result);
static isc_boolean_t
return (ISC_TRUE);
return (ISC_TRUE);
return (ISC_FALSE);
if (!locked)
if (!locked)
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
unsigned int options;
goto destroy;
goto destroy;
static isc_result_t
isc_event_t *e;
if (e == NULL)
return (ISC_R_NOMEMORY);
isc_event_free(&e);
return (result);
int timeout;
goto cleanup;
goto cleanup;
goto cleanup;
addrbuf);
case PF_INET:
case PF_INET6:
goto cleanup_key;
&new);
goto cleanup;
goto cleanup;
unsigned int flags = 0;
goto cleanup1;
goto cleanup2;
&master);
goto cleanup3;
goto cleanup3;
if (!loggednotify) {
serial);
if (isqueued) {
static inline isc_result_t
goto fail;
goto fail;
goto fail;
&rdataset);
goto fail;
goto fail;
&rdataset);
goto fail;
goto fail;
&rdataset);
goto fail;
goto fail;
goto fail;
return (ISC_R_SUCCESS);
fail:
return (result);
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
master);
goto next_master;
goto same_master;
master);
goto next_master;
if (cnamecnt != 0) {
goto next_master;
if (nscnt == 0) {
goto next_master;
goto next_master;
goto free_stub;
goto free_stub;
goto free_stub;
goto done;
done:
goto same_master;
master);
goto next_master;
goto next_master;
goto next_master;
goto next_master;
master);
goto tcp_transfer;
master);
goto next_master;
goto same_master;
goto next_master;
if (cnamecnt != 0) {
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
goto next_master;
isc_time_t t;
goto next_master;
goto next_master;
goto detach;
goto detach;
goto detach;
isc_event_t *e;
if (e == NULL) {
isc_event_free(&e);
static inline isc_result_t
&message);
goto cleanup;
goto cleanup;
goto cleanup;
return (ISC_R_SUCCESS);
return (result);
int timeout;
goto cleanup;
goto cleanup;
DNS_REQUESTOPT_TCP : 0;
case PF_INET:
case PF_INET6:
goto cleanup;
goto cleanup;
if (cancel)
int timeout;
goto cleanup;
goto cleanup;
&node);
goto cleanup;
goto cleanup;
case PF_INET:
case PF_INET6:
goto cleanup;
goto cleanup;
goto unlock;
if (free_needed)
case dns_zone_master:
case dns_zone_slave:
case dns_zone_stub:
if (next == 0) {
static isc_result_t
isc_region_t r;
&message);
return (result);
goto cleanup;
goto cleanup;
goto done;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
NULL);
goto soa_cleanup;
goto soa_cleanup;
goto soa_cleanup;
isc_buffer_usedregion(b, &r);
goto soa_cleanup;
goto soa_cleanup;
done:
return (ISC_R_SUCCESS);
return (result);
int match = 0;
return (DNS_R_FORMERR);
return (DNS_R_NOTIMP);
return (ISC_R_SUCCESS);
match > 0)
return (DNS_R_REFUSED);
&rdataset);
fromtext);
return (ISC_R_SUCCESS);
fromtext);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
const char *fmt, ...)
int count = 0;
count++;
return (count);
if (idlein == 0)
return (result);
static isc_result_t
goto fail;
goto fail;
return (ISC_R_SUCCESS);
fail:
return (result);
unsigned int soacount;
unsigned int nscount;
switch (result) {
case ISC_R_SUCCESS:
case DNS_R_UPTODATE:
goto same_master;
isc_time_t t;
nscount = 0;
soacount = 0;
if (nscount == 0)
goto cleanup;
static isc_result_t
return (ISC_R_NOMORE);
case PF_INET:
case PF_INET6:
goto unlock;
return (result);
goto next_master;
goto next_master;
goto next_master;
case dns_rcode_noerror:
case dns_rcode_yxdomain:
case dns_rcode_yxrrset:
case dns_rcode_nxrrset:
case dns_rcode_refused:
case dns_rcode_nxdomain:
case dns_rcode_notzone:
case dns_rcode_notauth: {
goto next_master;
case dns_rcode_formerr:
case dns_rcode_servfail:
case dns_rcode_notimp:
case dns_rcode_badvers:
goto next_master;
return (ISC_R_NOMEMORY);
goto cleanup;
goto cleanup;
goto cleanup;
return (result);
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
return (ISC_R_NOMORE);
return (ISC_R_SUCCESS);
return (ISC_R_NOMEMORY);
goto free_mem;
goto free_rwlock;
goto free_taskpool;
goto free_task;
goto free_rl;
return (ISC_R_SUCCESS);
return (result);
goto cleanup_task;
goto unlock;
return (result);
if (free_now)
if (free_now)
dns_zone_t *p;
p != NULL;
return (ISC_R_SUCCESS);
static isc_result_t
dns_zone_t *x;
isc_event_t *e;
x != NULL;
nxfrsin++;
nxfrsperns++;
return (ISC_R_QUOTA);
return (ISC_R_QUOTA);
sizeof(isc_event_t));
if (e == NULL)
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
return (ISC_R_NOMEMORY);
return (ISC_R_NOMEMORY);
if (queue) {
if (!queue) {
return (ISC_R_SUCCESS);
if (send_event) {
char *buf;
int buflen;
goto cleanup;
goto cleanup;
if (value == 0)
ns = 0;
if (on) {
goto done;
goto done;
done:
return (result);
switch (dialup) {
case dns_dialuptype_no:
case dns_dialuptype_yes:
case dns_dialuptype_notify:
case dns_dialuptype_refresh:
case dns_dialuptype_passive:
INSIST(0);