diff --git a/doc/Changelog b/doc/Changelog index bceebda65..f81d5558c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - zero qinfo in handle_request, this zeroes local_alias and also the qname member. - new keys and certs for dnscrypt tests. + - fixup WKS test on buildhost without servicebyname. 28 August 2017: Wouter - Fix #1415: patch to free dnscrypt environment on reload. diff --git a/sldns/str2wire.c b/sldns/str2wire.c index d91d4f758..f84d7d6b8 100644 --- a/sldns/str2wire.c +++ b/sldns/str2wire.c @@ -1701,6 +1701,7 @@ int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len) int serv_port; struct servent *serv = getservbyname(token, proto_str); if(serv) serv_port=(int)ntohs((uint16_t)serv->s_port); + else if(strcasecmp(token, "domain")==0) serv_port=53; else { serv_port = atoi(token); if(serv_port == 0 && strcmp(token, "0") != 0) {