LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2004, 02:25 PM   #1
doulos_theos
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
Alternative to specifying computers in /etc/hosts?


I know that I can explicitly indicate a coorelation between an IP address on my network and a computer name in /etc/hosts. But I'd prefer not to have to do this. What do I have to install so that the computers on my LAN are all automatically known to me?
 
Old 08-23-2004, 02:58 PM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
You could run your own name server and add your own entries - when you set up networking for the machines on the lan, point them at your custom nameserver, which will look up all address using the external nameserver you specify, but any internal names will be returned as specified.

Is there any reason that you don't want to do this? Do you often have computers moving around on your lan or..?

Maybe we can see a different solution if you describe your situation a bit more :)

Steve
 
Old 08-23-2004, 03:28 PM   #3
doulos_theos
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
I'm just lazy. I've had some IP changes in the past that have screwed with me a bit. I want to alleviate this problem.
 
Old 08-23-2004, 03:54 PM   #4
markraem
Member
 
Registered: Nov 2003
Posts: 82

Rep: Reputation: 15
You could create only 1 /etc/hosts file on only 1 of your computers and run a TFTP server on it.
make sure that your hosts file is in the /tftpboot directory of your TFTP server.

On all your other computers you could run a script that "tftp" the hosts file.

The script looks like this
#! bash
cd /etc
tftp get tftpserver-ip hosts

you MUST use TFTP and not FTP since TFTP does not require authentication.

In order to be aware of changes, you can use the script in a cron job, or just execute it at boot time

configure tftp server on linux is VERY easy :

http://www.linux.com/howtos/Clone-HO...tting-up.shtml

This will save you headaches with DNS configurations and allow your network hosts manageable.
 
Old 08-24-2004, 08:54 AM   #5
doulos_theos
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
But how do they do it in large organizations? With Windows, it's like you just plug it in and it appears on the network browser. Isn't there something in the Linux world I can use to get that same kind of ease of use?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
hosts.allow / hosts.deny fistz Linux - Newbie 1 04-19-2001 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration