Chris Jean's Blog

Linux, WordPress, programming, anime, and other stuff.
twitter
rss
Jan
16

Flush DNS Cache in Ubuntu

Categories : Linux, Tips 'n Tricks
Flush DNS Cache in Ubuntu

As a web developer, I’m always having to work with DNS. Anyone who has dealt with DNS will tell you that caching is simultaneously a great thing and a horrible thing.

Today, I made a mistake with the IP address of a new host, and I needed to flush my DNS cache so that my machine would go and grab the new IP address. I hadn’t done this in Ubuntu before, so I had to figure it out. Fortunately, it’s really easy.

  1. Load Terminal (Applications > Accessories > Terminal)
  2. Type in the following:
    sudo service networking restart
  3. Press the Enter key
  4. Put in your password

Done. Enjoy your newly flushed DNS cache.

Tags: , ,

Related Posts

Receive Updates

New posts on chrisjean.com delivered directly to your email.

Email:

4 Comments

Leave a Reply