Results 1 to 10 of 10

Thread: How to add a dot between a website

  1. #1
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    How to add a dot between a website

    I Have my website running, and have a domain, just wondering how to do this http://mywebsite.com to this-->> http://plus.mywebsite.com
    Fertech

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to add a dot between a website

    You need to add a CNAME record for plus.mywebsite.com with the value (without quotes) mywebsite.com

    Then, you setup the Apache Virtual Hosts for the extra subdomain
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to add a dot between a website

    Quote Originally Posted by sandyd View Post
    You need to add a CNAME record for plus.mywebsite.com with the value (without quotes) mywebsite.com

    Then, you setup the Apache Virtual Hosts for the extra subdomain
    Hmmm... I've been using A records for my subdomains, am I doing it wrong?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: How to add a dot between a website

    Quote Originally Posted by CharlesA View Post
    Hmmm... I've been using A records for my subdomains, am I doing it wrong?
    Same here. Spambots and other visitors seem to find them OK.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  5. #5
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to add a dot between a website

    Any Free Cpanel?
    Fertech

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to add a dot between a website

    Quote Originally Posted by Fertech View Post
    Any Free Cpanel?
    This is one I found via google..
    http://www.000webhost.com/free-cpanel-hosting

    Keep in mind that you get what you pay for.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: How to add a dot between a website

    Quote Originally Posted by CharlesA View Post
    Hmmm... I've been using A records for my subdomains, am I doing it wrong?
    The usual procedure is to have one A record for the base name of the host and CNAMEs for any aliases. In practice the two methods are equivalent.

    I also see the term "subdomain" used here a lot to refer to fully-qualified hostnames. I think of a subdomain as something for which a separate nameserver is maintained like this:

    Code:
    ...
    sub        IN     NS     mysub.example.com.
    
    host       IN     A      10.10.10.10
    mysub      IN     A      10.10.10.11
    Here "sub.example.com" is a subdomain of example.com with a nameserver for the subdomain at 10.10.10.11. Both "host.example.com" and "mysub.example.com" are fully-qualified host names. The subdomain will contain A records for hosts like host.mysub.example.com. A good example of this in practice is where you want to partition a domain between servers, which might be in example.com, and workstations, which might be in the local.example.com subdomain.

    A subdomain may also have associated MX records if you want mail for something.example.com to be handled by a different SMTP exchanger than example.com. For instance, I manage a bunch of listservers for a client on a server i maintain. The domain's records are all hosted at the client's web provider. So there is an MX in the main zone file that points traffic for lists.example.com over to my server while mail for example.com goes somewhere else.

    I'm not trying to be pedantic here, but there is a substantial difference from a DNS perspective if the first part of name.example.com refers to a host or a subdomain.
    Last edited by SeijiSensei; March 26th, 2013 at 09:00 AM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to add a dot between a website

    That makes sense. Thanks.

    Not to detail the thread too much (the OP might find it helpful...maybe...), but I currently have all my stuff hosted on a VPS and the way my domain registrar has the DNS set up was to have everything pointed to the ip address of the server via A records, so it looked like this:

    Code:
    *		ip-address
    mx		ip-address
    mail		ip-address
    serenity	ip-address
    charlesa.net	ip-address
    All those entries belonged to charlesa.net (and apparently I can ping charlesa.net.charlesa.net and it resolves to the correct IP, but I dunno why they set it up this way. )

    There are no CNAME records and only 2 MX records, one referencing * and the other referencing @. No idea what those mean, so I guess I will have to do some research.
    Last edited by CharlesA; March 26th, 2013 at 04:13 PM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #9
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: How to add a dot between a website

    Code:
    @   IN  MX smtp.example.com.
    The "@" stands for the entire domain, so this says to send mail for someone@example.com to smtp.example.com. I'd guess the "*" handles mail for *.example.com, but I can't say for sure. I don't use wildcards in DNS records.

    I usually set up the top of a zone file like this:

    Code:
    @     IN     SOA   example.com support.example.com.   (
                              stuff
                             )
    
    
            IN    NS       ns1.example.com.
            IN    NS       ns2.example.com.
    
            IN    MX        0 smtp.example.com.
            IN    MX       10 smtp2.example.com.
    
    etc.
    Since each line is empty before the "IN" field, it inherits the contents of the field above it, in this case "@". So all those NS and MX records implicitly apply to example.com.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to add a dot between a website

    Thanks for the explanation. I'm not too sure what sort of setup my domain registrar has for handling DNS, but they present you with a web interface to modify CNAMES, A records, TXT records and the like.

    I ended up having to contact their support to get an domainkeys entry setup because the web form wouldn't take the entire string.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

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
  •