Sub-domain problem
Hello everybody!
I am supposed to develop an application in which one of the module is suppose to have a function which will create a sub-domain.
say,
"abcd89" inhttp://aliascompany.com/abcd89,
Here abcd89 is a randomly generated data, and my client want me to create a sub-domain like in http://abcd89.aliascompany.com.
Can any friend tell me the process to create a sub-domain like the above mentioned link?.
What are the steps should I follow to create a sub-domain?
It will be of great help, Please help me out.
[565 byte] By [
Zorama] at [2007-11-27 10:11:30]

I guess this implies DNS and Webserver (re-)configuration.
Tim - Anything related to Java ?
Thank you friends.
But can that be created dynamically.
Zorama at 2007-7-28 15:13:56 >

What are the steps should I follow?
Zorama at 2007-7-28 15:13:56 >

> What are the steps should I follow?
1. Stop taking jobs that you can't handle.
> What are the steps should I follow?
Ask your network administrator.
Is there any suggestion that i can suggest to the client?
Zorama at 2007-7-28 15:13:56 >

Tell the client the truth? Tell him you need to hire a specialist.
ejpa at 2007-7-28 15:13:56 >

> Is there any suggestion that i can suggest to the
> client?
Hire someone else?
As you have been told already the answer to your question is DNS. You would have to configure the dns to add this subdomain.
You don't seem to understand this answer though so we cannot make any progress with you.
Thanks,
How will I configure the DNS?
Zorama at 2007-7-28 15:13:56 >

> Thanks,
>
> How will I configure the DNS?
Voodoo ******* magic.
Can I advice my client to configure himself in the server?
Zorama at 2007-7-28 15:13:56 >

Look mate it's your client and your business, why don't you try running it yourself? This is a Java programming forum.
ejpa at 2007-7-28 15:13:56 >

> Can I advice my client to configure himself in the
> server?
How the hell would we know?
Look the DNS has to be configured at least. Maybe the webserver too depending.
For both of these though there is no standard API for configuring these services. Because it depends on the server itself. And even then there may or may not be an "API" for doing it.
As far as should the client make the change themself we can't tell you that either because I don't know where the DNS in question is and who controls it.
So let's phrase it this way. Whoever configures the DNS for the domain? That person whoever they are will be the one to advise about configuring.
So, does it mean Java has nothing to do with the DNS, is it a different feature outside java?
Zorama at 2007-7-28 15:14:01 >

> So, does it mean Java has nothing to do with the DNS,
> is it a different feature outside java?
Correct.
> So, does it mean Java has nothing to do with the DNS,
> is it a different feature outside java?
You seem to be doing work that you're incapable of doing. Tell your client this, otherwise you'll both be screwed.
> > So, does it mean Java has nothing to do with the
> DNS,
> > is it a different feature outside java?
>
> You seem to be doing work that you're incapable of
> doing. Tell your client this, otherwise you'll both
> be screwed.
Perhaps that is how he got the job in the first place.
> Thanks,
>
> How will I configure the DNS?
I suggest you find a copy of the book "DNS and Bind". It's not trivial. You need to configure a DNS daemon (which is called "named" on unix). These are configured by a complex set of config files. And that DNS server has to be made the "authoratative" server for the domain.
In principal you could write a DNS server in Java, but it's a task for an expert with months to spare. Probably more feasible to edit named configuration files and trigger the named to reread them.
Ok. Thank you Mr.Malcom.
My concept is quiet cleared now.
That means I can suggest my client about configuring the DNS by himself. Because it will take quiet a time-consuming period if I took it in my hand. Moreover, I really have no knowledge about DNS. So.
Zorama at 2007-7-28 15:14:01 >

My application involves parsing a long URL into a short one.
Say:
http://forum.java.sun.com/post!reply.jspa?messageID=9760679
into
http://tinyURL/goodForum
which if an user enter in the url link http://tinyURL/goodForum, will redirect him to the http://forum.java.sun.com/post!reply.jspa?messageID=9760679.
Its just easy to remember.
But my client want something like this:
http://goodForum.tinyURL.com
It means creating sub-domain during runtime.
Now I am totally new to the idea. Thats why I was asking for some help.
Thank you
Zorama at 2007-7-28 15:14:01 >

I worked with DNS tables a long time ago but as far as I remember:
1) There's nothing java can do about it
2)It's a job for network administrators.
3)DNS, roughly speaking, consists of tables with two columns or maps. In the first column goes the name you want to map (in your case is http://goodForum.tinyURL.com) and in the second column goes the true url ( http://forum.java.sun.com/post!reply.jspa?messageID=9760679), so, you must tell yor network admin that you want to map some urls (eg., tell him that when the user types http://goodForum.tinyURL.com in the browser, he should be redirected to http://forum.java.sun.com/post!reply.jspa?messageID=9760679
Hope it help to clear your mind.
Manuel Leiria
Yes, Thank You Manuelji
I will be explaining to the client today.
Zorama at 2007-7-28 15:14:01 >

and you can't add subdomains to someone else's domain ...
ejpa at 2007-7-28 15:14:01 >

> Ok. Thank you Mr.Malcom.
> My concept is quiet cleared now.
> That means I can suggest my client about configuring
> the DNS by himself. Because it will take quiet a
> time-consuming period if I took it in my hand.
> Moreover, I really have no knowledge about DNS. So.
>>>That means I can suggest my client about configuring
> the DNS by himself.
I wonder why he hired you in the first place..
> 3)DNS, roughly speaking, consists of tables with two
> columns or maps. In the first column goes the name
> you want to map (in your case is
> http://goodForum.tinyURL.com) and in the second
> column goes the true url (
> http://forum.java.sun.com/post!reply.jspa?messageID=9
> 60679), so, you must tell yor network admin that you
> want to map some urls (eg., tell him that when the
> user types http://goodForum.tinyURL.com in the
> browser, he should be redirected to
> http://forum.java.sun.com/post!reply.jspa?messageID=97
> 60679
That is not DNS. That is a redirect of some sort.
> Yes, Thank You Manuelji
>
> I will be explaining to the client today.
I don't know why you are thanking the people giving you only so-so advice rather than the people who gave you better advice.
manuel-liera's advice about DNS not being something you generally control from Java was correct. His explanation of what DNS is is either very muddled or just wrong.
malcomnc's advice was okay as well but BIND is only one type of DNS server (in the same way that Apache is a webserver).
You have yet to provide any actual useful information about what you are trying to do. You should for example tell us whether you are looking to do this once or many times, on different servers or just one. That sort of information would be helpful in finding a solution.
And you should visit this site and start reading materials there to answer your future questions http://member.dnsstuff.com/rc/
And last but not least you should be listening to what ejp tells you because nobody knows more about networking on this forum then he does.
And failing that you can listen to me because at least for DNS I do have a good deal of actual working experience with it so possibly I might have a clue.
