Re: Name resolution for local names using DHCP



Unruh wrote:
Charles Russell <NOSPAM@xxxxxxxxxxxxx> writes:

Charles Russell wrote:
I can't figure out how to get name resolution for computers on my home WLAN, though everything works all right if I type in explicit IP addresses. The IP addresses will vary because of DHCP, so I can't simply put them in /etc/hosts.

The hostnames and IP addresses are all known to the router (Linksys wrt54g), as I can confirm by querying the router. Should the router not resolve these local hostnames? Or do I misunderstand how this should work under DHCP?

Thanks for the responses, everybody. I infer that there is no simple fix within the capability of the DHCP server in my $50 Linksys wrt54g router. Given that there is no simple fix, and that the only problem is that I have to manually enter IP addresses whenever I do local ftp or ssh, I think I'll follow the principle: "If it ain't broke (much), don't fix it (much)."

Some routers allow you to tell the dhcp service on the router to allways
assign ip address X to MAC address Y. Look through the manual to see if
your router allows that.


Yes, it does. But why should static IP addresses be required, when the DHCP server already has the hostname-IP address associations it needs to resolve the local hostname?
.



Relevant Pages

  • Re: Name resolution for local names using DHCP
    ... The IP addresses will vary because of DHCP, so I can't simply put them in /etc/hosts. ... The hostnames and IP addresses are all known to the router, as I can confirm by querying the router. ... Should the router not resolve these local hostnames? ... But why should static IP addresses be required, when the DHCP server already has the hostname-IP address associations it needs to resolve the local hostname? ...
    (comp.os.linux.networking)
  • Re: Name resolution for local names using DHCP
    ... The IP addresses will vary because of DHCP, ... The hostnames and IP addresses are all known to the router (Linksys ... not resolve these local hostnames? ... Given that there is no simple fix, ...
    (comp.os.linux.networking)
  • Re: Name resolution for local names using DHCP
    ... The IP addresses will vary because of DHCP, so I can't simply put them in /etc/hosts. ... The hostnames and IP addresses are all known to the router, as I can confirm by querying the router. ... Should the router not resolve these local hostnames? ... I infer that there is no simple fix within the capability of the DHCP server in my $50 Linksys wrt54g router. ...
    (comp.os.linux.networking)
  • Re: Name resolution for local names using DHCP
    ... The IP addresses will vary because of DHCP, ... The hostnames and IP addresses are all known to the router (Linksys ... resolve these local hostnames? ... Given that there is no simple fix, and that the only problem is ...
    (comp.os.linux.networking)
  • Re: Name resolution for local names using DHCP
    ... The IP addresses will vary because of DHCP, ... The hostnames and IP addresses are all known to the router (Linksys ... resolve these local hostnames? ... Given that there is no simple fix, and that the only problem is ...
    (comp.os.linux.networking)