DNS problem?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
BlackWS6
Forum Newbie
Posts: 3
Joined: Wed Feb 20, 2008 11:30 pm

DNS problem?

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: DNS problem?

Post 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.
BlackWS6
Forum Newbie
Posts: 3
Joined: Wed Feb 20, 2008 11:30 pm

Re: DNS problem?

Post 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.
BlackWS6
Forum Newbie
Posts: 3
Joined: Wed Feb 20, 2008 11:30 pm

Re: DNS problem?

Post by BlackWS6 »

I love when no body has any clue what I'm talking about. LOL.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: DNS problem?

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply