You don't have to. However, if you believe or notice that your 502 issues have something to do with the DNS, then you can. Third-party servers like Google Public DNS are often recommended and happen to be quite effective.