none
CNAME record not working RRS feed

  • Question

  • Hello, 

    I need your help guys. I just setup a DNS server to perform name to IP address resolution for a self host web server. However it does not work. 

    Here is an example of how my DNS, zone and records are configured. 

    1. from the DNS installation wizard, I chose to receive updates both secured and unsecured 

    2. I created a forward lookup zone named mydomain.com

    3. on the mydomain.com, I created a A record as indicated below

    A record

    myserver    A     10.0.0.1

    4. I created a CNAME record as follow

    myserver.mydomain.com  CNAME   www

    the web site is accessible locally using the IP address of the web server. However I can't access it via www.mydomain.com as I configured it on the DNS server.

    Please help me find out what is going. 

    Thanks

    Saturday, October 1, 2016 11:25 PM

Answers

All replies

  • On any client machine of this domain, run the command:

    nslookup www

    This verifies the CNAME is in the DNS zone mydomain.com.  The output should show two results - the A record followed by the alias (CNAME).  If it doesn't, (1) your client machine might not pointing at the right DNS server in order for your exercise to work, or (2) you created the CNAME entry incorrectly.  If this DNS server is running on Windows, you can use the DNS management console to create it:

    Add an Alias (CNAME) Resource Record to a Zone


    Best Regards, Todd Heron | Active Directory Consultant

    • Proposed as answer by Todd Heron Monday, October 3, 2016 4:31 PM
    Sunday, October 2, 2016 1:24 AM
  • Hi,

    >>3. on the mydomain.com, I created a A record as indicated below

    A record

    myserver    A     10.0.0.1

    4. I created a CNAME record as follow

    myserver.mydomain.com  CNAME   www

    In addition,you could check the TTL of that CNAME and A record,make sure they are avialable.


    Best Regards,
    Cartman
    Please remember to mark the replies as an answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by Todd Heron Monday, October 3, 2016 11:51 AM
    Monday, October 3, 2016 2:29 AM
  • Hi

    If you want www to be redirected to 10.0.0.1, add it like this

    1. Add zone my domain.com

    2. add record

    www CNAME myserver.mydomain.com

    3. Add record

    myserver A 10.0.0.1

    Hope this helps.

    Monday, October 3, 2016 4:09 PM