diff --git a/Apps/GeoContinentApp/Address.cs b/Apps/GeoContinentApp/Address.cs index b718ee5a..8574299e 100644 --- a/Apps/GeoContinentApp/Address.cs +++ b/Apps/GeoContinentApp/Address.cs @@ -80,7 +80,7 @@ namespace GeoContinent { DnsQuestionRecord question = request.Question[0]; - if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase)) + if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase) && !appRecordName.StartsWith("*.", StringComparison.OrdinalIgnoreCase)) return Task.FromResult(null); switch (question.Type) diff --git a/Apps/GeoContinentApp/CNAME.cs b/Apps/GeoContinentApp/CNAME.cs index 325f8cff..d3a075ae 100644 --- a/Apps/GeoContinentApp/CNAME.cs +++ b/Apps/GeoContinentApp/CNAME.cs @@ -78,7 +78,7 @@ namespace GeoContinent { DnsQuestionRecord question = request.Question[0]; - if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase)) + if (!question.Name.Equals(appRecordName, StringComparison.OrdinalIgnoreCase) && !appRecordName.StartsWith("*.", StringComparison.OrdinalIgnoreCase)) return Task.FromResult(null); using JsonDocument jsonDocument = JsonDocument.Parse(appRecordData);