Added dns cache flushing