Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My notes on DNS #26

Open
shreshthmohan opened this issue Mar 20, 2022 · 0 comments
Open

My notes on DNS #26

shreshthmohan opened this issue Mar 20, 2022 · 0 comments

Comments

@shreshthmohan
Copy link
Owner

shreshthmohan commented Mar 20, 2022

Checking the result of DNS settings for your domain

dig @8.8.8.8 +trace shreshth.dev

An apex domain is a custom domain without a subdomain, e.g. google.com.

Whereas a subdomain is what you prepend to your domain, e.g. in www.google.com, www is the subdomain

Usually, your apex domain (shreshth.dev) has to point to an IP address and cannot point to another domain address. So in your DNS settings, an A record will have to be pointed to the IP of your hosting provider's load balancer. (TODO: add note about ALIAS records available with some providers)
This site's A name record:

shreshth.dev.		3600	IN	A	76.76.21.21

Any other subdomains can point to both IP addresses and non-IP addresses, i.e. other subdomains. cat.example.com can point to www.catexample.com, or to 76.76.21.93.

This site's www subdomain CNAME record

www.shreshth.dev.	3600	IN	CNAME	next-blog-mu-three.vercel.app.

IN stands for internet

Julia Evans has a good article that helps you understand how a DNS lookup works.

@shreshthmohan shreshthmohan added the draft A blog post that is a draft label Sep 6, 2022
@shreshthmohan shreshthmohan added status:published and removed draft A blog post that is a draft labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant