aboutsummaryrefslogtreecommitdiffstats
path: root/checkalias.c
diff options
context:
space:
mode:
Diffstat (limited to 'checkalias.c')
-rw-r--r--checkalias.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/checkalias.c b/checkalias.c
index fd00502f..9447ec20 100644
--- a/checkalias.c
+++ b/checkalias.c
@@ -157,6 +157,7 @@ int is_host_alias(const char *name, struct query *ctl)
hints.ai_family=AF_UNSPEC;
hints.ai_protocol=PF_UNSPEC;
hints.ai_socktype=SOCK_STREAM;
+ hints.ai_flags=AI_CANONNAME;
e = getaddrinfo(name, NULL, &hints, &res);
if (e == 0)