Solved

explaination of DSN and DHCP

Posted on 2004-09-28
4
192 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco MRA Phones 4 93
VPN speed and 3rd party service 13 51
Communication with an active RFID 7 68
How To Allow IIS 10 Anonymous Permissions 3 46
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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