Differences
This shows you the differences between two versions of the page.
|
doc:howto:dhcp.dnsmasq [2013/02/06 21:38] gcb |
doc:howto:dhcp.dnsmasq [2013/05/22 06:36] (current) pahindman Removed discussion about "localhost.". |
||
|---|---|---|---|
| Line 57: | Line 57: | ||
| 192.168.1.3 ubuntu-laptop | 192.168.1.3 ubuntu-laptop | ||
| </code> | </code> | ||
| - | |||
| - | FIXME whats the effect of trailing dot, e.g. ''127.0.0.1 localhost.''? It seems that it prevents resolving localhost name from ''/etc/hosts'' file if run from the router itself, instead the resolving will take place in ''dnsmasq''. But ''dnsmasq'' uses ''/etc/hosts'' anyway, so not sure what the benefits are. | ||
| - | -- this is not a forum, but a dot in the end means the DNS root. technically, all dns have a dot in the end. "yahoo.com" is in reallity "yahoo.com.". what you are doing with "localhost." is saying that localhost is a top-level-domain (TLD) and that you should ask the root DNS server who is responsible for the TLD localhost, just as you do for "com."... which of course, will result in nothing for "localhost." | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 83: | Line 80: | ||
| <code> | <code> | ||
| killall dnsmasq | killall dnsmasq | ||
| - | /etc/init.d/S60dnsmasq start | + | /etc/init.d/dnsmasq start |
| </code> | </code> | ||
| Line 231: | Line 228: | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| + | ==== log continuously filled with DHCPINFORM / DHCPACK ==== | ||
| + | |||
| + | |||
| + | |||
| + | Windows 7 among others ask for proxy settings using DHCP. The issue is that they do not stop asking until they have received an answer. This results in that the log contains a lot information about these requests, an example can be found below (thanks for http://wiki.excito.org for the info). | ||
| + | |||
| + | <code> | ||
| + | Jul 1 06:34:09 MorganB3 dnsmasq-dhcp[1638]: DHCPINFORM(br0) 10.69.10.59 00:23:14:c5:33:fc | ||
| + | Jul 1 06:34:09 MorganB3 dnsmasq-dhcp[1638]: DHCPACK(br0) 10.69.10.59 00:23:14:c5:33:fc MorgansVaioF12Z | ||
| + | </code> | ||
| + | |||
| + | To solve this, edit /etc/dnsmasq.conf and add the following lines: | ||
| + | <code> | ||
| + | # This will tell DHCP clients to not ask for proxy information | ||
| + | # Some clients, like Windows 7, will constantly ask if not told NO | ||
| + | dhcp-option=252,"\n" | ||
| + | </code> | ||
| + | And restart Dnsmasq with /etc/init.d/dnsmasq restart | ||
| ===== Notes ===== | ===== Notes ===== | ||
doc/howto/dhcp.dnsmasq.1360183125.txt.bz2 · Last modified: 2013/02/06 21:38 by gcb
