Need to add more Hostnames

Discussion in 'Tomato Firmware' started by jambek2003, Sep 2, 2012.

  1. jambek2003

    jambek2003 Serious Server Member

    The (toastman-) tomatoUSB Firmware doesn't allow to add more host-names then text-size of input-field. Okay first of all it's not pretty to assign multiple host-names to the same IP but it does doe the trick when you have a dev-webserver with virtualhosts.I tried to edit /etc/dnsmasq/hosts but it gets overwritten:confused:

    How can I assign more hosts to one entry in the basic > DHCP/ARP/BW-page?! This is a request and I don't even know if dnsmasq will allow this but; is it possible to add an alias/cname to a hostname/a-record in this page?!

    Back to reality again:p How can I assign more (v)hosts to one IP/MAC?!
  2. koitsu

    koitsu Network Guru Member

    What you actually want are DNS CNAMEs. You using the static DHCP page to accomplish this is the absolute *wrong* place. Shame on you. You should have taken the time to read the official dnsmasq documentation to accomplish what you need. Here it is:

    Advanced -> DHCP/DNS -> Dnsmasq Custom Configuration

    Enter a line into the text field like this:,

    You can enter as many of these lines as you wish. They will be placed in /etc/dnsmasq.conf verbatim.

    Make sure you comply with the syntax I listed off; don't go adding spaces or trying to make the string "look nice". Just stick with exactly what I've shown and it'll be fine.

    If you don't have a domain name associated with your LAN, e.g. your Apache virtualhost lines really do look like "ServerName snakes" rather than "ServerName", then go ahead and use shortnames.

    Be sure to remove the entries you have in the static DHCP page before doing this.
  3. jambek2003

    jambek2003 Serious Server Member

    Thanx koitsu That did the trick! I shall stand in the corner:p
  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