How Do I Set DNS On A Raspberry Pi?

TL/DR: Private Internet Access does not support Raspberry Pi's however you can find below instructions to change DNS configurations for the most common distros.

The instructions below are not supported by Private Internet Access and should only be attempted if you possess some technical ability and familiarity with Linux operating systems.


The most common distros for Raspberry Pi are; Raspbian, Pi Musicbox, RetroPie, OSMC and OpenMediaVault. We've included instructions for Raspberry Pi distros which are capable of utilising the PIA service.


Debian (Including Raspbian)

Open Terminal and edit the resolv.conf file by typing

nano /etc/resolv.conf

then add the server IP of the Private Internet Access DNS Servers


Save and exit the file and then reboot.

If the configuration reverts when you boot, a starting process is changing the resolv.conf back to it's original format. This can be prevented by opening Terminal and typing

chattr +i /etc/resolv.conf

The file will need to be unlocked for further modification.

Have more questions? Submit a request