def METHOD_NAME():
    """Flush the OS DNS resolver"""
    logging.debug("Flushing DNS")
    plat = platform.system()
    if plat == "Windows":
        run_elevated('ipconfig', '/flushdns')
    elif plat == "Darwin":
        subprocess.call(['sudo', 'killall', '-HUP', 'mDNSResponder'])
        subprocess.call(['sudo', 'dscacheutil', '-flushcache'])
        subprocess.call(['sudo', 'lookupd', '-flushcache'])
    elif plat == "Linux":
        subprocess.call(['sudo', 'service', 'dnsmasq', 'restart'])
        subprocess.call(['sudo', 'rndc', 'restart'])
        subprocess.call(['sudo', 'systemd-resolve', '--flush-caches'])
        subprocess.call(['sudo', 'resolvectl', 'flush-caches'])