AITS - Service Desk - DNS - How Do I Reset my DNS?

Domain Name Service (DNS) translates a human-readable domain name address (like www.illinois.edu) into a machine-readable IP address (like 130.126.157.20). Your computer's DNS cache stores DNS query results for a period of time. On rare occasions, it may be necessary to reset your DNS cache. This article details how to reset your DNS.

Windows

  1. Click the start icon and type "Command Prompt."
  2. Right click on Command Prompt and press "run as administrator."
  3. When asked whether to allow Command Prompt to make changes to your computer, select Yes. (if you are not an administrator or do not have administrator access you will need to contact your local IT)
  4. Open Command Prompt
  5. Type the command ipconfig /flushdns then press enter
  6. Type the command ipconfig /registerdns then press enter
  7. Type the command ipconfig /release then press enter
  8. Type the command ipconfig /renew then press enter
  9. Type the command netsh winsock reset then press enter
  10. Restart the computer

Mac

  1. Close all browser windows.
  2. Open Terminal. You can do this by pressing the Command key Space Bar at the same time to open your Spotlight Search. Or click the magnifying glass in the top right hand corner. Then type "terminal." Click on Terminal. 
  3. In the Terminal window, type the corresponding command for your Mac OS X version:
    MacOS Version Command
    macOS 12 (Monterey) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
    macOS 11 (Big Sur) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
    macOS 10.15 (Catalina) sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
    macOS 10.14 (Mojave) sudo killall -HUP mDNSResponder
    macOS 10.13 (High Sierra) sudo killall -HUP mDNSResponder
    macOS 10.12 (Sierra) sudo killall -HUP mDNSResponder
    OS X 10.11 (El Capitan) sudo killall -HUP mDNSResponder
    OS X 10.10 (Yosemite) sudo discoveryutil udnsflushcaches
    OS X 10.9 (Mavericks) sudo killall -HUP mDNSResponder
    OS X 10.8 (Mountain Lion) sudo killall -HUP mDNSResponder
    Mac OS X 10.7 (Lion) sudo killall -HUP mDNSResponder
    Mac OS X 10.6 (Snow Leopard) sudo dscacheutil -flushcache
    Mac OS X 10.5 (Leopard) sudo lookupd -flushcache
    Mac OS X 10.4 (Tiger) lookupd -flushcache
  4. Press Enter, then enter your password to finish clearing the DNS cache. 

 

 



Keywords:
DNS,DNS error,502 error,502 bad gateway,bad gateway,DNS Reset,DNS_PROBE_FINISHED_NXDOMAIN 
Doc ID:
135907
Owned by:
AITS Service Desk in University of Illinois System
Created:
2024-03-07
Updated:
2024-11-16
Sites:
University of Illinois System