Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Making domain name come up instead of IP

Help I' ve tried and searched everywhere...

         

joigud

4:11 pm on Dec 14, 2002 (gmt 0)

10+ Year Member



Hi, all iīm hosting my own site on my ip address. I bought my domain name at godaddy and they do offer ip cloaking so it allways shows www.mysite.com but that just made my site not work to itīs full potential so i removed it.

What i need to know is how do i make my ip not show up on my server but instead i want my server to show me www.mysite.com - i thought i had the answer be editing httpd.conf on my apache server but that didnīt work...

Does anyone know the answer?

jdMorgan

4:30 pm on Dec 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



joigud,

You can use mod_rewrite to detect users and 'bots entering your site via the IP address, and redirect them using a 301 redirect to your domain name.

Jim

amoore

4:37 pm on Dec 14, 2002 (gmt 0)

10+ Year Member



You can change this in your httpd.conf. You don't need to use mod_rewrite.

One thing i don't understand is are you accessing your site by IP address and you want that to be changed in the browser address bar, or are you using the domain name and it's getting changed in the address bar to an IP address? Those are 2 sloghtly different situations.

joigud

5:57 pm on Dec 14, 2002 (gmt 0)

10+ Year Member



You can change this in your httpd.conf. You don't need to use mod_rewrite.
One thing i don't understand is are you accessing your site by IP address and you want that to be changed in the browser address bar, or are you using the domain name and it's getting changed in the address bar to an IP address? Those are 2 sloghtly different situations.


Jd morgan misunderstood me :/... iīll try to explain better... ;)

If i enter my sites url:www.example.net then i get redirected to my computer here at home, but it shows my ip address... i want it to show www.example.net/blabla...
U guys know how to do that?

[edited by: heini at 6:07 pm (utc) on Dec. 14, 2002]
[edit reason] sorry, no urls please ¦ thanks! [/edit]

Lisa

8:49 pm on Dec 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First. You have to stop using IP forwarding / Cloaking or whatever they call it. Then you need to find a name server that will allow you to add an A record for your domain name. Then you need to make that A record use your IP. Then change your DNS to use that name server.

Just re-routing to your IP will never work, you will need your name to actually resolve on your server if you hope to use the name.

joigud

10:20 pm on Dec 14, 2002 (gmt 0)

10+ Year Member



And where will i find a name server that will allow me to do this?

Lisa

10:27 pm on Dec 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your hosting company has one.
Some registrars allow you to use theirs.
mydomain & zoneedit are the most popular free ones.