External DNS WWW record

Everything in this post is fictional.

I have a domain, contoso.com. I have two dns servers registered with that. ns1.contoso.com and ns2.contoso.com. I am putting out a webserver which I want to respond with www.contoso.com. This works fine but when I try to go to it via contoso.com it won't work.

What do I need to do to fix this? We are using Microsoft DNS.
LVL 12
jjmartineziiiAsked:
Who is Participating?
 
RikketyrikConnect With a Mentor Commented:
Do you have contoso.com pointing to the IP address? What does NSLOOKUP tell you?

You can also add a wildcard host record. "@" is the wildcard if memory serves. So add a record @.contoso.com and anything will resolve to it. blahblah.contoso.com etc.

0
 
tigermattCommented:
All you need to do is create a blank A (host) record in each nameserver's contoso.com DNS zone, which is configured with the same IP address as your www record. That will instruct all contoso.com requests to go to the appropriate web server.

-tigermatt
0
 
Chris DentPowerShell DeveloperCommented:

> @" is the wildcard if memory serves

@ is Origin (shorthand for the zone name)

* is Wildcard

Tigermatt has the right one for this though, just requires the blank entry.

Chris
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
feptiasCommented:
Windows DNS shows blank Host (A) records as "(same as parent folder)". However, if you have a Windows Active Directory domain called contoso.com then you must leave the existing records as they are because AD requires that they point at the Domain Controller. This is why it is best not to name your Windows domain the same as your public DNS domain.
0
 
tigermattCommented:
And for security reasons it's a good idea not to use Active Directory DNS servers - whether DCs or just members of the domain - as DNS servers for an external namespace.
0
 
jjmartineziiiAuthor Commented:
First to answer! Thanks
0
 
tigermattCommented:
Can you please explain why the other posts did not warrant some points?
0
 
jjmartineziiiAuthor Commented:
They were the first to answer. Anyone else could have (not saying they did) just copied the answer and put in their own words.

I think, that just because everyone is right, doesn't mean everyone should get points. I might be wrong.
0
All Courses

From novice to tech pro — start learning today.