Solved

explaination of DSN and DHCP

Posted on 2004-09-28
4
190 Views
Last Modified: 2010-03-18
I'm a programmer. I'm writing code to find out if the DNS information for a NIC was pulled from DHCP.

Basically this is what I know:
DNS - service that runs on a server that converts a name to an IP, right?
DHCP - service that runs on a server that hands out IP addresses, right?

I'm looking for an in depth explaination that I can go from that will help me. How are DNS and DHCP related?

0
Comment
Question by:apm825
  • 2
4 Comments
 
LVL 6

Expert Comment

by:tapkep
ID: 12178459
You are right about DNS. DHCP assigns not only IP address, but also default gateway, DNS server etc.

You can get technical information
about DNS - http://www.dns.net/dnsrd/rfc/
about DHCP - http://www.bind9.net/rfc-dhcp
0
 

Author Comment

by:apm825
ID: 12183134
Not sure what RFCs are, but is there anything else out there a little easier to read/understand?
0
 
LVL 6

Expert Comment

by:tapkep
ID: 12187729
RFC stands for "request for comments". For example:
RFC 3696 (Informational)
    Application Techniques for Checking and Transformation of Names by J. Klensin
    Summarises the syntax of valid DNS names, email addresses, and URLs, so that programmers can correctly apply local checking of input.

If you are looking for in-depth information, RFCs are what you are looking for.

If you need only concepts of how it works, read:
http://www.networkclue.com/internet/DNS/
http://www.tcpipguide.com/free/t_TCPIPDynamicHostConfigurationProtocolDHCP.htm

http://www.tldp.org/HOWTO/HOWTO-INDEX/networking.html#NETDNS
http://www.tldp.org/HOWTO/DHCP/index.html
0
 
LVL 33

Accepted Solution

by:
NJComputerNetworks earned 500 total points
ID: 12200651
Just some thoughts for you instead of reading technical articles...

DHCP is a service that can be configured to run on Windows servers.  When a DHCP Client (computer, printer, etc) boots onto the network, a broadcast is sent out looking for a DHCP server.  The DHCP server then responds and establishes communication with the client.  Without going into much detail about how this communication works, the server eventually assignes an IP address to the client machine.  The DHCP server has something called DHCP SCOPES.  A DHCP scope is a range of IP addresses that the DHCP server can hand out.  Along with the IP address, other IP properties are handed out to the client like (DNS address, gateway address, WINS address, etc).  

The client receives the IP address and now can communicate with other devices on the network using TCP/IP.

DNS is a service that also runs on a Windows server.  The job of this service is to resolve HOST names to IP addresses.  Every computer has an IP address.  But these IP addresses are hard to remember xx.xx.xx.xx.  So, a Host name is also given to the computer.  The host name (computer1) is related to the IP address.  

This relationship of IP address to host name is recorded by the DNS server.  It keeps a database of all of the HOSTS on the network.  The DNS server knows the ip address to HOST name relationship.

When a client want to know what IP address is assigned to COMPUTER1, the client will query the DNS server.  The DNS server will use the DNS database to respond with the correct IP address.

Computer1 = xx.xx.xx.xx

The client needs the IP so that it can communicate with the remote PC over TCP/IP.

DHCP and DNS are not really related.  However, the DHCP server can tell clients where the DNS server is located on the network.  This way when a client receives an IP address from the DHCP server, it also gets the DNS primary servers IP address.


You can run IPCONFIG /all from the client workstation to see this information...

-hope this helps a little

Joe Poandl MCSE

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now