1. While troubleshooting a network connection problem for a co-worker, you discover the computer is querying a non-existent DNS server. What command-line utility can you use to assign the correct DNS server IP address? Is DNS using UDP or TCP? include examples

The command-line utility that can be used to assign the correct DNS server IP address is "ipconfig" (Windows) or "ifconfig" (Linux/Mac).

To assign the correct DNS server IP address using ipconfig on Windows, follow these steps:
1. Open the Command Prompt by pressing "Windows Key + R," typing "cmd," and pressing Enter.
2. In the Command Prompt window, type "ipconfig /all" and press Enter.
3. Look for the network adapter for which you want to change the DNS server. Note its name (e.g., Ethernet adapter, Wi-Fi adapter).
4. Type "ipconfig /setdnsserver <adapter name> <DNS server IP address>" and press Enter. Replace <adapter name> with the actual name of the adapter, and <DNS server IP address> with the correct IP address of the DNS server. For example, to assign the DNS server IP address 192.168.1.1 to the Ethernet adapter, you would type "ipconfig /setdnsserver Ethernet 192.168.1.1" and press Enter.

To assign the correct DNS server IP address using ifconfig on Linux/Mac, follow these steps:
1. Open the Terminal by searching for it in the Applications/Utilities folder.
2. In the Terminal window, type "ifconfig" and press Enter.
3. Look for the network adapter (e.g., eth0, wlan0) for which you want to change the DNS server. Note its name.
4. Type "sudo ifconfig <adapter name> dns <DNS server IP address>" and press Enter. Replace <adapter name> with the actual name of the adapter, and <DNS server IP address> with the correct IP address of the DNS server. For example, to assign the DNS server IP address 192.168.1.1 to the wlan0 adapter, you would type "sudo ifconfig wlan0 dns 192.168.1.1" and press Enter.

DNS primarily uses the User Datagram Protocol (UDP) for DNS queries. However, if a UDP response exceeds 512 bytes, it may use the Transmission Control Protocol (TCP) instead.

To assign the correct DNS server IP address, you can use the command-line utility called "netsh". DNS primarily uses UDP (User Datagram Protocol), but it can also use TCP (Transmission Control Protocol) for certain scenarios. Here are the commands you can use:

1. Open Command Prompt with administrative privileges.
2. To view the current DNS server configuration, enter the following command:
```
netsh interface ip show dns
```

This will display the current DNS server IP addresses assigned to the network interfaces.

3. To assign a specific DNS server IP address, use the following command:
```
netsh interface ip set dns name="<InterfaceName>" static <DNSIPAddress> primary
```

Replace `<InterfaceName>` with the appropriate network interface name (e.g., "Ethernet" or "Wi-Fi"). Replace `<DNSIPAddress>` with the correct IP address of the DNS server you want to assign.

For example, to assign the DNS server IP address "192.168.1.100" to the "Ethernet" interface, you would use:
```
netsh interface ip set dns name="Ethernet" static 192.168.1.100 primary
```

4. After assigning the DNS server IP address, confirm the changes by running the following command:
```
netsh interface ip show dns
```

This will display the updated DNS server configuration with the correct DNS server IP address.

Remember to replace `<InterfaceName>` and `<DNSIPAddress>` with the appropriate values for your configuration.