aboutsummaryrefslogtreecommitdiffstats
path: root/checkalias.c
diff options
context:
space:
mode:
Diffstat (limited to 'checkalias.c')
-rw-r--r--checkalias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkalias.c b/checkalias.c
index 5b8b6744..90a7ffd5 100644
--- a/checkalias.c
+++ b/checkalias.c
@@ -123,8 +123,6 @@ int is_host_alias(const char *name, struct query *ctl)
return(TRUE);
else if (str_in_list(&lead_server->akalist, name, TRUE))
return(TRUE);
- else if (!ctl->server.dns)
- return(FALSE);
/*
* Now check for a suffix match on the akalist. The theory here is
@@ -149,6 +147,8 @@ int is_host_alias(const char *name, struct query *ctl)
return(TRUE);
}
+ if (!ctl->server.dns)
+ return(FALSE);
#ifndef HAVE_RES_SEARCH
return(FALSE);
#else