Windows Server 2008 - How do I configure the DNS server correctly?

I have installed a new Windows Server 2008 R2 with the DNS Server role. I would like to configure the address www.company.com and server.company.com in the DNS server. Since I'm quite a DNS noob I haven't got any idea how to configure this correctly in the DNS Manager. I have added a Forward Lookup Zone named company.com

When I do a nslookup on www.company.com I would like to get the following reply.

Server:  server.company.com
Address:  10.10.10.1

Non-authoritative answer:
Name:    server.company.com
Address:  10.10.10.1
Aliases:  www.company.com

Can anybody tell me how to configure this correctly in the DNS Manager?
Or link to some how-to noob documentation.

Thanks in advance,
Clyde.
Clyde_RadcliffeAsked:
Who is Participating?
 
Darius GhassemCommented:
Add a DNS A record called www then put the IP address of the server that you want to handle the website.

Same goes with any other sites for an example  server.company.com you would add A record called company.
0
 
jillmjonesCommented:
Looks like you have it configured correctly. It appears you setup the server.company.com and then setup www as an alias pointing to server.company.com. If you want to mask server.company.com as being the return address, then setup www as a host record with the IP of 10.10.10.1.
0
 
abt-itCommented:
Be sure that the Clients uses the DNS Server and that you set a Forwarder for unknown domains to your router or ISP to speed up Nameresolving in the whole world...
0
 
Clyde_RadcliffeAuthor Commented:
Thanks for the replies, but I think I didn't explain the problem correctly:
I have created a primary zone in the DNS Manager called company.com
When the primary DNS zone is added it creates the SOA and NS record..
I have added the new host www and added the IP address 10.10.10.1

When I do a nslookup on www.company.com it returns:

Server: UnKnown
Address: 10.10.10.1
Name: www.company.com
Address: 10.10.10.1

However I would like the DNS to return the following information:

Server: server.company.com
Address: 10.10.10.1
Name: www.company.com
Address: 10.10.10.1

I would like it to return the server address name but now it just returns: UnKnown.
How can I achieve this?

Thanks in advance!
Clyde
0
 
jillmjonesCommented:
If the server.company.com is not in DNS: Add it as a host record (or run ipconfig /registerdns from server)
Then add and alias record for www.company.com and point it to the Server DNS entry.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.