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

A more elegant way to have custom DNS entries?

Discussion in 'Tomato Firmware' started by lanmtl, May 16, 2010.

  1. lanmtl

    lanmtl Addicted to LI Member

    Hello all,

    I have setup some static hostnames in the internal DNS server so that I can type http://routage to access the router or ftp://mat to ftp to that host.
    I was wondering if there was a more elegant way of doing it, especially for ns1, ns2, ns3 and the modem that are IP based rather than MAC based. I have the feeling they shouldn't be there technically but elsewhere.

    Here is what it looks like at the moment under the Static DHCP menu

    Thanks for your help!
  2. mpegmaster

    mpegmaster Addicted to LI Member

    OpenDNS.COM is your friend...:givehug:

  3. lanmtl

    lanmtl Addicted to LI Member

    I will never EVER use OpenDNS. They are not my friend, I hate them for catching typos and redirecting you to their sponsored error page rather than letting your browser show you the plain error page saying the domain doesn't exist.
    Besides, I don't think OpenDNS can handle private addresses (the “modem” host is in private addressing space)
  4. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    You could add entries into the Dnsmasq custom configuration section, but what you've done (ip address and name, left MAC as zeroes) is probably the most "elegant".
  5. mpegmaster

    mpegmaster Addicted to LI Member


    OpenDNS can can handle private addresses that everyone on your private network can use with your unique naming conventions!!!

    Under --> Dashboard --> Shortcuts


    Here are some examples...


    Notice the same ip with different names... ;^)

  6. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    But, there's absolutely no reason OpenDNS is needed to do that. Dnsmasq, built into Tomato, alone can handle it just fine.
  7. lanmtl

    lanmtl Addicted to LI Member

    I'm sure Tomato can. The only question is “how?”
    Like I said, OpenDNS isn't an option, I will _never_ EVER use them.
  8. mpegmaster

    mpegmaster Addicted to LI Member

    Yes... this is true, but if you manage multiple networks and want the same naming convention every where. This is easier to mange at one place, remotely & local.

    Just another view... ;^)

  9. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    I'm not sure I follow. You've already done it...

    If you'd rather do it in the Dnsmasq custom configuration field, you can add
    type entries for each.
  10. Azuse

    Azuse Addicted to LI Member

    That's how every dns service, including isps, makes their revenue. If you want a free service you have to be willing to have the odd add and frankly I know or a fact there are isps in the UK with alot more redirecting and adds than open dns :)

    Possibly off topic, but I've tried that command before and I was never directed to my router when I typed router into the address bar.
  11. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    That's not true. There are lots of free services that don't break DNS by not returning NXDOMAIN when the DNS specification requires that they do so.

    However, you can always un-break it by adding
    , entering the ip address that the broken DNS returns instead of NXDOMAIN (dnsmasq will then intercept it and return NXDOMAIN to its clients).

    That's not what it was intended to do, but if you use the router IP address, I don't see any reason it wouldn't work. It just worked for me.
  12. lanmtl

    lanmtl Addicted to LI Member

    Yes it's working like I did but I was feeling this was not the proper way of doing it. I'm guessing this part was more for assigning specific IPs to specific MACs rather than using it to bind hostnames to IPs (notice how the MACs are all 0s for modem and nsX)
    It's not a big deal, I was just eager to know what the best practice would be in that case :)
  13. lanmtl

    lanmtl Addicted to LI Member

    Even if that was true (and it is not, my ISP doesn't hijack your request neither do the two other DNS services I use), it doesn't make it okay. This is (yet another) threat to online privacy, it makes me very sad it's so widespread and that people are willing to accept it because "hey it's free!" or "I don't have anything to hide anyway".
  14. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    I understand, but I think what you did was already the proper way. That page has specific previsions in place to handle this case where you just want to add a DNS entry (not adding a static DHCP entry).
  15. lanmtl

    lanmtl Addicted to LI Member

    Oh well, I will leave it as is then. Thanks!
  16. Azuse

    Azuse Addicted to LI Member

    You're right, I shouldn't have said all, but the majority of free ones do, along with quite a few isps desperate to sell advertising space. My isp doesn't :), but a lot of people are either ignorant, don't have time or simply don't care about it.

    I'm glad the op is happy, but neither the dnsmasq custom config nor static dhcp works for me. Odd :)
  17. sjk

    sjk Network Guru Member

    That nuisance is easily avoidable by disabling:

    Enable typo correction (and NX Domain redirection)

    … under Settings > Advanced Settings > Domain Typos for your network(s).

Share This Page