chuckt101
01-05-2002, 11:42 PM
Well, first of all, I use dial up to get on the internet. This of course means dynamic IP. I'm still trying to learn all about the wonderful world of DNS and Virtual Hosting. So my question is this. Is it possible to set up my zone files and conf files to use a dynamic IP? I tried to use 127.0.0.1, but that just redirects all of the other name based domains to the main one (localhost). I dont think i set it up wrong because if I change the 127.0.0.1 to my dynamic IP in the proper places, the name based domains will work. I'm not connected to a network and I don't have a network card or anything so using 198.x.x.x won't be an option right?
Anyways, any info would be appreciated. Thanks.
cheesysticks
01-06-2002, 01:39 AM
try http://www.ZoneEdit.com
priyadi
01-06-2002, 04:45 AM
Well, it is possible, but not without a lot of effort. But why don't you just use 127.0.0.1 for that?
mkaufman
01-06-2002, 11:46 AM
I'm using everydns.net - very nice service
chuckt101
01-06-2002, 02:03 PM
Hmmm... perhaps I didn't make my post clear.. :rolleyes:
I'm doing this for learning purposes. I just want to know how to setup and administer nameservers, domain zone files, virtual hosting config files, etc. Then I'd like to be able to setup different domains on my computer and run "mock" websites to install software and such before I put them on my real website.
:eek:
And to respond to priyadi, I did use 127.0.0.1, but like I said, it just redirected all requests to the main DocumentRoot or whatever instead of acting like a Name based domain. When I substituted 127.0.0.1 to my IP at the moment, it works, so I'm thinking 127.0.0.1 doesnt work or atleast it requires a different setup.
What about /etc/hosts ? If I just edit say 127.0.0.1 aragon.com in there, would that work? Would that be the only way to do it in my case? I want to do it exactly the way it would normally be done on a real server so I can setup my own dedicated server and such in the future.
Anyways, thanks for your time! :cartman:
chuckt101
01-06-2002, 06:06 PM
ok i think I got it now.
but now there is a different "problem"
If I connect to myself via webbrowser with my IP, it tries to use the server name. For example, say I type http://12.12.12.12/~aragon (a user I've set up), it changes the address to http://www.abc.com/~aragon . (i set servername to abc) Is there any way arond this or is it just how it works? Is it that the IP thing will only work if I use IP based hosting instead of NameBased?
thanks..
Wolfy
01-07-2002, 06:43 AM
aragon, I could be way off here - but have you setup multiple domains (on your own machine) and you want them to point to the different websites you have on your machine - using host headers?
If so have you configured your web server as well as DNS? - you didnt say what OS you are using tho.
chuckt101
01-07-2002, 05:02 PM
Redhat Linux 7.1
Apache 1.3
Files edited were (maybe off with the lines because I'm typing this from memory):
httpd.conf: added the NameVirtualHost 127.0.0.1 entry
httpd.conf: added the <VirtualHost 127.0.0.1> entry with the corresponding info for aragon.com and nia.com
named.conf: added information to look in the zone files below
aragon.com (what I called my zone file name... I'll be damned if I remember all of the lines that go in here :))
nia.com (what I called my zone file name for my nameserver)
resolv.conf (I had to add "nameserver 127.0.0.1" in there.)
and Wolfy, I'm not sure what your post meant, but it seems like you are thinking I'm still having trouble getting it to work? It works now, I'm just asking why is it that when I do something like http://x.x.x.x/~aragon (where that is my ip), it changes the address to http://www.servername.com/~aragon instead of leaving the IP there. Will it only leave the IP for an IP-Based host or does it never leave an IP?