Share via

Manually adding DNS resolution

委员 马 40 Reputation points
2024-05-30T06:13:19.08+00:00

Why is there no separate dns tag... How to manually add a specified DNS resolution and what should be noted.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments

Answer accepted by question author

Jing Zhou 7,805 Reputation points Microsoft External Staff
2024-05-30T06:22:42.9933333+00:00

Hello,

Thank you for posting in Q&A forum.

We suggest that you manually specify specific DNS resolution by modifying the hosts file in the operating system. In the Windows operating system, the hosts file is located in the C: \ Windows \ System32 \ drivers \ etc directory.

Firstly, we use a text editor (such as Notepad++) to open the host file,

Next, at the end of the hosts file, enter the DNS resolution to be set in the format of "IP address domain name".

For example: 192.168.1.1 example.com. Save after editing. Close the text editor.

It is worth noting that after editing, we need to enter the command ipconfig/flushdns at the command prompt to refresh the local DNS cache

Additionally, modifying the hosts file may affect the normal network connection of the system, so please operate with caution. If you need further assistance or have any other questions, please let me know.

Best regards,

Jill Zhou


If the Answer is helpful, please click "Accept Answer" and upvote it.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Chris Johnson 510 Reputation points
    2025-09-12T00:15:42.0966667+00:00

    I did this on my windows 11 system, and the name still does not resolve

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.