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

Adding a local domain

Discussion in 'Tomato Firmware' started by dasBaum, May 26, 2009.

  1. dasBaum

    dasBaum Addicted to LI Member

    Is it possible to add a local domain using tomato? I'd like my devices to use a shared DNS suffix. F.e. pc.home.local, notebook.home.local, anotherone.home.local, etc.

    I expect easier addressing when using a VPN tunnel. So that I don't need to care about the ip addresses.

    How can this be done with tomato?

    Thank you!
  2. occamsrazor

    occamsrazor Network Guru Member

    Perhaps I'm not understanding what you want, but I think you just do this in:

    Basic > Network > Identification > "Domain Name"
  3. averylinden

    averylinden Addicted to LI Member

    I wouldn't use .local - I think that's used by the zeroconf/MDNS spec which you might clash with in the future. I use .home

    If you'd like to serve .home from your own dns server, you can add this line to Advanced->DHCP/DNS->Dnsmasq Custom Configuration:

    Where "home" is your local domain and "192.168.1.x" is where you've defined the .home DNS zone.
  4. dasBaum

    dasBaum Addicted to LI Member

    Hell that was too easy. :D Thanks!
    And thanks as well for the hint with the .local.
  5. FlashSWT

    FlashSWT LI Guru Member

    I've been wanting to implement this same thing using ".lan" so I'm glad this thread was started.

    Is this possible to setup if I don't run my own DNS server? I guess having Tomato resolve the local domain itself? Or am I not understanding this?
  6. averylinden

    averylinden Addicted to LI Member

    It should be possible if you set up static DHCP for the host name. Then tomato's DNS server will answer for the hostname and IP address (assuming you've set tomato's domain to .lan). If you want anything fancier, you'll probably need to either run your own server or else add some custom configuration to tomato's dnsmasq.
  7. FlashSWT

    FlashSWT LI Guru Member

    OK thanks for the response. It looks like the Static DHCP method works. I already use it but just have descriptive text in the "Hostname" field so I can remember which computer is which.

    I also found this link:

    It looks like placing the following code in the Dnsmasq Custom Configuration section of the GUI also does the trick.

    This seems very similar to the advice you gave the OP but I assume functions differently since you mentioned the DNS zone. Right?
  8. averylinden

    averylinden Addicted to LI Member

    No, the functionality is pretty much the same. The reason you'd want to use a separate DNS server is if you need support for one of the more obscure DNS records not supported by Tomato's dnsmasq server or have a very large setup. I'm sure there are other reasons. dnsmasq by itself is probably fine for most home networks. I already had a .home zone running on a separate server before starting to use Tomato, so I chose to keep using it instead of migrating it to Tomato.

Share This Page