fix: translate unicode domain names to Punycode for compatibility with DNS (#2823)

This commit is contained in:
Charlie Smurthwaite
2024-02-29 15:02:30 +00:00
committed by GitHub
parent ae30cc7615
commit be0df7b463
4 changed files with 30 additions and 27 deletions
+3
View File
@@ -14,6 +14,9 @@ RSpec.describe DNSResolver do
it "returns a list of IP addresses" do
expect(resolver.a("www.test.postalserver.io").sort).to eq ["1.2.3.4", "2.3.4.5"]
end
it "resolves a domain name containing an emoji" do
expect(resolver.a("☺.test.postalserver.io").sort).to eq ["3.4.5.6"]
end
end
describe "#aaaa" do