trailofbits / spf-query

Ruby SPF Parser
MIT License
29 stars 15 forks source link

Configurable DNS servers #6

Closed adamlc closed 8 years ago

adamlc commented 8 years ago

It would be nice to have configurable DNS servers. Unfortunately I'm not a ruby dev but looking at the code it should be fairly easy (famous last words)!

:+1:

postmodern commented 8 years ago

We could support passing in your own instance of Resolv::DNS.

postmodern commented 8 years ago

Actually, we already support that!

resolver = Resolv::DNS.new(nameserver: '8.8.8.8')
SPF::Query::Record.query(..., resolver)
adamlc commented 8 years ago

Fantastic! Must have missed that, thanks!