Skip to content

Instantly share code, notes, and snippets.

View pacphi's full-sized avatar
🎯
Focusing

Chris Phillipson pacphi

🎯
Focusing
View GitHub Profile
@pacphi
pacphi / flush-dns.sh
Created July 19, 2017 21:45 — forked from craigvantonder/flush-dns.sh
Flushing the DNS in Ubuntu 16.04
#!/bin/bash
# run this command to flush dns cache:
sudo /etc/init.d/dns-clean restart
# or use:
sudo /etc/init.d/networking force-reload
# Flush nscd dns cache:
sudo /etc/init.d/nscd restart
# If you wanted to refresh your settings you could disable and then run
sudo service network-manager restart