Fixed Nat mode not resolving hostname to IP's.

Linked mrash/fwknop#43
Merge patch from Franck in support of issue #43