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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.