Port mapping using only DNS. Is it possible?

Posted on 2007-07-20
Last Modified: 2010-04-07
Is it possible to use only DNS to redirect to a different port with one static IP address
Example: ---> goes to port 80 automatically b/c DNS forwards http to port 80.
               but I also want to go to port 800 for example, only using DNS.

Is this possible???
Question by:Anthony_Ribaudo
    LVL 13

    Accepted Solution

    You can't do this with DNS.

    However, depending on the web server you are using, you can set both host names to point the same IP Address, and then configure the web server to do the redirection based on host header information.

    So when a user connects to, the web server running on port 80 sees that is part of the request and can internally redirect it to the other server running on port 800.

    The short answer to your question is no. It simply can't be done with only DNS.

    Author Comment

    Thank you dhoffman 98!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
    This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 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

    13 Experts available now in Live!

    Get 1:1 Help Now