OFDNSResolver: Move settings into a single object

This allows easily passing around all settings rather than passing each
one individually.