Clan x86

Technical (Development, Security, etc.) => Unix / Linux Discussion => Topic started by: deadly7 on June 19, 2006, 06:46:57 PM

Title: Pointing IP -> Domain
Post by: deadly7 on June 19, 2006, 06:46:57 PM
So let's say that I have a subdomain (let's call it a.b.com).  Let's say my IP is 127.0.0.1.
How would I go about pointing it so that when someone visits a.b.com it's the same thing as visiting my ip directly.
This is for the ET server I've decided to host on my rig.
Title: Re: Pointing IP -> Domain
Post by: MyndFyre on June 19, 2006, 07:01:56 PM
Edit /etc/hosts to include the line:


127.0.0.1     localhost    a.b.com
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 19, 2006, 07:07:56 PM
Ah, k.  Thanks.
Title: Re: Pointing IP -> Domain
Post by: MyndFyre on June 19, 2006, 07:11:13 PM
Note for Windows systems this is in %SYSTEMROOT%\System32\drivers\etc\hosts

;-)
Title: Re: Pointing IP -> Domain
Post by: iago on June 19, 2006, 08:18:09 PM
Or you can add a DNS record. Then it'll work for anybody
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 19, 2006, 10:14:48 PM
iago, how would I go about doing that?
Also, let's say it's using certain ports.
Would I just make it:
127.0.0.1:A localhost a.b.com
And do that for as many ports as there are?
That's a bit excessive.
Title: Re: Pointing IP -> Domain
Post by: Sidoh on June 19, 2006, 10:48:50 PM
Quote from: deadly7 on June 19, 2006, 10:14:48 PM
iago, how would I go about doing that?

www.godaddy.com
Title: Re: Pointing IP -> Domain
Post by: MyndFyre on June 19, 2006, 10:57:33 PM
Quote from: deadly7 on June 19, 2006, 10:14:48 PM
iago, how would I go about doing that?
Also, let's say it's using certain ports.
Would I just make it:
127.0.0.1:A localhost a.b.com
And do that for as many ports as there are?
That's a bit excessive.

AFAIK you can't do it for only certain ports.
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 20, 2006, 12:43:30 AM
So wait, ET requires ports 27950,27951,27960 UDP IN/OUT.  How would I do that?  Obviously I'm new to this. :p  Stupid james never helped me when I asked.
Title: Re: Pointing IP -> Domain
Post by: MyndFyre on June 20, 2006, 01:56:07 AM
OHHHHH, NOW I understand.

I thought you wanted to redirect traffic from your computer outbound to a.b.com to 127.0.0.1.  I didn't know you wanted external incoming connections to also go there.

This is an external router issue.  Yeah, you'd need to register the subdomain to point to your public IP address with the DNS server that handles incoming requests on b.com (in your example).  Then, I'm assuming you're using a router, you need to configure external requests on those ports with UDP to be forwarded to your local machine.
Title: Re: Pointing IP -> Domain
Post by: Chavo on June 20, 2006, 11:08:49 AM
yea, you can't do what you are wanting to do without registering the b.com domain.

Alternatively, if you want a subdomain on one of mine, I can set that up pretty easily.  I assume that James and iago can do so as well if you prefer their domains.

Name resolution has nothing to do with ports, it is simply a way of associationg a human-readable name with a computer-readable number (IP adress).  The port forwarding stuff I assume you already know how to do (if you don't, why the hell did you right a guide for it on da ;)).
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 20, 2006, 12:58:04 PM
Quote from: MyndFyrex86] link=topic=6328.msg75779#msg75779 date=1150782967]
This is an external router issue.  Yeah, you'd need to register the subdomain to point to your public IP address with the DNS server that handles incoming requests on b.com (in your example).  Then, I'm assuming you're using a router, you need to configure external requests on those ports with UDP to be forwarded to your local machine.
Mmkay.  That's what I was kind of thinking, but I wasn't sure (not even a smidgeon of a percent).

Quote from: unTactical on June 20, 2006, 11:08:49 AM
yea, you can't do what you are wanting to do without registering the b.com domain.
I was using that as an example. :P  I'd end up using my website.
Quote
Alternatively, if you want a subdomain on one of mine, I can set that up pretty easily.  I assume that James and iago can do so as well if you prefer their domains.
I'll probably use one from my website though.  Thanks anyways.
Quote
Name resolution has nothing to do with ports, it is simply a way of associationg a human-readable name with a computer-readable number (IP adress).  The port forwarding stuff I assume you already know how to do (if you don't, why the hell did you right a guide for it on da ;)).
I plagiarize.  What is this port forwarding thing you talk about?
Title: Re: Pointing IP -> Domain
Post by: Chavo on June 20, 2006, 01:11:43 PM
I was referring to b.com as your example clown.

I did not realize you had a domain, zoneedit.com is very helpful if you don't have a couple spare computers in different locations to act as DNS servers ;)
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 20, 2006, 01:17:20 PM
:( iago I want a subdomain plz & thx.
wolverine.x86labs.org
pointing to my IP (you're admin, you can see teh ips)
I'll have a server set up sooner or later.
uT: if I didn't have a domain, how would i Have a website? God you're so silly. :P
Anyways, I have to find the server files I need for my ET server.  Which will be a pain in the butt because people suck and the official website is down constantly.
Title: Re: Pointing IP -> Domain
Post by: MyndFyre on June 20, 2006, 03:30:51 PM
Time to rootkit haxxor @ wolverine.x86labs.org!!!
Title: Re: Pointing IP -> Domain
Post by: Chavo on June 20, 2006, 03:35:18 PM
I thought x86labs.org was Newby's domain?
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 20, 2006, 04:19:06 PM
Nah.  Mythix purchases the domain and iago just uses it.
Title: Re: Pointing IP -> Domain
Post by: Joe on June 20, 2006, 06:03:12 PM
Quote from: deadly7 on June 20, 2006, 04:19:06 PM
Nah.  Mythix purchases the domain and iago just uses it.

Lobo*
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 20, 2006, 06:28:05 PM
No, it's Mythix.  Lobo may have made the initial purchase, but Mythix pays for it now.
Title: Re: Pointing IP -> Domain
Post by: Joe on June 21, 2006, 06:04:51 AM
Oh.
Title: Re: Pointing IP -> Domain
Post by: Lobo on June 22, 2006, 01:41:24 PM
Quote from: deadly7 on June 20, 2006, 06:28:05 PM
No, it's Mythix.  Lobo may have made the initial purchase, but Mythix pays for it now.

He does? wow my money must have went to someone else...
Title: Re: Pointing IP -> Domain
Post by: deadly7 on June 22, 2006, 02:03:50 PM
I thought Mythix paid for the domain.  Maybe I'm thinking of another one.  Shh. :P
Title: Re: Pointing IP -> Domain
Post by: Newby on July 15, 2006, 03:57:49 PM
Quote from: Lobo on June 22, 2006, 01:41:24 PM
Quote from: deadly7 on June 20, 2006, 06:28:05 PM
No, it's Mythix.  Lobo may have made the initial purchase, but Mythix pays for it now.

He does? wow my money must have went to someone else...

It's ok. I still know who pays for our domain. They may not, but I do, and that's what counts. :-*
Title: Re: Pointing IP -> Domain
Post by: Quik on July 15, 2006, 04:05:17 PM
You're mixing up two domains, x86labs.org and javaop.com