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

local dns support for dhcp assigned addresses

Discussion in 'Cisco Small Business Routers and VPN Solutions' started by booboodo_guy, May 3, 2009.

  1. booboodo_guy

    booboodo_guy Addicted to LI Member

    It's easy to share files between windows and linux systems on small home networks when using static ip addresses. Samba for letting windows access linux shares and "mount cifs" for letting linux access windows shares. However, when all the computers use a router based DHCP server to assign dynamic ip addresses I have not found a simple way for linux to resolve host computer names to their ip addesses. I have heard via google there is a way to set up a "router" (don't know what brand) to provide a local DNS server function. That is, if the host name has an ip address that was assigned by the router then it could be configured to intercept a DNS lookup and respond with the DHCP assigned address. Does anyone know about this type of setup?
  2. Sfor

    Sfor Network Guru Member

    The other solution would be to assign always the same IP's through the DHCP. It should be possible to bind IP to MAC in the DHCP setup. However, not every router does have such a possibility.

    Yet another solution is to use the NetBeui protocol. It seems to be working fine in my network of Linux, Windows 9x and Windows 2000 computers. The Linux is able to access the Windows computers through their network names, and Windows does the same through the Samba network names.

    Caution: A proper installation of the NetBeui in Windows XP is a bit tricky.
  3. booboodo_guy

    booboodo_guy Addicted to LI Member

    I'm aware of these options. An additional one is to use the samba nmblookup command to find all host name ip address associations and then parse the list with grep and add results to the hosts file.

    But it sure would be a lot easier if a router could simply be configured as a "local dns server".

Share This Page