Page 1 of 1
DNS problem?
Posted: Wed Feb 20, 2008 11:38 pm
by BlackWS6
Hey all, new here, figured this would be the place to get some great advice! So, here's what I've got. I have a Fedora 8 image that I load off of my external 160GB hard drive using vmware workstation 6. I've got the ftp functioning, apache (as far as I can tell), and php info will come up no problem. Also have mysqld installed, but... I'm trying to use dreamweaver cs3 on my laptop (same one that runs the vmware so I can work on this from home) to connect to the server, and I can't seem to get it to work. XP host, fedora guest. I can ftp to the "server", and not sure why, but I can bring up
http://server1 and
http://localhost on fedora inside of vmware, but am unable to bring it up by ip (in this case 10.0.10.107). I get an error 400 bad request from apache 2.2.0 (although I believe I'm running 2.2.6). So, long story short, this is not going to be an actual server, I just need a testing server and ftp to be able to try and learn php/mysql so I don't need the "server" to perform dns for an entire system. Am I missing something, or do I need to set up bind? Advice? Hope I posted in the correct section! Thanks in advance!
Tony
Re: DNS problem?
Posted: Thu Feb 21, 2008 1:26 am
by Kieran Huggins
you don't need bind for this kind of setup.
If you're using virtual hosts in apache you'll have to modify your Windows "hosts" file to map the domain you're using to the IP of your server. Apache figures out which site you're requesting based on the domain name of the request.
If you're just after a local *AMP server in Windows, check out
Uniform Server, it's a great turn-key server solution and doesn't require an "install" to work; just unzip and run the "start" script. It maps by default to your w: drive for easy file access.
Re: DNS problem?
Posted: Thu Feb 21, 2008 11:50 am
by BlackWS6
I really appreciate the response. I did add ip then "hostname" which is server1.example.com (non-registered of course). I can ping "server1" from linux, but of course, from another machine, can't resolve it. Can ping the ip from the other machine, but get error 400 from the linux machine and the windows host when trying to go to the ip, but can bring up php pages using localhost and server1, but not the ip. Get what I'm saying? Does it have to be a registered dns name or something? All of our servers here at the office run linux, so I'd really like to learn to correctly set it up via linux, and connect using windows.
Re: DNS problem?
Posted: Fri Feb 29, 2008 11:43 am
by BlackWS6
I love when no body has any clue what I'm talking about. LOL.
Re: DNS problem?
Posted: Sat Mar 01, 2008 4:12 am
by VladSun
Kieran Huggins has told you how to do it

In order to have DNS resolving to the Linux guest OS IP, you need to edit the hosts file in the *Windows OS* (on every Windows machine).
PS: And please, do not modify the
localhost records.