Mapping multiple IP Addresses to one DNS record
We are wanting to run 2 separate servers, one legacy server and one new server.
All new users will be put onto the new server and current users will be left on the legacy server for now. We want to keep the domain name they are hitting the same for both situations. When we are ready we will turn the legacy server off and roll all users onto the one box.
The users come in on different website addresses like (for example only):
myWebsite.com.au/User1
myWebsite.com.au/User2
Is there a way we can setup rules on our dns record that says that requests for a certain address go to a certain ip address? It's similar to a load balancing setup but I can only currently find ways to randomly switch between servers not create rules for the switch.
Any advice?
dns ip ip-address load-balancer load
add a comment |
We are wanting to run 2 separate servers, one legacy server and one new server.
All new users will be put onto the new server and current users will be left on the legacy server for now. We want to keep the domain name they are hitting the same for both situations. When we are ready we will turn the legacy server off and roll all users onto the one box.
The users come in on different website addresses like (for example only):
myWebsite.com.au/User1
myWebsite.com.au/User2
Is there a way we can setup rules on our dns record that says that requests for a certain address go to a certain ip address? It's similar to a load balancing setup but I can only currently find ways to randomly switch between servers not create rules for the switch.
Any advice?
dns ip ip-address load-balancer load
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
1
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48
add a comment |
We are wanting to run 2 separate servers, one legacy server and one new server.
All new users will be put onto the new server and current users will be left on the legacy server for now. We want to keep the domain name they are hitting the same for both situations. When we are ready we will turn the legacy server off and roll all users onto the one box.
The users come in on different website addresses like (for example only):
myWebsite.com.au/User1
myWebsite.com.au/User2
Is there a way we can setup rules on our dns record that says that requests for a certain address go to a certain ip address? It's similar to a load balancing setup but I can only currently find ways to randomly switch between servers not create rules for the switch.
Any advice?
dns ip ip-address load-balancer load
We are wanting to run 2 separate servers, one legacy server and one new server.
All new users will be put onto the new server and current users will be left on the legacy server for now. We want to keep the domain name they are hitting the same for both situations. When we are ready we will turn the legacy server off and roll all users onto the one box.
The users come in on different website addresses like (for example only):
myWebsite.com.au/User1
myWebsite.com.au/User2
Is there a way we can setup rules on our dns record that says that requests for a certain address go to a certain ip address? It's similar to a load balancing setup but I can only currently find ways to randomly switch between servers not create rules for the switch.
Any advice?
dns ip ip-address load-balancer load
dns ip ip-address load-balancer load
asked Aug 16 '15 at 23:40
MattMatt
14115
14115
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
1
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48
add a comment |
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
1
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
1
1
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48
add a comment |
1 Answer
1
active
oldest
votes
You can set up a reverse proxy server who will redirect the urls with the username to the correct server. More info about setting up a reverse proxy server with IIS URL Rewrite can be found here: http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f958263%2fmapping-multiple-ip-addresses-to-one-dns-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can set up a reverse proxy server who will redirect the urls with the username to the correct server. More info about setting up a reverse proxy server with IIS URL Rewrite can be found here: http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
add a comment |
You can set up a reverse proxy server who will redirect the urls with the username to the correct server. More info about setting up a reverse proxy server with IIS URL Rewrite can be found here: http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
add a comment |
You can set up a reverse proxy server who will redirect the urls with the username to the correct server. More info about setting up a reverse proxy server with IIS URL Rewrite can be found here: http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis
You can set up a reverse proxy server who will redirect the urls with the username to the correct server. More info about setting up a reverse proxy server with IIS URL Rewrite can be found here: http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis
answered Aug 17 '15 at 13:38
Fabrice AnecaFabrice Aneca
11
11
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
add a comment |
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
This is a pretty poor answer - instead of linking to a solution, provide a solution here, even if you're summarizing another source. You can still give credit, but if the other site goes down, the answer doesn't become stale.
– Raystafarian
Aug 17 '15 at 16:54
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f958263%2fmapping-multiple-ip-addresses-to-one-dns-record%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can't do that with DNS.
– Tyson
Aug 17 '15 at 0:48
Hi Tyson, Thanks for the reply. Is there anything we can add in that could do it?
– Matt
Aug 17 '15 at 0:49
You could use a sub domain like new.example.com, but then you will need to figure a way to get the new users redirected.
– Tyson
Aug 17 '15 at 1:02
Yeah i was wanting to accomplish this so no redirection was required
– Matt
Aug 17 '15 at 1:07
1
This Question has an "XY Problem". You really need a solution to dispatching requests to different servers based on the (non-host, path part of the) URL. You thought of doing this via DNS and accidentally asked for a solution to that dead-end instead of asking what you really needed. An HTTP load balancer such as HAProxy can do what you need.
– Spiff
Aug 17 '15 at 2:48