#thats what i currently have in namecheap

1 messages · Page 1 of 1 (latest)

wheat elbow
shy rootBOT
#

Hi @wheat elbow. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

wheat elbow
#

then the table should be in digitalocean

shy rootBOT
#

Sorry @wheat elbow, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:

Perhaps try again in 15mins?

wheat elbow
#

go there to edit your dns records

noble crown
#

ya

#

should i select the first option?

wheat elbow
#

ok for now keep it as is

#

what does the nameserver section and the dns records section look like in your namecheap

noble crown
#

this is the table in namecheap

#

thats default table.

#

i didnt do any changes to it.

#

this is my DO table

#

so should i remove the custom domain from DO and just do what you did and setup everything in namecheap?

#

by adding those A and CNAME records?

wheat elbow
#

so by searching in whois for a bit, apparently your current name servers are still at namecheap

noble crown
#

i actually removed the digitalocean name servers frm namecheap

wheat elbow
#

then go to namecheap to change the table

noble crown
#

5 mins ago

wheat elbow
#

go to that table

#

edit it

noble crown
#

Im now using Basic Namecheap DNS

#

the first optoin from that dropdown list

#

which table

wheat elbow
#

for vercel, add

A    bigbrain.buzz     76.76.21.21
noble crown
#

the dns table in namecheap/

#

where did you find that vercel ip?

wheat elbow
wheat elbow
noble crown
#

oh ok

wheat elbow
#

actually

noble crown
#

ok let me add that

wheat elbow
#

just go to vercel dashboard

#

and go to custom domain

#

add custom domain

#

it will tell you all the steps

#

then over at digital ocean, also go to custom domain and add it

#

it should also tell you all the steps

noble crown
#

so i guess i should add another A record for my backend?

wheat elbow
#

no

noble crown
#

why

wheat elbow
#

actually did you go to vercel dashboard

#

and add a custom domain

#

let's finish that part first

#

before moving to your backend

noble crown
#

let me see

wheat elbow
#

"A Record (recommended)"

#

go to that tab

#

ignore all options regarding nameservers

noble crown
#

ok

#

maybe takes some time to update?

wheat elbow
#

not bigbrain.buzz

#

show me the table after you added the record

noble crown
wheat elbow
#

yup

noble crown
#

cool

wheat elbow
#

try refreshing again

#

it should work after a few mins

noble crown
wheat elbow
#

yup so bigbrain.buzz now works but www.bigbrain.buzz hasn't

#

go to the table

#

add the CNAME record in

noble crown
#

k

wheat elbow
#

most likely there is already a row with CNAME www though

#

edit that row instead

noble crown
#

blue checkmarks now

#

ya it works

wheat elbow
#

good

#

let's move to the backend

#

head to your DO droplet

noble crown
#

im there

wheat elbow
#

move to the section to add custom domain

#

add the custom domain there

noble crown
wheat elbow
#

no not this one

#

the part to add a custom domain to the droplet

#

not to manage dns records

noble crown
#

k one sec

#

should i delete the old one?

wheat elbow
#

no it isn't this one

#

is there something like this but for droplets?

#

in the droplet settings section perhaps

#

i only deployed using DO apps and not droplets so im not sure

#

DO apps have build/start scripts, github integration, domain assignments and automatic https so it's easier to manage

noble crown
#

i think its different for droplets

#

the screenshot i showed earlier is how to add custom domains

#

for droplets at least

wheat elbow
#

hmm this digitalocean thing is quite anti-foreign-nameservers

#

in that case let's try this

wheat elbow
#

remove the custom domain from your vercel app

noble crown
#

go to the namecheap dropdown

wheat elbow
#

and remove the dns records over at namecheap

noble crown
#

it says to add the DO nameservers in namecheap?

wheat elbow
#

then we move to namecheap to move the nameservers to DO because DO hates other nameservers

noble crown
#

you want me to do that?

wheat elbow
#

yes

#

so we will manage the table in DO instead

#

so undo all of the steps until now

#

clear all tables

noble crown
#

you want me to undo all those records in namecheap?

wheat elbow
#

yes

#

take a screenshot or something

#

and then remove them all

#

we restart fresh

noble crown
#

so basically do the exact same thing i did in namecheap and add them in DO?

wheat elbow
#

what is your current DO dns table? namecheap dns table?

#

clear all of them

noble crown
#

you sure?

wheat elbow
#

you know what

noble crown
wheat elbow
#

i rethink my decision

noble crown
#

omg

wheat elbow
#

have you deleted everything

noble crown
#

i already started deleting

wheat elbow
#

ok then continue

#

move name servers to digitalocean

noble crown
#

i can add everything bck

#

wait

wheat elbow
#

no worries just continue

#

as you did

noble crown
#

i also deleted the custom domain in DO

#

im starting fresh

wheat elbow
#

kek

#

alright

#

then readd that domain to DO

#

done yet?

noble crown
#

thats brand new dns table

wheat elbow
#

yup lgtm, now follow the guide

noble crown
#

lgtm?

wheat elbow
#

add the name servers to "custom dns" or something like that at namecheap

wheat elbow
noble crown
#

ok let me add it

#

one sec

wheat elbow
#

should look like this and then save it

noble crown
#

done

wheat elbow
#

from this point on we will forget about namecheap and do all the domain management in digitalocean

#

so go back to digitalocean

noble crown
#

ya

wheat elbow
#

what is the current dns table

noble crown
#

brand new

wheat elbow
#

screenshot it for me

noble crown
#

