LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-09-2005, 10:32 AM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
broadcast computer name on network?


Ok, I am in need of some help from you networking/internet gurus. This is the picture.
I have just set up a four computer network, well, rather expanded on the works PC which runs WinXP, and added 3 pc's running Slack.
I can see each pc from the others, ping, ssh where I need to, and browse via Samba, but I have installed on one of the extra PCs, which is now being used as a print server, and for backup services, the webmin program.
So, when I want to administer this server, I can login to it from any of the other PCs, including my laptop when I attach it by browsing to its ip address, but I can't get it to broadcast its name.
e.g. to login I go to http://10.11.0.11:10000, when really I would like to go to http://darkstar:10000.
So is there anyway to get the pc to broadcast its name around the local network.

FYI, the pcs are as follows:-

Win XP machine, Depot10, 10.11.0.10
1st Linux machine, darkstar, 10.11.0.11
2nd Linux machine, dimbulb, 10.11.0.49
3rd Linux machine, blackhole, 10.11.0.29
laptop when on, blackpig, 10.11.0.99

TIA

Last edited by vdemuth; 11-09-2005 at 10:35 AM.
 
Old 11-09-2005, 11:27 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The system itself won't "broadcast". However you can setup a DNS server that does this for all your hosts. I probably wouldn't bother with only 4 PCs - Instead I'd edit the local hosts files on each.

Add entries /etc/hosts on the Linux servers. There is also a hosts file on Windows but I forget where it is located at the moment (windows/system maybe?) - doing search will find it for you.

Entries should all be BELOW the one that already exists for 127.0.0.1 (localhost) in the file and also BELOW any local IP for the host itself.

Entries are in the format:
ipaddress realname alias1 alias2

Where ipaddress is the IP Address, realname is the real host name, alias1 is another name you'd like to be able to find it by and alias2 being a third name. You are NOT required to have the aliases. Many people put in the real name as a short name then an alias for the Fully Qualified Domain Name (FQDN).

Example:

168.1.2.10 myhost myhost.mydomain.com
 
Old 11-09-2005, 11:35 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
To "broadcast" your PC name on the local network, you can configure all your PCs to use ZeroConf.

It is not always an easy task. I found it easiest with the tmdns program only, instead of mdnsresponder+nss-mdns.

Yves.
 
Old 11-10-2005, 04:47 AM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98
jlightner, thanks for the quick reply. That did the trick.
Just one question though, when browsing the network via Win XP network nieghborhood, or using the smb:// protocol in konqueror, the PCs show there designated names, so is there no utility that will look at these names and 'cross translate' them, (for want of a better term) so that they can be seen by a normal web browser. Just asking out of curiosity, and because I always like to learn a little more about Linux.
 
Old 11-10-2005, 07:18 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Nothing that does it by default.

You can configure DNS (actually BIND 9x) for hosts only info. You have to make a DNS server using BIND on Unix/Linux (there is also a Windows DNS but I don't know details about that one). You'd then have to edit /etc/resolv.conf on each of your hosts to point at the DNS server and resolve names from it.

Alternatively you could install and configure NIS which is a tool that allows you to create common map files for multiple things (hosts, passwd, group, services etc...). This service is not thought of as very secure but for large environments where you have the same users on multiple hosts is a good tool for making the host environments similar and in tandem with NFS filesystem shares is a good way for making common users and home directories.

As I noted for only 4 servers I probably wouldn't bother with DNS or NIS unless I was just feeling industrious. Here at my workplace we have dozens of servers and also have some that are internet facing (i.e. the public sees them) so have to have DNS.
 
Old 11-10-2005, 03:39 PM   #6
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Your windows hosts files are here

win98
c:\windows\
XP Home
c:\windows\system32\drivers\etc\
XP Pro
c:\winnt\system32\drivers\etc\

Just use the hosts file it works great for what you need and then you can just use the name like you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
blocking Network Broadcast using IPtables ! stakhous Linux - Security 3 01-18-2005 02:16 PM
Not able to block Network Broadcast using IPTABLES ! aronnok Linux - Security 8 01-14-2005 08:58 PM
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 04:27 PM
/etc/network/interfaces broadcast problem nafai_anlashok Linux - Networking 2 04-26-2004 08:32 PM
how to broadcast tv over an ip network? andrewlkho Linux - General 5 08-10-2003 09:46 AM

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

All times are GMT -5. The time now is 01:06 AM.

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