Solved

DNS URL Forwarding

Posted on 2014-02-28
12
241 Views
Last Modified: 2014-03-10
Hi is there a way to forward a URL just using DNS?

I have tried creating a cname but this doesnt seem to work as im asuming the server I am trying to forward to doesnt regonise the incomming domain name.

Currently I have a server running IIS that I do it from but im looking to shut this server down so if there is a better way to do this that would be great.

Thanks
0
Comment
Question by:RedDoorSupplies
  • 5
  • 3
  • 3
  • +1
12 Comments
 
LVL 13

Expert Comment

by:Santosh Gupta
ID: 39894439
how you have created the cname record plz share the sample.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39894977
You can't forward a url with DNS, you can add a sub domain and set the ip of the sub domain to another server.

If you are shutting the server down then just set up the new server with the same DNS etc, change your nameservers to point to the new domain.  Then leave the old server up for at least 48 hours, by which time you can be certain that the new domain name resolution has completed.
0
 

Author Comment

by:RedDoorSupplies
ID: 39895071
Ok that is what i thought.

Im merging my websites with Azure's hosted service which is not a problem but I wont have a server as such so was looking to see what the best way or forwarding the URL of the sites that currently go via the server but are not hosted by it.

Thanks
0
 
LVL 58

Expert Comment

by:Gary
ID: 39895088
So you just need to change your nameservers.
0
 

Author Comment

by:RedDoorSupplies
ID: 39895100
No.

I host the domain myself on my own name server and separate IIS server. In some cases a 3rd party company host the website but the www records still points to IIS server that we own.
All that is currently done is the IIS server tells www.test.com to forward to www.abc.com

I would still like everything to function that was but without the need for an IIS server.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39895157
Have a read through
http://blogs.msdn.com/b/windowsazure/archive/2013/11/21/a-records-cname-and-using-dns-with-windows-azure-web-sites-waws.aspx

You can ignore the first few paragraphs, but it goes through setting up the CNAME to point to your site.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 26

Expert Comment

by:skullnobrains
ID: 39896291
make  www.test.com a CNAME to www.abc.com or set www.test.com to point to your cloud machine (which you already did, i guess)

i assume this does not work because you have setup a name based virtual host on the cloud machine for www.abc.com instead of www.test.com. just set www.test.com as a secondary name, alias, or whatever your server calls it for the corresponding web site.

a dirty workaround could be to setup a proxy on the cloud machine

does the above seem to be the problem ? if you can't solve it, please post info regarding which server is used to host stuff on the cloud machine, and possibly it's vhost configuration
0
 

Author Comment

by:RedDoorSupplies
ID: 39896879
Thanks for the replies still been trying but cant seem to get it to work.

Basically say I just purchase a new domain name but don't have any site or holding page yet what I might want to do is redirect it to google for example rather than having page cannot be displayed error.

So www.newdomain.com forwards to www.google.co.uk

If I try it with the cname it does not work as im guessing googles servers don't recognise the www.newdomain.com address so wont display the page.

Currently I would get round this by using IIS. So the www.newdomain.com points to my IIS server which I can do a simple URL forward which works fine.

It seems a bit silly to have a full server running just to forward some domains like above so was hoping there might be a better way of doing it.
If I have to deploy a new IIS server to do it that's not a problem but would prefer not to!

Hope that all makes sense!
0
 
LVL 26

Expert Comment

by:skullnobrains
ID: 39896889
if the remote server makes use of name based virtual hosting, it will not work whatever you do in the DNS.

if you don't know what name based virtual hosts are, either google it up or ask in this thread

also note that information such as "this doesnt seem to work" or "cant seem to get it to work." is useless. you need to post what you did, what you expected to happen, what happened and possible debug steps you took with the results.
0
 

Accepted Solution

by:
RedDoorSupplies earned 0 total points
ID: 39908753
To get this up and running again I have deployed a new IIS server and used the HTTP redirect feature and this works great.

Thanks for all the suggestions.
0
 
LVL 26

Expert Comment

by:skullnobrains
ID: 39908853
i assume this does not work because you have setup a name based virtual host on the cloud machine for www.abc.com instead of www.test.com. just set www.test.com as a secondary name, alias, or whatever your server calls it for the corresponding web site.

did you even try changing the name of the vhost or setting a secondary name ?

If I try it with the cname it does not work as im guessing googles servers don't recognise the www.newdomain.com address so wont display the page.

nothing google-related, but that's about what happens on the cloud server. you just need to tell the cloud server that you host www.newdomain.com which is trivial to do whatever the server

It seems a bit silly to have a full server running just to forward some domains like above so was hoping there might be a better way of doing it.
If I have to deploy a new IIS server to do it that's not a problem but would prefer not to!

true. too bad you were almost there and did not even give it a try. feel free to ask for help if you change your mind
0
 

Author Closing Comment

by:RedDoorSupplies
ID: 39917016
Had to use a new server to get the outcome I wanted
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now