0

I have sip application on my iPhone. It uses sip.server.com url to send requests and get responces.

How can I redirect all request (not only http) from my domen to sip.server.com and then all responces from sip.server.com redirect to the application on iPhone.

So I want to write my own domen instead of sip.server.com in the iPhone application.

Is it possible with asp.net?

Paul T.
  • 4,938
  • 7
  • 45
  • 93

3 Answers3

1

you need to write a cname record for your domain pointing to sip.server.com and this should do the trick.

Apurv Gupta
  • 870
  • 7
  • 14
0

You can use rewrite

<rewrite>
    <rules>
        <rule name="Redirects to www.my-domain.com" patternSyntax="ECMAScript" stopProcessing="true">
            <match url=".*" />
            <conditions logicalGrouping="MatchAny">
                <add input="{HTTP_HOST}" pattern="^www.mydomain.com$" negate="true" />
            </conditions>
            <action type="Redirect" url="http://www.my-domain.com/{R:0}" />
        </rule>
    </rules>
</rewrite>
0

You can use IIS Rewrite Module to redirect all requests from your domain to required url.

[Example] Creating Rewrite Rules for the URL Rewrite Module

For Non HTTP Requests, you can use DNS Simple to do all required redirection

Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
  • How will you handle non http requests from IIS? – Apurv Gupta Feb 20 '13 at 12:10
  • will it redirect non http requests? and sip requests too? – Paul T. Feb 20 '13 at 12:14
  • @ApurvGupta I agree that there is a need to write a CNAME record to point to required url. To my knowledge all types of redirections can be done using DNSimple https://dnsimple.com/ Do you know any other ways of doing this? – Ahmed Atia Feb 20 '13 at 12:17
  • @Ahmed I guess DNSimple will do the same i.e. writing a cname for you. You can write a cname record wherever your zone file is. – Apurv Gupta Feb 20 '13 at 12:52