Add preliminary DNS resolution

Surely this could be a lot smarter. In particular it just fails
on several types of errors.
Make the Expires header parse as a plain string

Google is sending these headers with value '-1', which doesn't parse.