You are not logged in.

#1 2009-07-06 05:06:26

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Internal Web Development Routing

I am setting up a internal web development box for my company. Its nothing special, just an arch box with SSH, apache and virtual hosts. I have set all this up before however i need other computers to be able to view these virtual hosts within the LAN. For example:

a websites internal url would be: http://websitename.servername
a development tool: http://servername/phpMyAdmin

Now id rather not go around to every computer in the lan (about 10) and insert the following into their hosts file:

10.0.0.100 servername

do i have other options, DNS server maybe ?

Offline

#2 2009-07-06 05:24:05

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Internal Web Development Routing

I think it's going to be a heck of a lot easier to append the hostname alias than it will be to configure a DNS server.  Remember, you don't have to 'go around to every computer' on the LAN...you can shell into them without leaving your chair:

# echo "10.0.0.100 servername" >> /etc/hosts

thayer williams ~ cinderwick.ca

Offline

#3 2009-07-06 05:25:43

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Re: Internal Web Development Routing

thats if they weren't macs / windows etc...

i guess the hosts file is the easiest way, has anyone got a similar setup with a DNS server?

Offline

#4 2009-07-07 03:45:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: Internal Web Development Routing

DNS for internal use isn't hard. Just setup a basic caching DNS server, then add a 'master' zone for something like "companyname.local" so your servers could be referenced as:
http://development.companyname.local
http://devel-2.companyname.local

etc

You'll still have to update the DNS servers that the desktop PC's are using (easy with DHCP) but future maintenance is easy.

Last edited by fukawi2 (2009-07-07 03:46:30)

Offline

#5 2009-07-07 03:58:22

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Internal Web Development Routing

passbe wrote:

do i have other options, DNS server maybe ?

what do you use for your internet gateway?
it may be possible to add an entry for the internal name there, assuming that all the internal machines are pointed there for dns.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2009-07-13 06:23:59

passbe
Member
Registered: 2009-03-14
Posts: 74
Website

Re: Internal Web Development Routing

@cactus: this would be my ideal solution, however the company has a Telstra 2wire router (the biggest pos router possible) so i doubt ill be able to add dns entries.

having setup the server, the hosts file seems very ineffective as i have to shell into every box and update the hosts file. Although a script could be written this doesn't allow for much flexibility.

Offline

Board footer

Powered by FluxBB