Unable to map D.O domain name to D.O ipaddress & do forwarding. Stuck after creation. Want to create domainName to avoid ip in Namecheap.

April 27, 2018 281 views
DNS Ubuntu 16.04
natty
By:
natty

About me: Fellow Developers., I am application developer and very much new to application domain configuration
Expection: I would like to have a domain name created in Digital Ocean which could be used in Namecheap to forward any requests to that domain name to Digital Ocean domain name.

Expected behaviour Eg; www.DomainNameatNameCheap.com -> DomainNameatDigitaLOcean.com-> Ipaddres at digital ocean.

Current behaviour : DomainNameatDigitaLOcean.com-> Ipaddres at digital ocean. Xxxxxxxxxxx ( not working)
www.DomainNameatNameCheap.com -> DomainNameatDigitaLOcean.com Xxxxxxxxxxx ( not working)
www.DomainNameAtNameCheap.com -> IpAdddress at digital ocean (works)

Attempted Solution:
.I don't know what i am missing but i tried following everything in here https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-dns . After configuration, this is how it looks.

Type . Hostname value TTL(Seconds)
CNAME . *.tcfte01.prod . tcfte01.prod . 43200
CNAME . www.tcfte01.prod . tcfte01.prod . 43200
A tcfte01.prod 192.168.1.11(sample) . 3600
NS tcfte01.prod ns1.digitalocean.com 1800
NS tcfte01.prod ns2.digitalocean.com 1800
NS tcfte01.prod ns3.digitalocean.com 1800
Please provide a direction or solution, i've been stuck on this problem because i need to perform reverse proxying code if this gets enabled. This expectation not being resolving has been blocking the launch of my application. Thank you. Sincerely,

1 comment
  • Fellows :
    Fellow Developers., I am application developer and very much new to application domain configuration
    Expection: I would like to have a domain name created in Digital Ocean which could be used in Namecheap to forward any requests to that domain name to Digital Ocean domain name.

    Expected behaviour Eg; www.DomainNameatNameCheap.com -> DomainNameatDigitaLOcean.com-> Ipaddres at digital ocean.

    Current behaviour : DomainNameatDigitaLOcean.com-> Ipaddres at digital ocean. Xxxxxxxxxxx ( not working)
    www.DomainNameatNameCheap.com -> DomainNameatDigitaLOcean.com Xxxxxxxxxxx ( not working)
    www.DomainNameAtNameCheap.com -> IpAdddress at digital ocean (works)

    Attempted Solution:
    .I don't know what i am missing but i tried following everything in here https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-dns . After configuration, this is how it looks.
    **
    Type . Hostname value TTL(Seconds)**
    CNAME . *.tcfte01.prod . tcfte01.prod . 43200
    CNAME . www.tcfte01.prod . tcfte01.prod . 43200
    A tcfte01.prod 192.168.1.11(sample) . 3600
    NS tcfte01.prod ns1.digitalocean.com 1800
    NS tcfte01.prod ns2.digitalocean.com 1800
    NS tcfte01.prod ns3.digitalocean.com 1800
    Please provide a direction or solution, i've been stuck on this problem because i need to perform reverse proxying code if this gets enabled. This expectation not being resolving has been blocking the launch of my application.

    This article explains how to manage your DNS records using the DigitalOcean Control Panel and can help you decide if DigitalOcean's DNS management tools are right for your situation.
2 Answers

Hello @natty

I can certainly help with understanding and configuring your DNS. Lets start with namecheap - I personally use this service as well for my domains purchasing - love their DDNS service(s).

Lets call the domain you purchased at namecheap cheapname.com for example purposes. Within your domain configuration you will want to set the nameservers for cheapname.com to the following:

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

Information on how to make this change can be found here : https://www.namecheap.com/support/knowledgebase/article.aspx/767/10/how-can-i-change-the-nameservers-for-my-domain

Next you will want to add the cheapname.com domain to DigitalOcean

As you noted above, this guide will help you : https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-dns

Keep in mind DigitalOcean is not a domain registrar, here you will continue to use the same name you purchased at namecheap (cheapname.com)

From here you can use the DigitalOcean DNS (Networking) to route your various DNS requests. This can be to Droplets, or external services.

Keep in mind that changes will take time to propagate out to the rest of the internet. This can take anywhere from 15minutes to 24hours.

This article explains how to manage your DNS records using the DigitalOcean Control Panel and can help you decide if DigitalOcean's DNS management tools are right for your situation.
Have another answer? Share your knowledge.