Rewrite the unit tests for the new implementation of the linux networking resolver. Also refactor the code and enable rubocop for it.