How to add a domain name to VPS

Discussion in 'Site & Server Administration' started by tbtb, Jun 6, 2012.

  1. #1
    We run a web service on a VPS and in order to access it you have to enter the complete IP:pORT address.
    We want to add a domain name instead, how can we do that ?
    We not using any cpanel on the VPS.

    Thanks in advanced,
    Tom
     
    tbtb, Jun 6, 2012 IP
  2. ironcladservers

    ironcladservers Well-Known Member

    Messages:
    389
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    115
    #2
    You can assign a domain to it yes, however if you're using a non standard port (anything other than 80) you'll still need to enter yourdomain.com:pORT

    You'll either need to install a DNS server on the VPS or use a 3rd party DNS provider (sometimes your domain registrar will offer this for free), then assign the IP's accordingly at your domain registrar towards your DNS server or the 3rd party's DNS server. Then you just create an A record on the DNS server to point towards the IP of your VPS's web server.
     
    ironcladservers, Jun 6, 2012 IP
  3. tbtb

    tbtb Well-Known Member

    Messages:
    3,699
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    165
    #3
    We use an Ubuntu server.
    Which DNS application do you suggest us to install? (anything that can be easily installed using apt-get?)
     
    tbtb, Jun 7, 2012 IP
  4. cielkong

    cielkong Member

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    33
    #4
    fist you need to install OS in vps and config a web server such as apach or others. Than you add your domains.
     
    cielkong, Jun 8, 2012 IP
  5. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #5
    You can setup BIND on your ubuntu server or if you are unfamiliar on how to do this it may be better to use some 3rd party DNS servers to host your domain's DNS zone files.

    Anyhow, there is a great guide on how to setup a DNS server on your ubuntu which can be found at https://help.ubuntu.com/community/BIND9ServerHowto

    Hope that helps.
     
    RoseHosting, Jun 8, 2012 IP
  6. dom19

    dom19 Active Member

    Messages:
    344
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    It will be much earlier if you install 3rd party ( like kloxo )

    it will easy to manage your domain and dns as well
     
    dom19, Jun 8, 2012 IP