DSN domain name set up process, looking for help

October 6, 2015 1.6k views
MySQL FAQ Joomla PHP DNS

Hello,

I'm looking for solution to set up dynamic server name..

For example website hosts several stores, and each store has its own name, how to create store1.domainnmae.com, store2.domainname.com like dynamically once the store is set up. Website is built on joomla, do you know of any applications which can mange this?

Thank You
Alex

3 Answers

Hi,

Here's the answer to your question -

Setting up a DNS server

There are two ways to configure DNS. You can use your ISP's DNS server or you set up your own DNS server. In the first case you don't have to register the name server (your ISP already did) with a domain registrar, in the latter case you will have to appoint a NS1 and NS2 name server, f.e. ns1.etechsupport.net, and ns2.etechsupport.net (a primary and a secondary name server).

In both cases, you will have to provide your domain registrar with at least two name server addresses to link to your domain. You will also have to add these DNS addresses to your TCP/IP stack on your server. If your ISP provides the DNS server you need to forward him any domain names which will reside on your server. Your ISP will then add the necessary MX records and A records to the DNS server.

MX records
If you want to receive e-mail from the Internet, you will need to have a Mail Exchange (MX) record for your domain in your ISPs or your own DNS database. An MX record has 3 parts: your domain name, the name of the machine that will accept mail for the domain, and a preference value. The preference value lets you build in a priority level, f.e. etech.net mail.etech.net 0. You can set multiple MX records, and the mail server will attempt the one with the lowest preference value first, and if it fails try the next, and so forth.

A records
A records associate IP addresses with computer names. For example, an A record links the name 'yourdomain.com' to the IP address of your Web server.

CNAME records
DNS allows machines to have a true (canonical name), as well as an unlimited number of aliases. The CNAME record takes care of aliases. CNAME records can be useful when you want a subdomain to point to a computer outside of your domain.

Setting up a DNS server

There are two ways to configure DNS. You can use your ISP's DNS server or you set up your own DNS server. In the first case you don't have to register the name server (your ISP already did) with a domain registrar, in the latter case you will have to appoint a NS1 and NS2 name server, f.e. ns1.etechsupport.net, and ns2.etechsupport.net (a primary and a secondary name server).

In both cases, you will have to provide your domain registrar with at least two name server addresses to link to your domain. You will also have to add these DNS addresses to your TCP/IP stack on your server. If your ISP provides the DNS server you need to forward him any domain names which will reside on your server. Your ISP will then add the necessary MX records and A records to the DNS server.

MX records
If you want to receive e-mail from the Internet, you will need to have a Mail Exchange (MX) record for your domain in your ISPs or your own DNS database. An MX record has 3 parts: your domain name, the name of the machine that will accept mail for the domain, and a preference value. The preference value lets you build in a priority level, f.e. etech.net mail.etech.net 0. You can set multiple MX records, and the mail server will attempt the one with the lowest preference value first, and if it fails try the next, and so forth.

A records
A records associate IP addresses with computer names. For example, an A record links the name 'yourdomain.com' to the IP address of your Web server.

CNAME records
DNS allows machines to have a true (canonical name), as well as an unlimited number of aliases. The CNAME record takes care of aliases. CNAME records can be useful when you want a subdomain to point to a computer outside of your domain.

Thank you Elizine, appreciate your response.

Have another answer? Share your knowledge.