How can I flush the DNS on Ubuntu 17.04?
I seem to have a few DNS issues at the moment since upgrading to 17.04 from 16.10 and went to flush the DNS but I can't find how to.
Can anyone tell me please?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I made this: https://github.com/dunderrrrrr/dnscache
Maybe thats what youre looking for.
$ git clone firstname.lastname@example.org:dunderrrrrr/dnscache.git $ cd dnscache/ $ sudo cp dnscache /usr/local/bin/ $ sudo chmod +x /usr/local/bin/dnscache
There are two arguments that can be passed to the script, clear or stats. Both of them should be self explanatory.
$ sudo dnscache clear DNS cache has been cleared! [...] Cache Current Cache Size: 0 [...]