ak47suk1

tukar dns di linux (atau lain2 yg ada /etc/resolv.conf)

Nov 23rd, 2011
188
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo gedit /etc/resolv.conf
  2.  
  3. # tambah ke fail tu
  4.  
  5. # copy dari sini
  6.  
  7. nameserver 8.8.8.8
  8. nameserver 8.8.4.4
  9.  
  10. # sampai sini
  11.  
  12. # save
  13.  
  14. sudo chattr +i /etc/resolv.conf
  15.  
  16. # solosai udah.
  17.  
  18. # Kalau nak edit balik. pastikan sudo chattr -i /etc/resolv.conf terlebih dahulu.
RAW Paste Data