Ddos protection

Hi, i need help for server ddos protection, can i use vpn to hide my ip for that somehow? if im trying to use vpn it says fetching server info and fails at attempt 3. or can i use some domains/free ones?