how do i add hostname?

Discussion in 'Tomato Firmware' started by windbug, Jan 22, 2007.

  1. windbug

    windbug LI Guru Member

    i've changed to tomato from dd-wrt.
    yeah... it's great!

    btw, i cannt use localhost and localdns.

    i have 3 PCs..
    and i wanna use localhost.

    PC 1 : pc1.test.lan
    PC 2 : pc2.test.lan
    PC 3 : pc3.test.lan , admin.test.lan, check.test.lan

    how do i add more local host or local dns?
  2. digitalgeek

    digitalgeek Network Guru Member

    The Basic, identification page will allow you to add the domain and device name.
  3. windbug

    windbug LI Guru Member

  4. digitalgeek

    digitalgeek Network Guru Member

    under domain you can enter test.lan and name each pc pc1/pc3/admin/check

    if that doesn't work you will probably have to set something in telnet. Other than that you might want to email Jon -
  5. windbug

    windbug LI Guru Member

    under domain enter name each?
    so sorry... i cannt understand..
  6. SgtPepperKSU

    SgtPepperKSU Network Guru Member

  7. windbug

    windbug LI Guru Member

    thx SgtPepperKSU.

    i can browse pc1.test.lan , pc2.test.lan, pc3.test.lan.

    but.. cannt browse pc3 via admin.test.lan

    i wanna browse pc3 via http://pc3.test.lan , http://admin.test.lan and http://check.test.lan


    i used ssh and make a file tmphosts

    -------- admin check

    and Dnsmasq custom configuration at Tomato
    addn-hosts=/etc/tmphosts's work.

    but.. if i add or change localdns, i always must use ssh.

    i dont like it. i wanna just use tomato web interface.
  8. digitalgeek

    digitalgeek Network Guru Member

    through static DNS (as listed in the faq) you can do this
  9. windbug

    windbug LI Guru Member

    thx. digitalgeek.'s work.!!

    btw, if pc3 have not DNS server, how can i do it?
  10. digitalgeek

    digitalgeek Network Guru Member

    are you setting the ip manually or through dhcp? if manuaully make sure the dns and gateway are set to the router. if you are hosting dhcp from one of your pcs, make sure the dns and gateway point to your router.
  11. Scott K

    Scott K Network Newbie Member

    I'm doing exactly that and the hostname will not resolve...
  12. EOC_Jason

    EOC_Jason Networkin' Nut Member

    If you want to set hostanames for your local computers, go to:

    Basic -> DHCP/ARP/BW

    Put the MAC, IP, and Hostname... Save... done!

    If you want multiple hostnames just separate them with a space.

    I have like 30 machines listed that way, works perfect.
  13. kthaddock

    kthaddock Network Guru Member

    Or you can put this in DHCP / DNS Server (LAN) => Custom configuration
    And put your computer in a file:
    Last edited: Jun 25, 2014
  14. Ole Juul

    Ole Juul Networkin' Nut Member

    I agree, using a hosts file is the way to go. Here's how I do it.

    I put my hosts file in /tmp/mnt/SHIBBY where it works because I put
    in the "Dnsmasq -> Custom configuration" box.

    With the original file on my admin computer, where it's quick to edit, I put modified versions on the router by typing:
    scp hosts root@
    Since I have to edit the file anyway, I don't see the GUI being able to make that any easier. Since I keep forgetting the above line when I need to know it, I just cut and past it when required. One could put it right in the hosts file as a comment.
  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