You are not logged in.
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
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
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
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)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
@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