moving dns resolving to separate file