Like `dns` module, but cache the results.