1. Configure DNS using the hosts file.
2. Access DNS information using Windows PowerShell.
Task 1. Configure DNS using the hosts file.
To configure DNS using the hosts file, you need to erform the following tasks
1. Check the name resolution.
2. Configure and test the hosts file.
Task 1.1 Checking the name resolution
To check the name resolution, you need to perform the following steps:
1. Ensure that the Start screen is displayed.
2. Type Command Prompt, and then press the Enter Key. The Administrator:
Command Prompt window is displayed.
3. Type the ping patentserver command, and then press the Enter key. the ping request error message is displayed.
4. Type the exit command, and then press the Enter key. the Administrator:
Commans Prompt window is closed.
Task 1.2 Configuring and Testing the Hosts File
To configure and test the hosts file, you need to perfoem the following steps:
1. Press Windows+C keys. The charms bar is Displayed.
2. Select Start. The screen is Displayed.
3. Type C:\Windows\System32\Drivers\etc, and then press the Enter key. The etc window is displayed.
4. select the hosts file in the right pane.
5. Rght-click the hosts file, and then select the Open with optin. the How do you want to open this file pop-up
menu is displayed.
6. select the Notepad option. the hosts- noteped winsow is displayed.
7. press the Ctrl+Ent keys to reach at the and of file.
8. Type 172.16.0.10, and then press the Tab key.
9. Type patenserver, and then close the file. the Notepad dialog box is displayed.
10. click the Save button.
11. close the etc window.
12. Open the command prompt window.
13. Type the Ping Patentsever command, and then press the Enter key. The replies from 172.16.0.10 are displayed.
14. Type the exit command, and then the Enter key. The Administrator:
Command Prompt window is cloced.
Task 2. Accessing DNS information Using Windows PowerShell
To access DNS information using Windows PowerShell, you need to perform the following steps:
1. Press the windows key. the Start screen is displayed.
2. Start typing powerShell. The Windows PowerShell file is displayed in the Apps screen.
3. Click the Windows PowerShell tile. The Administrator: Windows PowerShell window is displayed.
4. Type the Get-Dnsclient cmdlet, and then press the Enter key. After some time, the details of
computer interface DNS are displaye.
5. Type the Get-DnsClientCache cmdlet, and then press the Enter key. you will notice that the entries of
cache are displayed.
6. Type the Get-DnsClintGlobalSetting cmdlet, and then press the Enter key. you will notice that the Global
DNS setting are displayed.
7. Type the Get-DnsClintServer Address cmdlet, and then press the Enter key. you will notice that the Global DNS setting
are displayed.
8. Type the Clear-DnsClientCache cmdlet, and then press the Enter key to clear the entries of the DNS cache.
9. Type the Get-DnsClintCache cmdlet, and then press the Enter key. you will notice that the entries of cache are displayed.
10. Type the exit command, and then press the Enter key.
2. Access DNS information using Windows PowerShell.
Task 1. Configure DNS using the hosts file.
To configure DNS using the hosts file, you need to erform the following tasks
1. Check the name resolution.
2. Configure and test the hosts file.
Task 1.1 Checking the name resolution
To check the name resolution, you need to perform the following steps:
1. Ensure that the Start screen is displayed.
2. Type Command Prompt, and then press the Enter Key. The Administrator:
Command Prompt window is displayed.
3. Type the ping patentserver command, and then press the Enter key. the ping request error message is displayed.
4. Type the exit command, and then press the Enter key. the Administrator:
Commans Prompt window is closed.
Task 1.2 Configuring and Testing the Hosts File
To configure and test the hosts file, you need to perfoem the following steps:
1. Press Windows+C keys. The charms bar is Displayed.
2. Select Start. The screen is Displayed.
3. Type C:\Windows\System32\Drivers\etc, and then press the Enter key. The etc window is displayed.
4. select the hosts file in the right pane.
5. Rght-click the hosts file, and then select the Open with optin. the How do you want to open this file pop-up
menu is displayed.
6. select the Notepad option. the hosts- noteped winsow is displayed.
7. press the Ctrl+Ent keys to reach at the and of file.
8. Type 172.16.0.10, and then press the Tab key.
9. Type patenserver, and then close the file. the Notepad dialog box is displayed.
10. click the Save button.
11. close the etc window.
12. Open the command prompt window.
13. Type the Ping Patentsever command, and then press the Enter key. The replies from 172.16.0.10 are displayed.
14. Type the exit command, and then the Enter key. The Administrator:
Command Prompt window is cloced.
Task 2. Accessing DNS information Using Windows PowerShell
To access DNS information using Windows PowerShell, you need to perform the following steps:
1. Press the windows key. the Start screen is displayed.
2. Start typing powerShell. The Windows PowerShell file is displayed in the Apps screen.
3. Click the Windows PowerShell tile. The Administrator: Windows PowerShell window is displayed.
4. Type the Get-Dnsclient cmdlet, and then press the Enter key. After some time, the details of
computer interface DNS are displaye.
5. Type the Get-DnsClientCache cmdlet, and then press the Enter key. you will notice that the entries of
cache are displayed.
6. Type the Get-DnsClintGlobalSetting cmdlet, and then press the Enter key. you will notice that the Global
DNS setting are displayed.
7. Type the Get-DnsClintServer Address cmdlet, and then press the Enter key. you will notice that the Global DNS setting
are displayed.
8. Type the Clear-DnsClientCache cmdlet, and then press the Enter key to clear the entries of the DNS cache.
9. Type the Get-DnsClintCache cmdlet, and then press the Enter key. you will notice that the entries of cache are displayed.
10. Type the exit command, and then press the Enter key.
No comments:
Post a Comment