Announcement

Collapse
No announcement yet.

DNS Entry with port no

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DNS Entry with port no

    Guys,
    I may sound dumb but I'll ask this straight.

    Is there anyway that I can create a DNS entry with port no as well?

    I mean my intranet web-based email interface runs at port 3000.
    I have to supply the servers name and the port no in browsers to view it.
    eg http://192.168.0.1:3000

    I want to create a DNS entry for it so that http://mail resolves to http://192.168.0.1:3000

    Its just that users find it tedious to remember/use the port no in the browser.

    Obviously,
    I can't change the port no for the email service to 80 or 21.

    Plzzz enlighten me. I would be be happy to know how you folks would approach this sort of problem.

    detonator.

  • #2
    You cannot specify a port with an A record. I this case I would write a redirect on IIS.

    Comment


    • #3
      You can use IIS' RemapUrl or ISAPI_rewrite to redirect based on the address entered. It is similar to mod_rewrite in *nix. The expression you need should look something like this.

      RewriteCond Host: (?:mail)
      RewriteRule (.*) http\://mail:3000 [I,RP]

      This will coexist on a machine with a website on port 80 because this information (URI) is filtered before http.sys processes the request.

      RemapUrl is included in the IIS admin kit. (I prefer ISAPI_rewrite)

      ISAPI_rewrite is available in a lite version for free, which should suit your needs here: http://www.isapirewrite.com/download/isapi_rwl_0049.msi
      Andrew

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment


      • #4
        Thanks a lot for the respone.
        The email service does not require IIS. It has its own web server that runs at port 3000.
        Will this approach still work?

        I'll try and let u know the progress soon.

        Thanks a lot to both of u again.

        Comment


        • #5
          If it s MDaemon you are using (which uses port 3000 for its 'WorldClient' webmail) then i dont think so.
          Server 2000 MCP
          Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

          ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

          Comment


          • #6
            yes its M-Daemon!

            Comment


            • #7
              Why cant you change the port to which MDaemon listens on to 80? Do you have another web service running on that PC?

              If so why not give your network card another IP address, get MDaemon to listen on port 80 for that IP address and your other web service on the original IP address. Thats how i would do it.

              Then web service would be 192.168.0.1:80
              And Mdaemon worrld client would be 192.168.0.2:80
              Server 2000 MCP
              Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

              ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

              Comment


              • #8
                Why cant you change the port to which MDaemon listens on to 80? Do you have another web service running on that PC?
                Yes there is another web service running at port 80.

                If so why not give your network card another IP address, get MDaemon to listen on port 80 for that IP address and your other web service on the original IP address. Thats how i would do it.
                I don't know if MDaemon can be configured that way. I'll try it.
                Otherwise I'll give the new IP to the intranet web service. Since it runs on IIS I think that can be done.
                This might solve my problem.

                I never thought that way.
                Thanks a lot.
                I'll let u know what happens.

                Comment


                • #9
                  Excellent stuff!
                  Server 2000 MCP
                  Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

                  ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

                  Comment


                  • #10
                    Is MDaemon some alternative to Exchange or something?
                    Andrew

                    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

                    Comment


                    • #11
                      Hardly. It's an IMAP, POP3 and SMTP mail server sfotwrae with built in webclient. It is very low cost (i have version 3 from a magazine CD!! Fully functional!). It looks the collaboration, public folders, conferencing etc... of Exchange. It is a while since i looked at it so it may have some on a bit since then. www.mdaemon.com if my memory serves me correct.
                      Server 2000 MCP
                      Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

                      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

                      Comment


                      • #12
                        tony,
                        just wanted to let u know it worked.
                        Even WorldClient can be configured to use different IP/IPs.

                        ahinson,
                        Its a complete email server solution. Personally I find MDaemon very good for Windows environment. Lots of useful features.

                        Comment


                        • #13
                          Excellent stuff! I have used MDaemon a long time ago and it certainly has its applications and uses for some scenarios (like those who dont want a full blown message/communication environment and the empty wallet afterwards!!).
                          Server 2000 MCP
                          Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

                          ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

                          Comment

                          Working...
                          X