DNSMASQ possible Dns-rebind attack detected error

Source: Internet
Author: User

Recently in doing OpenWrt platform, DNS use is DNSMASQ, but through the board to the Internet, the PC's DNS is set to board the time, found that Baidu, etc., but the company mailbox can not open. The domain name of the company mailbox

xx-xx-notes.xxx.com.cn form, so the DNSMASQ log opened to see the next. Finally found the problem.

How to open DNSMASQ log

1. Find/etc/dnsmasq.conf

In the OpenWrt system, dnsmasq.conf is generated by the/ETC/INIT.D/DNSMASQ file, which is generated by reading the configuration under/ETC/CONFIG/DHCP and then adding some configuration of DNS to form dnsmasq.conf.

So you have to modify it in/ETC/INIT.D/DNSMASQ, instead of modifying it directly/etc/dnsmasq.conf

Add log configuration at the end of the file

Log-queries

Log-facility=/var/log/dnsmasq.log

2. Restart DNSMASQ

/ETC/INIT.D/DNSMASQ restart

3. Ping xx-xx-notes.xxx.com.cn

4. View the Var/log/dnsmasq.log file to see the results of the ping

Discover DNSMASQ possible Dns-rebind attack detected:

5. Problem solving

Baidu found that if the dnsmasq.conf add "Stop-dns-rebind" can lead to this problem, remove this option, restart the good. Remove this option is inside the/ETC/CONFIG/DHCP, modify

Option rebind_protection ' 0 '

Direct modification dnsmasq.conf will be overwritten

DNSMASQ possible Dns-rebind attack detected error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.