Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

blackhole IP 屏蔽 dig 测试不正常 #182

Closed
IrineSistiana opened this issue Oct 9, 2021 · 0 comments
Closed

blackhole IP 屏蔽 dig 测试不正常 #182

IrineSistiana opened this issue Oct 9, 2021 · 0 comments

Comments

@IrineSistiana
Copy link
Owner

不用dnsmasq的话openwrt有一大票基于dnsmasq-full的插件用不了了呐,一些ip分流、广告过滤什么的。
我另外试了用替换ip的方式屏蔽aaaa

- if_and:
    - '!query_is_local_domain'
    - _qtype_AAAA
  exec:
    - blockaaaa
    - _end

  - tag: 'blockaaaa'
    type: 'blackhole'
    args:
      rcode: 0
      ipv4: '127.0.0.1'
      ipv6: '::1'

但是用dig测试返回不正常

❯ dig @192.168.100.1 -t aaaa stackapps.com -p6553
;; Got bad packet: extra input data
72 bytes
d7 c9 81 00 00 01 00 01 00 00 00 00 09 73 74 61          .............sta
63 6b 61 70 70 73 03 63 6f 6d 00 00 1c 00 01 09          ckapps.com......
73 74 61 63 6b 61 70 70 73 03 63 6f 6d 00 00 01          stackapps.com...
00 01 00 00 0e 10 00 10 00 00 00 00 00 00 00 00          ................
00 00 00 00 00 00 00 01                                  ........

Originally posted by @klever1988 in #181 (reply in thread)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant