1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed problem with some names in Device List not showing correctly

Discussion in 'Tomato Firmware' started by occamsrazor, Sep 21, 2010.

  1. occamsrazor

    occamsrazor Network Guru Member

    For a long time I was having problems getting the machine name of static-DHCP computers to show properly in the Device List window. I'd quite often get things like the following:

    Name > Name Displayed
    ----------------------------

    Macbook Wifi > Macbook
    Macbook Ethernet > Macbook
    My iPhone > My
    MiniMac Wifi > MiniMac
    etc

    Also, in the logs I would find lots of entries along these lines:

    Code:
    Sep 20 10:15:36 Tomato daemon.warn dnsmasq[197]: not giving name MiniMac.local to the DHCP lease of 192.168.0.2 because the name exists in /etc/hosts.dnsmasq with address 192.168.0.12
    Sep 20 10:15:36 Tomato daemon.warn dnsmasq[197]: not giving name MiniMac to the DHCP lease of 192.168.0.2 because the name exists in /etc/hosts.dnsmasq with address 192.168.0.12
    Sep 20 10:15:36 Tomato daemon.warn dnsmasq[197]: not giving name MainMac.local to the DHCP lease of 192.168.0.4 because the name exists in /etc/hosts.dnsmasq with address 192.168.0.14
    Sep 20 10:15:36 Tomato daemon.warn dnsmasq[197]: not giving name MainMac to the DHCP lease of 192.168.0.4 because the name exists in /etc/hosts.dnsmasq with address 192.168.0.14
    
    In both cases I had connected from the machines on wifi and ethernet (not necessarily at the same time), and the router was seeing it as the same, i.e. not seeing the difference between the names "Macbook Wifi" and "Macbook Ethernet". It didn't actually cause any problems I'm aware of, but just didn't look so nice.

    The culprit.... it seems, were the spaces in the name, the router doesn't see past the first space, therefore saw the two names as identical. Once I changed each space to a hyphen e.g. "Macbook-Wifi" they all show up correctly and I don't get the errors in my log anymore.


    This is probably something obvious and maybe everybody knows this already, but damn I've been running Tomato for a number of years and only just figured it out! So thought maybe it would be useful to some other people too...
     
  2. Kiwi8

    Kiwi8 LI Guru Member

    Well, spaces have often been the culprit for such issues. Try to use either hyphens, or as a better alternative, underscores. I tend to prefer underscores.
     
  3. TexasFlood

    TexasFlood Network Guru Member

    I used to like using underscores in server names but got burnt more than once at work so not any more. Although it probably doesn't matter for home use, underscores violate some RFC standards, like 952 and 1123. Some versions of DNS and some products, such as Websphere, don't support underscores so maybe best to be in the habit of avoiding them.
     

Share This Page