Need help with accessing Web site on same network using domain name?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help with accessing Web site on same network using domain name?
I find it hard to explain but I will try. I have a small network using CentOS 5.4 with a static ip and I am running a web server which has an local ip of 10.1.10.100 and has the domain name of www.inwoon.net.
My problem is I have other computers on the same network and can only access the web server using 10.1.10.100 instead of www.inwoon.net.
Help!!! I am finding it to be impossible to test my web site work using external links that call back to my site.
I greatly appreciate any and all help!
Hi,
configure your dns server to reply proper ip addresses for local network. If you haven't any, just insert a line to client /etc/hosts like 10.1.10.100 www.invoon.net www.
Need help with accessing Web site on same network using domain name?
@mpier: Thanks for the good info. It works awesome on the Linux boxes.
Is there a way to make the same thing happen in Windows?
When I type in www.inwoon.net at my Windows box it takes me to ip 10.1.10.1 which is my router login.
i'm wondering why you are setting that private ip to point to www.inwoon.net? does your web server actually host that site? are you trying to do some kind of split view dns? windows does have a host file as well. i think it's in a sub dir of system32 somewhere.
@fancylad: Hey thanks for the response. That's the name of my main web server on my small network and yes my web server actually hosts that site. Check it out.
Do you have another way??
I found the Windows hosts file in c:\windows\system32\drivers\etc\
Thanks a lot that really helped. Now I can test my web stuff.
@tredegar: Thanks for the tip. I am running a couple of Windows XP boxes on my network. We do Multiverse Development here and use a lot of .NET with Iron Python for our 3D client. We also use 3D Max here and have found no replacement for it in Linux except Blender and none of our 3D guys really like Blender.
Plus I am a Dreamweaver freak. It is not perfect but it is better than anything I have been able to find in Linux and to me that sucks. I have looked all over for a couple of years for a web dev IDE close to Dreamweaver. I would love to find something better for editing my webpages. A webpage editor that is truly interactive would be nice.
i've never had to implement this. you would need to have a dns server that you manage that all the hosts on your network would use. this is a lot better than having to manually edit lots of hosts files.
@fancylad: I understand. Right now I only have a bank of 8 servers. But DNS and BIND will come into play when we build the next bank. I sure appreciate your help and will keep the 'split-view dns' concept in mind when we setup our own nameserver. I bought both of the books DNS and BIND at around 700 pages and the companion DNS and BIND Cookbook at around 600 pages. Just looking at the size of the books was enough to make me wait a bit until I have time. It may well be a weekend in the office to make it happen. But not until after I go through the books.
Once again thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.