Ask coding questions

← Back to all posts
Adding a domain with and without a www.
h
Nsleeper

I am attempting to make it so my custom domain is functional with and without www. prefix. I have successfully implemented www."domain".com but it is still not working on without the www. . In the past there is typically an ip address to route A types but I have not found that in any of the documentation for that. Any help would be appreciated.

Answered by AllMightySabu [earned 5 cycles]
View Answer
Voters
Nsleeper
Comments
hotnewtop
AllMightySabu

open cmd and enter
nslookup
after that enter your repl url
now paste that ip address in your A record
example:
nslookup https://InterestingUnimportantInstitution.allmightysabu.repl.co
Server: dns2.mnrbroadband.com
Address: 43.231.59.3

Non-authoritative answer:
Name: https://InterestingUnimportantInstitution.allmightysabu.repl.co
Address: 34.120.194.28

in my case address is 34.120.194.28

Coder100

you use the CNAME provided by replit to connect the domain you specified through your DNS provider.