Cấu hình DNS Server để cung cấp tính năng phân giải tên máy chủ hoặc địa chỉ IP.
Cài đặt trên Cui: chạy Powershell với quyền admin, và chạy lệnh như sau.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
# install DNS with admin tools
PS C:\Users\Administrator> Install-WindowsFeature DNS -IncludeManagementTools
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True Yes SuccessRest... {DNS Server, ...
WARNING: You must restart this server to finish the installation process.
# restart computer to apply changes
PS C:\Users\Administrator> Restart-Computer -Force
Cài đặt trên GUI như sau.
Mở Server Manager và chọn Add roles and features.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/Display-1.png)
Chọn Next để tiếp tục.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/cai-dat-DNS.png)
Chọn Role-based or feature-based installation
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/3.png)
Chọn máy chủ lưu chữ mà bạn muốn thêm dịch vụ.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/Host-DNS.png)
Bấm chọn DNS Server.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/DNS-server.png)
Chọn Add Features để thêm chức năng cho DNS Server. Sau khi thêm xong chọn next để tiếp tục
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/Add-Future.png)
Chọn next.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/7.png)
Tiếp tục chọn Next.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/8.png)
Chọn Install để cài đặt.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/9.png)
Sau khi cài đặt xong. chọn Close để thoát.
![](https://cloudviet.com.vn/wp-content/uploads/2022/10/10.png)