It is not necessary to change DNS on PS5. If you're facing some problem related internet connection, you can test to change dns server on your PS5.