Commit 79c7a4d6 authored by Dave Cridland's avatar Dave Cridland

Add support for a wildcard DNS override

Individual domains can be redirected to a specific handling host by use
of the DNS override property, dnsutil.dnsOverride

This patch allows a wildcard "*" entry to override all domains without
a specific override, for example:

dnsutil.dnsOverride = {*,127.0.0.1:5269}

... redirects all outgoing S2S traffic to port 5269 on localhost.
parent b662b0be
......@@ -88,6 +88,9 @@ public class DNSUtil {
List<HostAddress> results = new LinkedList<>();
if (dnsOverride != null) {
HostAddress hostAddress = dnsOverride.get(domain);
if (hostAddress == null) {
hostAddress = dnsOverride.get("*");
}
if (hostAddress != null) {
results.add(hostAddress);
return results;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment