Fedora Linux Support Community & Resources Center
  #16  
Old 8th September 2011, 10:50 PM
allanhitch Offline
Registered User
 
Join Date: Jan 2011
Location: New Hampshire
Age: 57
Posts: 39
linuxfedorafirefox
Re: problem accessing local server by url

Quote:
Originally Posted by jpollard View Post
The problem is not DNS.

the problem is your /etc/hosts file.
There's nothing wrong with his "/etc/hosts" file. He's been trying to access the linux box from an XP workstation on the network. The issue is with his "c:\windows\system32\drivers\etc\hosts" file on the XP box(es).

The problem was that he was editing the hosts file on the linux box. That has no impact whatsoever on the other machines in the network.

Had me a tad confused for a while too....

-Al
Reply With Quote
  #17  
Old 8th September 2011, 11:40 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: problem accessing local server by url

My understanding is the very first part of this process was to change the value for the hostname of the server by changing the value of the hostname variable in /etc/sysconfig/network


Doing that set the value of the first line in /etc/hosts.

pinging fred.mycoachdomain.com returned 72.215.225.9 Not in my network.



How do I get /etc/hosts to read the third line?


Thanks
Reply With Quote
  #18  
Old 9th September 2011, 12:06 AM
allanhitch Offline
Registered User
 
Join Date: Jan 2011
Location: New Hampshire
Age: 57
Posts: 39
linuxfedorafirefox
Re: problem accessing local server by url

Quote:
Originally Posted by settingsun View Post
My understanding is the very first part of this process was to change the value for the hostname of the server by changing the value of the hostname variable in /etc/sysconfig/network


Doing that set the value of the first line in /etc/hosts.

pinging fred.mycoachdomain.com returned 72.215.225.9 Not in my network.



How do I get /etc/hosts to read the third line?


Thanks
What machine are you on when you ping?
Reply With Quote
  #19  
Old 9th September 2011, 01:02 AM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: problem accessing local server by url

I'm on windows xp when I ping.
Reply With Quote
  #20  
Old 9th September 2011, 01:36 AM
allanhitch Offline
Registered User
 
Join Date: Jan 2011
Location: New Hampshire
Age: 57
Posts: 39
linuxfedorafirefox
Re: problem accessing local server by url

Quote:
Originally Posted by settingsun View Post
I'm on windows xp when I ping.
Then THAT is the machine you need to be editing the hosts file on.

"/etc/hosts" is under Linux.

Stop messing with the server for now and concentrate on fixing that hosts file on the XP workstation you're trying to ping from. Until you get that to work, you don't even need a hosts file on the Linux box. In fact, all you're doing by playing with that file is chasing your tail. The hosts file on the Linux box has absolutely nothing to do with name resolution on the XP box. Just leave the server alone for now.

The full path to the file on XP is "c:\windows\system32\drivers\etc\hosts".

Log on to the XP machine as a user with administrator rights.
Go to the command-prompt on your XP machine.

type:
cd \windows\system32\drivers\etc

then remove any cumbersome attributes that may be present on the hosts file-
type:
attrib -r -h -s hosts

then type:
echo 192.168.0.2. fred.mycoachdomain.com >> hosts

then type:
ping fred.mycoachdomain.com

You should then get a reply from fred.mycoachdomain.com 192.168.0.2
Reply With Quote
  #21  
Old 9th September 2011, 02:49 AM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: problem accessing local server by url

Funny the way things work sometimes. I asked about the third line in the /etc/hosts file because I thought the other person who chimed in on the conversation was steering me in another direction.


I read that post again and realized the solution still is the windows xp hosts file. Then your response confirmed it. Yes, doing anything else is chasing my tail.


Still, your last post helped a lot, because it gave more details. I got a good laugh out of my mistake. Sometimes the trick to staying in a tedious process is having a good laugh. I'll continue after a good nights sleep.

Thanks so much for your time, effort and interest in helping me. I really appreciate it. Have a great night.
Reply With Quote
Reply

Tags
accessing, local, problem, server, url

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with accessing http server alansilicon Servers & Networking 5 23rd February 2009 12:16 PM
Problem samba server accessing xp Alerander Servers & Networking 0 20th August 2005 03:14 PM
Accessing a local service from the net - proxy - firewall syn Servers & Networking 19 26th April 2005 03:51 PM
Accessing a local area network kumarannair Servers & Networking 7 4th December 2004 01:25 AM


Current GMT-time: 22:19 (Wednesday, 16-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat