Re: [OpenWrt-Devel] hostname setting and network->hostnames are of no consequence
Hi Jow, On Wed, Nov 30, 2011 at 5:49 AM, Jo-Philipp Wich wrote: > And to waht should it be set? That lan interface? What if there are two, > three, for lan interfaces? All interfaces? What about ones with dynamic > IP? /etc/hosts would have to be rewritten on every interface state > change, not desirable. This is most likely a wontfix candidate. Just to clarify why the hostname not resolving to an address was brought to my attention. Asterisk complains bitterly that it cannot resolve the hostname, but it still operates. I can see how some application may not work outright, or a future version of Asterisk may stop working as a result of this. However, if the hostname not resolving is not in violation of any RFCs, and is generally an acceptable policy, then you can call it nofix :). Iordan -- The conscious mind has only one thread of execution. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] hostname setting and network->hostnames are of no consequence
Hi Jow, On Wed, Nov 30, 2011 at 5:49 AM, Jo-Philipp Wich wrote: > And to waht should it be set? That lan interface? What if there are two, > three, for lan interfaces? All interfaces? What about ones with dynamic > IP? /etc/hosts would have to be rewritten on every interface state > change, not desirable. This is most likely a wontfix candidate. I would set it to say 127.0.1.1 like Ubuntu sets it. Isn't that a reasonable solution? > Why should it? If you want /etc/hosts, use /etc/hosts. Well, just judging by the name of the tab (Hostnames), I thought you are basically adding hosts to /etc/hosts. What is the function of this tab then? If it is meant to name DHCP clients, isn't it made redundant by the static leases section of the DNS/DHCP section? Cheers! Iordan -- The conscious mind has only one thread of execution. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] hostname setting and network->hostnames are of no consequence
Am 30.11.11 06:28, schrieb i iordanov: > This is the last one for now! I hope I haven't been too annoying! :) > > 1) Setting the hostname of the router to anything does not actually > add an entry to /etc/hosts. This is a problem if one expects the > hostname to resolve to something, and on OpenWRT it does not resolve > to anything at all! And to waht should it be set? That lan interface? What if there are two, three, for lan interfaces? All interfaces? What about ones with dynamic IP? /etc/hosts would have to be rewritten on every interface state change, not desirable. This is most likely a wontfix candidate. > 2) Also adding entries to Network->Hostnames does not add entries to > /etc/hosts either, the only consequence are entries in > /etc/config/dhcp (which also seems a bit out of place, given that the > hostname is not being added in the DHCP/DNS tab). Why should it? If you want /etc/hosts, use /etc/hosts. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] hostname setting and network->hostnames are of no consequence
This is the last one for now! I hope I haven't been too annoying! :) 1) Setting the hostname of the router to anything does not actually add an entry to /etc/hosts. This is a problem if one expects the hostname to resolve to something, and on OpenWRT it does not resolve to anything at all! 2) Also adding entries to Network->Hostnames does not add entries to /etc/hosts either, the only consequence are entries in /etc/config/dhcp (which also seems a bit out of place, given that the hostname is not being added in the DHCP/DNS tab). Cheers! Iordan -- The conscious mind has only one thread of execution. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel