random findings by wt8008
RSS icon Home icon
  • Tomato Firmware Hostname

    Posted on July 29th, 2009 wt8008 No comments

    I always wanted to access my router via its hostname instead of typing the router IP in. This works fine in Linux, but for some reason Windows resolves hostnames different. I checked in windows with nslookup, and it can resolve my router name, but in Firefox or IE it doesn’t work. I had the same problem when using dd-wrt.

    In the Basic->Identification section, I randomly added a domain name of home, and now windows can resolve the router hostname and router.home, also points to my router. For past routers I used, I typically leave this field empty, as the documentation says it is provided by my ISP. This solution doesn’t require massive editing of config files on the router or editing host files.

    The computers can resolve themselves just fine either via the router DNS, Samba, or Avahi. I am not sure which one is doing the work.

  • Ubuntu Resolve Hostname

    Posted on February 7th, 2009 wt8008 1 comment

    I wanted to ping my vmware-player system using its hostname. The easiest way to do this is to install samba on the server computer, and let samba announce to the network my hostname.

    Everyone on the network that can pick up and process those packets will know about the hostname.

    Playing with /etc/nsswitch.conf and /etc/dhcp3/dhclient.conf does not make an effect that I can notice.

    Edit: Apparently I only tested from my laptop. My Desktop (the host system for vmware) cannot ping the hostname of my vmware-client directly, but it can reach it via .local from avahi. Some weird configuration somewhere. I should try with a livecd.

    Edit: Samba worked fine for Ricky’s Windows PC to Ricky’s eee running Ubuntu.