How to enter a custom address to a dns file? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
in the /var/www/html directory I have many folders which contain websites like 'store/', and to access a website through my LAN I enter in the address bar 'myserveripaddress/store'.
I created a DNS file to access the website with a custom name but I don't know what to put in the file, I tried:
customname A myserveripaddress/store
but it didn't work, the only one that works is:
customname A serveripaddress
but it doesn't take me to the website under 'store/' directory for example.
Is there a solution?

DNS does not work this way. In this instance, DNS points domain at a server, but it is to the server how it responds to that request.
to get this to work, you would need to create separate web server configs for each of the "sub-websites" and then point the DNS record at domain name listed in that config.

Related

Ubuntu server can be accessed from two hostnames [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
in our company we have a Ubuntu 16.04.5 server, where we keep our intranet website and some other simple sites. All works good, but we can access the server using two names like - http://server/website/ and http://server1/website/ . I checked all apache2 files and all host files and I did not find anything related to the name server1, only hostname server. Maybe someone can help me figure out where something like this is configured on how to turn it off.
For me this is normal situation. You have configured one site on this machine. But your DNS server have two records for the IP of the machine. And when you reach apache via first hostname you get the site as it is defined. When you reach the machine via second hostname apache check the hosts defined and see there is no special definition for this hostname and serve the request with first configured host.

How to connect my domain (ex -: www.xyz.com) by hosting server Microsoft azure? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
My domain register from godaddy site I don't know how to connect this domain form an azure server. I have added these DNS server names in godaddy.
ns1-03.azure-dns.com.
ns2-03.azure-dns.net.
ns3-03.azure-dns.org.
ns4-03.azure-dns.info.
Is it right or wrong? How do i manage my domain's DNS in Azure?
What it shows you by nslookup?
If you can see those NS code, yes right.
When your domain issued, you can see what name server(NS) using in your domain by nslookup or any nslookup web services.
Make sure, your domain issued, it would take times until get your domain more than 2days or less depends on domain service companies.
These NS value would print on your prompt or cmd querying domain.
ns1-03.azure-dns.com.
ns2-03.azure-dns.net.
ns3-03.azure-dns.org.
ns4-03.azure-dns.info.

How to make it so that when I type test.com it will open the files from b.test.com? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
We have two servers (with different IPs) which are hosting two different websites on them. We have the first site as the apex domain (example.com) and the second is a subdomain (b.example.com).
Right now example.com and b.example.com are completely different websites. How can I change this so that when I got to example.com it shows the same contents as b.example.com current shows?
So I guess this depends on what you're trying to achieve. I am assuming that because you have b.example.com that is supposed to be the new "beta" site that you are now wanting to go live with.
If you want to swap to the new site then you should update the DNS A record for example.com to point at the same IP that b.example.com is pointing at.
This is one approach but I would recommend adding more detail to your question so that we can be more clear about what you're trying to achieve 👍

What DNS requirements do I need to map one domain to another? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have my first site at http://www.example.com/members/quiz.php?qid=My-quiz which queries a database.
I would like to display the exact content for each quiz under my second site: http://www.mysecondsite.example/quiz.php?qid=My-quiz
I am new to DNS so I know this is probably a simple question. What do I need to do on both domains to make this work?
You cannot solve this issue solely with DNS. With DNS all you can say that the IP address for www.example.com is the same as that for www.mysecondsite.example.
Your webserver has to understand that any requests for www.mysecondsite.example are actually the same as that for www.example.com and has to fulfil or redirect those requests appropriately. Depending on your webserver, search the manual for the topic on redirecting/forwarding requests.

After web hoster change should I change dns A record on old dns server or pont new host to old dns [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I changed hosting company which hosted my page to a other one but domain is still hosted by the old company. I can do two things:
- I can change "A" record in the old company control panel to point to new IP.
- I can input old company dns servers to control panel of new one
maybe I should figure out new company dns servers and input them in old company as external dns?
What should I do?
Both options are acceptable. The second option is more easy for you, because you should also enter CNAME and MX records if you choose the first one.

Resources