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 6 years ago.
Improve this question
Given:
a domain w/ gofather: gloriousdomain.com
w/ nameservers pointing to server w/ hostcrocodile
a subdomain: sub.gloriousdomain.com
a server w/ digitalpond and ip: 123.456.78.9
an A-Recordin hostcrocodile pointing sub.gloriousdomain.com -> 123.456.789
How do I make it so that when I enter sub.gloriousdomain.com in my browser it doesn't just reroute me and change my url to 123.456.78.9
cases where it's worked before
wordpress :
when you first set it up, it does the whole route to ip thing
then you finish the setup w/ it asking the subdomain and magically it's fixed
redmine
routes to ip until you type in the subdomain
Interesting facts
When I ping 123.456.78.9 it pings back 123.456.78.9
I thought passenger on top of nginx was doing some work helping the resoloution for redmine and that's why it worked, but to test it I stopped the service and pinged my redmine box
It turns out it was my ISP.
I reset my router thinking perhaps it was caching the page, turns out it was the ISP, they were serving me a cached version.
Related
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.
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.
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 👍
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 6 years ago.
Improve this question
I have brought one new VPS(unmanaged VPS) from a2hosting.com.
They provide me IP(199.195.116.118) and Nameservers (dns1.name-services.com and dns2.name-services.com).
My domain is omniitworld.com.
I have changed my domain's dns to dns1.name-services.com and dns2.name-services.com.
When I check DNS of omniitworld.com on mxtoolbox.com, it shows dns1.name-services.com and dns2.name-services.com.
It means my site's DNS is pointed to VPS DNS successfully.
But omniitworld.com does not show page I have created on VPS.
Do I have to do any else on VPS or what I have to do now.
Please help in detail.
DNS lookup of your domain shows that, A record of your domain is pointing to IP address "69.64.147.243", it should be pointing to your VPS IP address, i.e. "199.195.116.118".
https://www.accuwebhosting.com/resources/show-dns-records?q=omniitworld.com
It seems that you are using default nameservers of your registrar, "Enom Incorporated".
To point your domain to VPS, you'll have to change A record to "199.195.116.118".
Following tutorial will help you to achieve this.
http://www.enom.com/kb/kb/kb_0002_change-host-records.htm
Alternatively, you can contact Enom support for the same.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
My domain's A records are:
Host: Points to:
# 66.6.44.4
experiments 188.121.46.1
The # points to my Tumblr blog, and the experiments subdomain points to my hosting.
The problem I'm having is, experiments.example.com is somehow redirecting (curl shows that it's a 301) to example.com/experiments/. I've checked http://whatsmydns.net and it too confirms that those hosts point to those IPs.
How is this happening? I've emptied my DNS cache a few times so I don't think it's that. Where is that redirect coming from?
Thanks.
Actually this is not a DNS problem, but a webserver issue.
Your webserver running at http://experiments.example.com redirects to http://example.com/experiments/. So check your Webserver configuration to find any redirect directives.
DNS only resolves names to IP addresses. It does not redirect HTTP requests.
HTTP is a protocol. With http://experiments.example.com you connect to a server experiments.example.com (IP 192.0.2.46) on port 80 where your webserver listens, accepts the request and redirects it to http://example.com/experiments/ and your broswer follows this redirect querying host example.com (IP 203.0.113.42) on port 80 to GET /experiments/ there.