I have for a while been annoyed about all the dnsmasq entries in the daemon.log file and today I think I found a way to reduce them. Windows 7 (and other Microsoft OSs) asks for a proxy using DHCP. The issue is that they do not stop until they have received an answer. Since the B3 do not have such information Windows will ask ask and ask again.
Seraching the Internet suggested that adding <dhcp-option=252,”\n”> to the dnsmasq.conf file would solve the issue. I am now writing a entry for the Wiki and would like someone else to verify the text before I put it up there.
- Does this work for you?
- My thinking was to put it in the new file instead of adding it to the dnsmasq.conf file. Correct approach?
- Can you see any drawbacks with this?
Windows 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.
This wiki entry describes how to modify the B3 to stop this traffic.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
Configuration
No specific configuration information is needed
Packages
No new packages is needed
Setup
Login to the B3 and become the root user
Code: Select all
su
Code: Select all
cd /etc/dnsmasq.d
touch no_proxy.conf
Restart DNS# 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"
We are now completed so let us restart the server
Code: Select all
/etc/init.d/dnsmasq restart
Look at the log, you should only see one more DHCPINFORM entry per computer connected to the B3, then they should stop asking for proxy information.
Code: Select all
tail -f /var/log/daemon.log