RSS Forums RSS
Please support our IT Professionals' Lounge advertiser: Programming Forums
Views: 1283 | Replies: 1
Reply
Join Date: Nov 2004
Posts: 231
Reputation: sam1 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

problems with dns

  #1  
Jul 29th, 2006
hi,

i set up apache and everything went well. i can access my hompage from any computer by entering the ip address of apache's pc.

I wanted to give my website a name(e.g www.name.com), i altered the hosts file in /etc. now i can access the www.name,com from apache's pc, but can not do it from any other pcs, unless i put the ip then i can access it.

i also tried virtualhost in httpd.conf but no luck................is there any other way or am i doing it all wrong?

thank you
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: problems with dns

  #2  
Jul 29th, 2006
You need DNS/WINS or some way for the PC's on the LAN to translate www.name.com into a local IP address.

The simplest way is on each PC to add
www.name.com<tab>192.168.1.1

to the HOSTS file, I know this is in windows\system32\drivers\etc on Windows I'm not sure for Linux it could be /etc
Last edited by hollystyles : Jul 29th, 2006 at 12:45 pm.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 1:43 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC