Linux Computer Names not found

Eric "Shubes" plug at shubes.net
Tue Sep 5 07:05:14 MST 2006


Dazed_75 wrote:
> I do not doubt what you say, but it does not seem to answer the actual 
> question.  If I use a web browser from any system to look at the Linksys 
> Router's web page and navigate to the page where I can click on a button 
> to display the routers DHCP Client table, it shows the system names for 
> the TiVo Box (which I understand is a linux based bystem) and the names 
> for Windows boxes, but does not show the names for my Linux systems.

Oh. The question that comes to mind is, where to these names come from? 
Since they're in the DHCP Client (lease) table, they're apparently coming 
from the DHCP session. The host names can be assigned by the server, or 
requested by the client. Look into dhclient (or whichever dhcpclient your 
linux box uses) for a way to specify the client's host name.

> Although it would be nice to ping (etc) by name, that was meant more as 
> supporting information than as a question.  Sorry if I confused the issue.
> 
> BTW, making named entries in /etc/hosts and in C:\WINDOWS\system32\hosts 
> is not a perfect solution to the ping type question I was not asking 
> either since the DHCP issued IPs actually do change once in a while.
> 
> On 9/5/06, *Craig White* <craigwhite at azapple.com 
> <mailto:craigwhite at azapple.com>> wrote:
> 
>     On Mon, 2006-09-04 at 22:11 -0700, Dazed_75 wrote:
>      > Whether I look at the DHCP Clients Table on my Linksys WRT54G, a
>      > Network Neighborhood window in XP, a nbtstat -c or net view command
>      > result in a command window, or a servers list in Ubuntu I only see
>      > names for my Windows boxes and my TiVo unit.  The Linux boxes show up
>      > in the DHCP client list of course but sans any name at all.  I can
>      > ping the windows boxes by name from another windows box but not from
>      > Linux.
>      >
>      > 1) What makes the router recognize the box names for clients other
>      > than Linux?  Can something in Linux be configured so the router knows
>      > their names?
>     ----
>     wins/netbios - Linux uses DNS
> 
>     It has nothing to do with the router per se.
> 
>     What you can do is edit /etc/hosts and put entries with short names
>     .i.e.
> 
>     # cat /etc/hosts
>     # Do not remove the following line, or various programs
>     # that require network functionality will fail.
>     127.0.0.1 <http://127.0.0.1>               localhost.localdomain
>     localhost
>     192.168.2.10 <http://192.168.2.10>            
>     lin-workstation.azapple.com <http://lin-workstation.azapple.com>
>     lin-workstation
>     192.168.2.20
>     <http://192.168.2.20>            win-workstation.azapple.com
>     <http://win-workstation.azapple.com> win-workstation
>     ----
>      > 2) I am guessing that the windows ping command gets box names from
>      > something other than DNS or the HOSTS file.  Anyone know what?  Or if
>      > Linux is using that ability (via Samba?) to find the Windows Network
>      > boxes?  Could that facility be used to make the Linux box names
>     known
>      > to Windows boxes?
>     ----
>     see above
> 
>     Craig
> 


-- 
-Eric 'shubes'


More information about the PLUG-discuss mailing list