Results 1 to 5 of 5

Thread: DNS Zone File Configuring

  1. #1
    Join Date
    Jul 2008
    Beans
    2

    DNS Zone File Configuring

    Hello,

    So I'm setting up a DNS server on my Ubuntu server and it's up and running swell.
    The only thing I'm curious about is how to put ports into the IP in zone files.

    In my "/etc/bind/zones/globaloffice.com.db" file, I have:

    globaloffice.com. IN NS ns.globaloffice.com.
    www IN A ip.ip.ip.ip
    me IN A ip.ip.ip.ip2

    and I want to add:
    wiki IN A ip.ip.ip.ip:2500

    how would I implement this?

    Thanks for your help!

  2. #2
    Join Date
    Sep 2006
    Location
    Dublin IE
    Beans
    3,275
    Distro
    Ubuntu

    Re: DNS Zone File Configuring

    Hi there,

    how would I implement this?
    You can't.

    DNS is for host name resolution ... you can't use it to name ports. The concept of a port is protocol-specific anyway, so being able to do so would be pointless.

    What are you trying to achieve? Perhaps there's another way of doing it.

  3. #3
    Join Date
    Jul 2008
    Beans
    2

    Re: DNS Zone File Configuring

    Well, I have a program that when run, goes to port 2500. So if my dns host is www.me.com, I would need to go to www.me.com:2500, and would like to change it so I could just go to wiki.me.com

    If there's really not a solution, typing in the generic :2500 is fine. Just trying to make everything more user-friendly.

  4. #4
    Join Date
    Apr 2006
    Beans
    44

    Re: DNS Zone File Configuring

    If you have a firewall in front of your web servers you should be able to create a redirect rule that will redirect the port 80 traffic to this site to port 2500. But this also depends on your network topology.

  5. #5
    Join Date
    Sep 2006
    Location
    Dublin IE
    Beans
    3,275
    Distro
    Ubuntu

    Re: DNS Zone File Configuring

    Yep... That, and moving your server to port 80, are your only options.

    If all you're after is convenience, you could create a placeholder page at http://www.me.com:80/ that redirects to http://www.me.com:2500/ ... or some variation on that theme.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •