ruby / resolv

A thread-aware DNS resolver library written in Ruby
Other
36 stars 28 forks source link

Fix querying absolute domain name twice #8

Open rhenium opened 3 years ago

rhenium commented 3 years ago

When search list is not explicitly specified, Resolv::DNS checks the local domain name of the running system. If it is not set either, the root domain ['.'] is used.

This is conceptually correct, but the code handles the absolute name separately, which in turn creates a duplicate query.