the previous screenshot

#

ok

wheat elbow
noble crown
wheat elbow
#

i thought there should be one by default

noble crown
#

no

wheat elbow
#

alright

noble crown
#

negative

wheat elbow
#

add the A records as in vercel case

noble crown
#

only NS

wheat elbow
#

one A and one CNAME

#

exactly like we did before

noble crown
#

like what we did earlier?

#

ook

wheat elbow
#
A @ <vercel-ip>
CNAME www <vercel-dns-domain>
noble crown
wheat elbow
#

another one for CNAME www

noble crown
wheat elbow
#

good

noble crown
#

i think thats correct??

wheat elbow
#

go to vercel dashboard to refresh

#

are the blue checkmarks there

noble crown
#

ya blue checkmarks everywhere

#

no errs

wheat elbow
#

ok can acess your website

#

good

#

now the backend

#

what is the ip address of your droplet

noble crown
#

143.198.33.237

wheat elbow
#

add a CNAME

#
CNAME api 143.198.33.237
noble crown
#

k

wheat elbow
#

done yet?

#

now run something in your droplet at a port of your choice

noble crown
#

you mean A record?

wheat elbow
#

no

wheat elbow
#

how does the table look like

noble crown
#

i cant add the cname

wheat elbow
#

hmm

#

lemme google this

noble crown
#

i think it should be A record

wheat elbow
#

no, A is for apex, bigbrain.buzz

#

not for api.bigbrain.buzz

noble crown
wheat elbow
#

oh wait

#

yeah it should be an A

#

i'm too used to vercel smh

noble crown
#

cool

#

is that it?

wheat elbow
#

now run something in the droplet

#

at a port of your choice

noble crown
#

my web server is already running

wheat elbow
#

at what port

noble crown
#

maybe it takes time for update?

#

port 80?

wheat elbow
#

done

#

congrats

#

now continue building your apps

noble crown
#

wait

#

i dont ese that

wheat elbow
#

if you can't access it then wait for the dns cache to be invalidated

#

it should start working in maybe one hour

#

1 day is i think the upper limit

noble crown
wheat elbow
#

yes this should just be dns cache

noble crown
#

let me try clearing cache one sec

wheat elbow
#

if it persists until tomorrow then ping me

#

otherwise this should be good to go

noble crown
#

ok thanks dude youre awesome

#

appreciate the help seriously

#

ill let you know if i still have issues tomorrow

#

see you

wheat elbow
#

can confirm it is working on my phone too

#

so 99% it's your computer's dns cache's fault

#

and the remaining 7 billions people in this world can all access it

noble crown
#

but i even tried incognito mode

#

still didnt work

#

even tried in chrome and ff

#

let me try tor

wheat elbow
#

no the cache is not browser's i think

#

it is your computer's

#

maybe restarting your computer will help

noble crown
#

oh yea it works on my phone

wheat elbow
#

google "clear dns cache on windows" or whatever os you are using

#

How to flush DNS cache on Windows#
If you're using a Windows computer, here's how to flush the DNS cache:

Open the Command Prompt by pressing the Windows key + R, typing cmd in the Run dialog box, and pressing Enter.
Type the following command and press Enter: ipconfig /flushdns
You should see a message that says "Successfully flushed the DNS Resolver Cache."
That's it! You have now successfully flushed the DNS cache on your Windows computer.

noble crown
#

seems good in tor

#

oh im using linux

wheat elbow
#

ah linux user

#

then google it but for linux

noble crown
#

ya

#

its cool

#

i think its fine

#

wow this is amazing

wheat elbow
#

btw you got https working congrats

#

shiny lock icons

noble crown
#

ya im actually using caddy

#

i configured reverse proxy in caddy. i dont even know if that was even necessary

wheat elbow
#

if it works it works so...

noble crown
#

yea im just gonna leave everything...lol

#

i dont want things to start breaking again

#

once again. appreciate the help

#

you're amazing

wheat elbow
#

assuming you don't forget to renew the domain it should keep working yeah

#

next time if you want to add CNAME or A for anything

noble crown
#

i think caddy auto renews?

wheat elbow
#

or connect your domain to an email provider or whatever

#

then go to the DO domain section

#

and add it there

noble crown
#

that sounds complicated

wheat elbow
noble crown
#

ok will do

#

so for now on i manage everything inside DO

wheat elbow
noble crown
#

the docs were saying to do everything in namecheap

#

which was what i was doing

wheat elbow
#

yes so now the DO table is your friend

noble crown
#

everything is so confusing

wheat elbow
#

just go there whenever you need to add a new subdomain or similar

noble crown
#

ok i understand now

wheat elbow
#

forget about namecheap

#

turn on autorenewals and never go there again

noble crown
#

so i do nothing at all with namecheap?

wheat elbow
#

yeah just ignore the dns table there

noble crown
#

but didnt i add the DO nameservers there?

wheat elbow
#

now you manage the dns in DO

#

not namecheap

#

that's what i mean

noble crown
#

i mean we added DO's name servers in namecheap remember?

wheat elbow
#

yeah

noble crown
#

before i was adding DO's and vercel's name servers on namecheap together

#

im pretty sure that was wrong

wheat elbow
#

what i said is, if you ever find yourself needing to add DNS config rows, like for example if google asks you to add a TXT entry, then go to DO and not namecheap for that

#

as there are now two tables

#

don't be confused and use the useless one

noble crown
#

ok got it

#

holy crap dude its working

#

thanks so much

#

appreciate it

wheat elbow
#

welcome