Strange DNS problem with Tomata v1.17

Discussion in 'Tomato Firmware' started by tomson, Apr 2, 2008.

  1. tomson

    tomson LI Guru Member

    Strange DNS problem with Tomato v1.17

    I am using my Linksys WRT54GL with Tomato v1.17 as DNS server for the machines in my LAN. I use the Static DHCP feature (with MAC 00:00:00:00:00:00) the enter the hostnames and the IP's.

    This work great for all the Windows machines and for most Linux machines in our network. Only one machine and the network printer don't seem to work. When I ssh to the router and ping to these hosts just work:
    # ping remote
    PING remote ( 56 data bytes
    64 bytes from icmp_seq=0 ttl=64 time=1.1 ms
    64 bytes from icmp_seq=1 ttl=64 time=1.0 ms
    --- remote ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 1.0/1.0/1.1 ms
    # ping printer
    PING printer ( 56 data bytes
    64 bytes from icmp_seq=0 ttl=255 time=1.0 ms
    64 bytes from icmp_seq=1 ttl=255 time=0.9 ms
    --- printer ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 0.9/0.9/1.0 ms
    From the other machines ping doesn't work to these two hosts.

    This is the setting of my hosts.dnsmasq:
    I have no clue what's wrong. Has anybody got some hints or tips for me?
  2. mstombs

    mstombs Network Guru Member

    I suspect the problem is that there is no "fully qualified domain name". I got round something similar a long time ago by giving my router the ".lan" domain, and assigning all the static dhcp clients name.lan names. Then lookups without .lan still work, as it gets auto added.
  3. TexasFlood

    TexasFlood Network Guru Member

    For the host, is there anything peculiar in the network configuration, like a local hosts file over-riding DNS? For the printer, assuming it doesn't have any advanced config, I'm stumped. Are they all wireless device or a mix? When you say "(with MAC 00:00:00:00:00:00)" do you just mean that is the format of the MAC address? Wasn't sure what you meant by that.
  4. tomson

    tomson LI Guru Member

    The hosts file on my XP machine is just empty (lookup doesn't work on any machine). Some of the machines are virtual machines on a Xen server, but that should not make a difference IMO (the lookup of only one xen host fails). Everything is wired, except my client machine (WinXP).

    In Tomato you can leave the MAC address "empty" (00:00:00:00:00:00) if you don't want to use Static DHCP and just want to you the "classic" lookup like you can specify in a hosts file (using the MACs doesn't work as well).

    @mstombs: the .lan trick doesn't seem to work. When I am at work again I will try again, because I am connecting with a VPN from home now to my work LAN.
  5. TexasFlood

    TexasFlood Network Guru Member

    I didn't realize that capability existed, hadn't read all of the FAQ, hah.

    Looks like that should work so long as the name you put in that table matches what the server thinks it's name is. IMy first thought was somehow the IPs are getting mapped to the wrong servers or not getting mapped and defaulting to getting an address from the DHCP pool but if the servers are getting the right IPs that should be OK. What is the IP range of your DHCP pool? Are all your addresses outside that range so if a server defaulted to DHCP it would be unique and recognizable? If you go look at the device list in the GUI, do they all looked assigned correctly?

    Just thinking out loud as nothing really obvious comes to mind.

    I have all my MACs in the table. I trust the MACs, gives me a warm fuzzy, never tried the "00:00:00:00:00:00" method.

    If I were to remove the MACs, I would have to go fix all the names. I enter whatever name I want to, to make it easier to type & remember.

    For example, the name of my work laptop is 15 characters of meaningless (to me) characters which I can't change. So if I just put "WorkLaptop" in the table and it maps that name to the MAC. I also have a couple of old devices that don't let me change their names so this lets me get around that as well. If I controlled all the names, then I would probably make them all match. In the case of the work laptop, say my router domain is "lan", I can just refer to the laptop as the much easier to remember "WorkLaptop.lan" instead of the actual name in the format "ABC-19483945058".

    Don't know if this is a legit approach. I wouldn't do something like this at work in a production environment but I've been doing it for a long time at home on this firmware & others, and it works for me, :)

    Gathering all the MACs initially is a bit of a pain but after that I keep them all in a file and it's not bad. I used to do MAC filtering back when I had to use WEP (again due to an old device) so I was tracking mine already, just had to add new as the come along.
  6. tomson

    tomson LI Guru Member

    I gave the router domain name lan and it works like a charm. It didn't work through the VPN for some reason. Thanks for your help! :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice