In that case, use the “sudo killall -HUP mDNSResponder” command to flush DNS cache. Note: Sometimes, you might need to flush the DNS cache for the changes to take effect. Press control + X (^X), then Y and hit return to save the file and return to Terminal prompt.įrom now on, any request issued for the particular root domain () from the Mac will be directed to localhost.Append the following line to the end of the file: “ 127.0.0.1 ”.The hosts file is now open in editable mode within the Terminal window. Provide the System Password when prompted. ![]()
0 Comments
Leave a Reply. |