• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

web server dns redirect

In most cases, we have a dns record for stuff like;

The user simply goes to that dns record to reach the destination. Normal dns stuff. However, the IPs of those destinations sometimes change and dns propagation can take a while in some cases. Yet, we need to give users instant access to the sites which have changed IP. Using ddns services is not an option and is not the question either.

The question then, is there a way of doing some kind of redirect/dns trickery to use a web server to forward requests to the changed IP sites even though they have not propagated, without their using our dns server.

They would connect to our web server using xxx.domain.com and should be redirected to which ever server xxx is now pointing to.

For instance could dnsmasq installed on the same webserver and the two working together somehow redirect the user to the new IP/domain www.newdomain.com?

Something else?
Mark Lewis
Mark Lewis
  • 2
  • 2
1 Solution
Redirection is not possible in this case either from IIS or DNS
Your IP is changing and not hostnames
Only possible way is to grant immediate access is to access web sites directly with IP address
Mark LewisAuthor Commented:
Let me be clear to confirm...

The web site IP never changes, only the remote sites IPs do.
The web site would always have a list of updated IPs on it and I simply want to redirect users to the new IP of the remote site.
what are these remote sites?

with DNS / IIS you cannot point users to new / changed IP address of remote site

Instead provide IP links on your main web site with some meaningful description so that users will directly hit the IP

In case of DNS hostnames, this is not possible
Mark LewisAuthor Commented:
They are IOT devices which cannot have static IPs but need to be reached using name, not IP (does not matter why).
Obviously, we can provide links to the changed IP but the question is, is there some other way of redirecting a name to the changed IP without DNS.

I find it hard to believe there is not a way of doing this.
If you want to use a host name, then you are limited to how DNS works.  The best bet is to set the TTL for the host name down to a small number and let DNS work the way it should.  Most of the time when companies need something like that they will set the TTL to something like 5 or 10 seconds.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now