Dns change is also very easy for ubuntu. Go to network tool on the panel tray,

–> right click –> edit connections

–> choose wired or wireless connection

–> come to IPv4 settings

–> choose authomatic (DHCP) addresses only

–> write this way, (for opendns) you can use also google dns (,

–> apply

That is all ! No need for restarting.