Refactoring domainPart
Refactor to methods for IPv4 and 6 tags