Why DHCP Ain’t as Good as it Used to Be

rj31x jack wiring

Why DHCP ain’t as good as it used to be.

DHCP used to be the go-to protocol when setting up computers and printers.

These days you may want to use static IPs for printers and maybe even computers if you user RDP (Remote Desktop Protocol).

DHCP (Dynamic Host Configuration Protocol) allows a server to hand out IPs and network information to devices joining your network. Often this is handled by a router. The router may be built into your cable modem on a home network.

Every device on your network requires a unique IP so that the requests for network and web resources get routed correctly.

The alternative is to set up static IPs, in which case, you manually enter pertinent information like the gateway (router), DNS servers, and a static IP that is not in the DHCP IP pool or previously assigned.

DHCP is much simpler especially is you have lots of devices coming and going. In fact, it is easier to enter a static IP after first reviewing a CMD prompt of ipconfig for the DHCP assigned values.

On a domain, this is best done by the server.

System

For our discussion, we will assume a small single server (server) but the principles apply to most DHCP servers.

Windows Server 2008 R2 Standard
DC (domain controller) for corp.domain.com
AD (Active Directory)
connected to the Internet via a cable router.

Vital Information

The vital pieces of information that DHCP must supply on a domain are the IP, gateway router, DNS servers, and domain.

DHCP scope options
003 router -192.168.0.1
006 DNS servers – 192.168.0.253 (our DC)
015 domain name – corp.domain.com

address pool : 192.168.0.50 -192.168.0.99

Typically we save a few IPs for static machines like servers, routers, and printers. For our system, we will reserve IPs below 192.168.0.50. For larger networks you may need multiple scopes and/or wider ranges.

The domain name should match the domain name in DNS forward lookup zone. You can find DNS & DHCP sections in Server Manager. Expand sections and right-click to select properties to  find & edit information.

Troubleshooting DHCP

For our demo system, we are assuming that server was in another domain prior (domain.com) to becoming DC (domain controller) for corp.domain.com. Since DNS forwarder shows corp.domain.com as the domain we will edit our DHCP name accordingly.

Our demo system also had a bogus router 0.0.0.0 so we delete the information and add our gateway 192.168.0.1.

These sorts of problems occur when the server goes from member server to domain controller of another domain.

In Conclusion

DHCP is still very useful so you will want to take advantage of it as much as possible.

Tip: Even if you use static IPs you may want to look at something that’s already on your network to see how DHCP set it up.

Slow Loading Websites & Resources

Network Issues

Slow Loading Websites & Resources

DNS (Domain Name System) is a service that translates website & computer names to ips (i.e., Internet Protocol addresses) so you can use friendly domain names like Google.com & Randy-laptop.

On a Windows domain this service is handled by the DC (Domain Controller).

IPs – IPv4

Note that every device on your network should have a unique ip. A duplicate ip causes confusion. Only the 1st device to secure an ip will be able to access the network.

Likewise many websites have a unique ip but this is not always the case. If your test website uses HTTP Secure(e,g, https://www.google.com)  then it has a unique website.

IPv4 is the easier protocol to deal with when accessing resources.

Applications

This article specifically applies to a Server 2008 R2 Standard single server domain with AD (Active Directory) but the principles can be applied to DNS servers everywhere.

A Server 2008 R2 Standard single server domain should point only to itself for DNS and not an external server. The rest of the domain should also point to this server. There should be no reason to have a forwarder in a single server domain but you might run across one if a server has been removed somehow.

Machines with static ips will have the local ip for the DNS server. Machines assigned ips via DHCP (Dynamic Host Configuration Protocol)  will get that ip from the DHCP server.

Troubleshooting Domain DNS

If your clients on the domain access computer resources like network shares & websites without issues then your DNS is working properly. If on the other hand it takes a long time for a website or network share to load then you may want to investigate DNS.

A simple way to troubleshoot DNS is to try accessing the ip rather than the FQDN (Fully Qualified Domain Name). Chances are you don’t know the ip of the resource but you can ping it from a CMD prompt.

The examples below we are pinging FQDN cisco.com   & Randy-laptop with the -4 flag set (return IPv4). Once we have the ip we can try accessing these resources.

In the case of cisco.com we put the ip 72.163.4.161 in our browser. If the page loads for the ip and not the FQDN then we have a DNS problem.

In the case of the network resource, we can try connecting with a net use command. Assuming you have permission to access the save share on Randy-laptop then the net use command should connect  drive X. If you can access the share via ip but not FQDN then we have issues with DNS.

Examples:

C:\Users\Randy>ping cisco.com -4

Pinging cisco.com [72.163.4.161] with 32 bytes of data:

C:\Users\Randy>ping Randy-laptop -4

Pinging Randy-Laptop [192.168.1.25] with 32 bytes of data:

Connecting to network share using ip:

C:\Users\Randy>net use x: \\192.168.1.25\save
The command completed successfully.

DNS Problem Forwarder

In our example we are going to assume that the network is slow and resources drag. Troubleshooting leads us to believe there is a DNS problem. Looking at the properties of our DNS we find a forwarder.

 

We know the forwarder should not be there so we remove it & restart the DNS service. This is more likely to occur when you remove a DNS server from your domain. It can also occur when you move your DC to a new domain leaving the old DNS server behind.