What are DNS records and its functions?

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
Hey guys,

My VPS provider set up DNS records for my VPS, I would like to know what are these DNS records and its functions?

example.com. A 151.101.76.70
ftp A 151.101.76.70
mail A 151.101.76.70
ns1.example.com. A 151.101.76.70
ns2.example.com. A 151.101.76.70
pop A 151.101.76.70
smtp A 151.101.76.70
www A 151.101.76.70
example.com. NS ns1.example.com.
example.com. NS ns2.example.com.
example.com. MX 10 mail
example.com. TXT "v=spf1 a mx ip4:151.101.76.70 ~all"
I read an article on a blog and I compared with their recommended records, I missed 2 records

ns1 A 151.101.76.70
ns2 A 151.101.76.70
Should I create ns1, ns2 to my DNS administration?

Please share your advice?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
example.com. A 151.101.76.70
An A record is used to point a domain or subdomain to an IP.

www A 151.101.76.70
It's incorrect, should be a CNAME. a CNAME is a record to point a domain to another domain, so www CNAME example.com

example.com. MX 10 mail
A MX record is used for receiving emails, and it's why you have a A record for mail.example.com


ns1 A 151.101.76.70
A NS record is used for the nameserver, which means you should have an A record pointing to them as they will send your domain settings to other DNS servers

ns1 A 151.101.76.70
 

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
Thanks @VirtuBox for your explanations!

What about these

ns1.example.com. A 151.101.76.70

and

ns1 A 151.101.76.70
What is the difference between them?

example.com. MX 10 mail
what is 10 mail in this case?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Hi Kaz,

@Virtubox explained more or less everything.

'example.com MX 10 mail', The 10 means this is the priority mail server for the domain. For example a record with 20 would be the next mail server for the domain that will act as a backup for receiving mail if your primary mail server is unable to be connected to. DNS checks for the highest priority MX for the domain when a mail server attempts to send mail to that domain.

You only need to create ns1 and ns2 A records if you will be serving your own DNS for your domain on your VPS or any other domain registered to your name servers. If this is what you want to do, you will also need to create the glue records on the domains name servers with your registrar as the DNS will be unable to resolve if the name servers for your domain are sub domains of the domain. Sounds confusing I know, but it's quite simple. You will also need to set the name servers on your domain to your own custom name servers. e.g ns1.example.com ns2.example.com. if you wish to serve your own DNS.
 

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
Kaz Wolfe
If I want to create ns3, ns4 for other domain then I need to create in the domain that I created in my hosting panel and it should point to another IP address?

for example

ns3 A IP address
ns4 A IP address

and in domain control panel, I also need to create host names which to point ns3, ns4 to (new) IP address?

for example
ns3 -> IP address
ns4 -> IP address

right?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
It's not to clear what your trying to achieve, little more info would be helpful.

If you want to create ns3.yourdomain.com and ns4.yourdomain.com those records need to be added into yourdomain.com zone file, you can point them at whatever ip you wish.
 

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
Kaz Wolfe
I also need to create ns3.yourdomain.com and ns4.yourdomain.com on my hosting panel as in WHM?

ns3.yourdomain.com A IP address
ns4.yourdomain.com A IP address

for example, I want to create some new name servers for some domains.
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
If you want to create some new name servers for registering domains you just need to create the ns3. and ns4 in yourdomains.com zone file, point the A record at the server that will be serving DNS for those domains.

You can do this from WHM: Home > Edit DNS Zone
 

rankmyhub

Well-known member
Registered
Joined
Feb 14, 2017
Messages
193
Points
18
I understand what you are trying to acheive. If my guess is right?

You have say 10 domain names say

google.com
google.org
google.net
yahoo.com
yahoo.co.in

like this...

and you want each domain name to be having their own nameservers like..

for google.com you want ns1.google.com ns2.google.com
for yahoo.com you want n1.yahoo.com ns2.yahoo.com

likewise, you want own nameservers for all the domains you will host??? Is this the case?
 

rankmyhub

Well-known member
Registered
Joined
Feb 14, 2017
Messages
193
Points
18
Okay. Thank you
 
Latest Threads
Replies
0
Views
122
Replies
1
Views
77

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top