How to connect a Namecheap domain to Linode?
Occasionally I need to link a domain parked at Namecheap to a Linode and each time I forget how to do it. Thus, here is a guide (i.e. a cheat-sheet for me).
Linode part
To link a domain to your Linode account
- Open Linode account dashboard.
- Click “Create” dropdown and select “Domain”.
- Choose “Master”.
- Type the domain (without www).
- Enter some email as “SOA Email Address” (this will be public, e.g. can be looked up with this tool).
- “Do not insert default records for me”. Alternatively you can select “Insert default records from one of my Linodes” and select the target Linode machine.
- Click “Create” button.
To link a domain to a specific Linode.
Once you linked a domain to your account, you can connect it to a specific Linode:
- Open Linode account dashboard.
- Copy the target Linode machine IPv4 address.
- Open “Domains” on the left.
- Select the target domain.
- Add A/AAAA record with the IPv4 address and empty hostname.
- Copy IPv6 address.
- Add A/AAAA record with the IPv6 address and empty hostname.
Namecheap part
- Go to a given domain dashboard.
- Set “Nameservers” to “Custom DNS” (by default it is Namecheap BasicDNS).
- Add “ns1.linode.com”, “ns2.linode.com” and so on up to “ns5.linode.com” as nameservers (source).
- To save, click at the green checkmark (righthand side from “Custom DNS” dropdown).
- Wait until the change is propagated across the world (1-2 days, but often 5-10 minutes can be enough).