How can I add sub1.sub2.example.com to my GoDaddy hosting account?

803

Solution 1

You can create a CNAME with dot notation in it. So you can create a CNAME which is es.n and point it to the a record and it will take care of what you want. This is done via GoDaddy DNS hosting (free usually with all domains)

Solution 2

"How to set up a sub subdomain"

Edited from Tech Titbits,
Jul 8th, 2008 by Ellimist.

I’ve been getting quite a few hits from Google to the DNS Guide post from people searching for how to set up a sub subdomain.

It’s quite simple actually. Say you want to set up a sub sub domain sub2.sub1.example.com. All you need to do is create an A record for sub2.sub1.example.com and point it to the required IP(the IP of the server hosting the sub sub domain). If you want www.sub2.sub1.example.com to work(not required in most cases), you should create another A record for www.sub2.sub1.example.com and point it to the same IP. This can also be done using a CNAME record.

So, if the server that is going to host your sub sub domain has IP 192.0.2.4, your DNS records should be like this :

sub2.sub1.example.com.       A     192.0.2.4
www.sub2.sub1.example.com.   A     192.0.2.4

If you want to use CNAME records :

sub2.sub1.example.com.       A       192.0.2.4
www.sub2.sub1.example.com.   CNAME   sub2.sub1.example.com.

There may be a lot of reasons why someone would want to use a sub sub domain; the most important of them being forming meaningful(or desired) words/phrases out of a domain name. One of the most popular example of a site on a sub sub domain is www.Del.icio.us. It clearly illustrates the usefulness of a sub sub domain.

Share:
803

Related videos on Youtube

Curnelious
Author by

Curnelious

Updated on September 18, 2022

Comments

  • Curnelious
    Curnelious over 1 year

    i have a world in cocos2d with box2d, that has a gravity. now in order to add a body for each sprite, i am calling a function and send her the sprite.

    sprite1, has to move according to gravity, but sprite2 has to be static,without gravity, just until sprite1 hit it,then the world forces should affect him.

    how do i set only sprite1/body gravity to be zero 'til the other sprite hit him ?

    my problem is that all sprites using the same function for the body:

    - (void)addBoxBodyForSprite:(CCSprite *)sprite {
    
        b2BodyDef spriteBodyDef;
        spriteBodyDef.type = b2_dynamicBody;
        spriteBodyDef.position.Set(sprite.position.x/PTM_RATIO,sprite.position.y/PTM_RATIO);
        spriteBodyDef.userData = sprite;
        spriteBody = world->CreateBody(&spriteBodyDef);
    
        b2PolygonShape spriteShape;
        spriteShape.SetAsBox(sprite.contentSize.width/PTM_RATIO/2,sprite.contentSize.height/PTM_RATIO/2);
        b2FixtureDef spriteShapeDef;
        spriteShapeDef.shape = &spriteShape;
        spriteShapeDef.density = 10.0;
        spriteShapeDef.isSensor = true;
        spriteBody->CreateFixture(&spriteShapeDef);
    
    }
    

    i want to apply gravity at the start only on sprite1, BUT i do want to create a body for sprite2 also, because later it will be affected by the world.

    so, after create 2 bodies at start, how do i stop only sprite2 from falling ?
    thanks a lot.

    • closetnoc
      closetnoc almost 10 years
      Can you add screen shots of what you are seeing?
    • dan
      dan almost 10 years
      @Detallado If you're using their old control panel, you likely won't be able to add multi-level subdomains like this (i.e., via "Hosted Domains"). You might try to upgrade your hosting account to cPanel, which is what they're using now, and will give you added options. You can always contact their hosting support department too to see if they can help.
  • Curnelious
    Curnelious almost 13 years
    works great, BUT when it sleeps, does a contact listener can detect it when the other sprite hit it ???
  • Aaron Goselin
    Aaron Goselin almost 13 years
    A sleeping body is not affected by physical world settings, BUT when it detects contact it wakes up. I am not completely sure but I would expect that going through your contacts once would wake the body up and on the next check they would both register contact.
  • Aaron Goselin
    Aaron Goselin almost 13 years
    If you set a body inactive then it does not get woken up by contact.
  • Sandeep Bhaskar
    Sandeep Bhaskar almost 6 years
    It is wrong to use domain.com and 1.2.3.4 as examples and it is a pity that you reverted my edit about it. Please read RFC 2606 and 5737!
  • Joe DF
    Joe DF almost 6 years
    @PatrickMevzek No worries, brought it back and mentioned it has been edited from the original.
  • Admin
    Admin almost 2 years
    This works so perfectly, thank you Frank. Tested with Godaddy and Zone Edit.