Skip to content

Instantly share code, notes, and snippets.

@andretw
Last active August 29, 2015 14:04
Show Gist options
  • Save andretw/388e5cb9cf883b8facb2 to your computer and use it in GitHub Desktop.
Save andretw/388e5cb9cf883b8facb2 to your computer and use it in GitHub Desktop.
Bind and DLZ Memo

Bind, DLZ

  • After Bind v9.6, DLZ included.

Disable the recusive query other than internal domains or ips

acl corpnets {
  36.231.157.56/32;
  114.34.18.168/32;
}
allow-recursion { corpnets; };

or disable all

resursion no;

In MySQL

dns_zones

  • domains

dns_records

  • @A
  • @NS
  • @SOA

Prevent DDoS attack

iptables -t raw -I PREROUTING -i eth0 -p udp --destination-port 53 \
    -m string --algo kmp --from 30 \
    --hex-string "|01000001000000000000|" -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment