Skip to content

Instantly share code, notes, and snippets.

View kometchtech's full-sized avatar
🏠
Working from home

kometchtech kometchtech

🏠
Working from home
View GitHub Profile
@kometchtech
kometchtech / unbound
Created October 6, 2015 01:26
logrotate unbound
/var/log/unbound/*.log {
weekly
rotate 7
missingok
notifempty
compress
delaycompress
sharedscripts
create 644
postrotate
@kometchtech
kometchtech / dnstest_2018-4-21
Last active May 29, 2021 10:09
public dns list (2018/07) <Please tell me about Public DNS!>
location: Japan/Tokyo
test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 Average
cloudflare 7 ms 6 ms 5 ms 5 ms 5 ms 5 ms 5 ms 4 ms 5 ms 10 ms 5.70
level3 5 ms 6 ms 5 ms 4 ms 8 ms 4 ms 4 ms 9 ms 4 ms 14 ms 6.30
192.168.1.3 3 ms 14 ms 5 ms 10 ms 14 ms 10 ms 4 ms 10 ms 7 ms 16 ms 9.30
cleanbrowsing 11 ms 17 ms 9 ms 6 ms 5 ms 10 ms 13 ms 15 ms 5 ms 14 ms 10.50
neustar 11 ms 10 ms 9 ms 9 ms 15 ms 9 ms 9 ms 14 ms 8 ms 12 ms 10.60
norton 14 ms 13 ms 9 ms 14 ms 9 ms 9 ms 9 ms 12 ms 12 ms 9 ms 11.00
192.168.1.4 18 ms 174 ms 12 ms 12 ms 13 ms 11 ms 20 ms 14 ms 3 ms 15 ms 29.20
@kometchtech
kometchtech / office_365_url
Created October 4, 2018 00:56
office365 endpoint
outlook.office.com
outlook.office365.com
smtp.office365.com
r1.res.office365.com
r3.res.office365.com
r4.res.office365.com
xsi.outlook.com
domains.live.com
*.store.core.windows.net
asl.configure.office.com
@kometchtech
kometchtech / gist:19d5806ba28c05c306d8
Created February 13, 2015 02:17
compile pdns-recursor
/usr/local/src/pdns-recursor-3.7.1$ sudo ./configure
Testing dependencies and compiler.
Using make to build
g++ -Iext/rapidjson/include -I/usr/local/src/pdns-recursor-3.7.1/ext/polarssl/include -Wall -fPIE -DPIE -D_FORTIFY_SOURCE=2 -fstack-protector --param ssp-buffer-size=4 -O3 -pthread -Iext/yahttp -D_GNU_SOURCE -DHAVE_STRCASESTR -DSYSCONFDIR='"/etc/powerdns/"' -DLOCALSTATEDIR='"/var/run/"' -MM -MG *.cc *.hh > dep
g++ -Iext/rapidjson/include -I/usr/local/src/pdns-recursor-3.7.1/ext/polarssl/include -Wall -fPIE -DPIE -D_FORTIFY_SOURCE=2 -fstack-protector --param ssp-buffer-size=4 -O3 -pthread -Iext/yahttp -D_GNU_SOURCE -DHAVE_STRCASESTR -DSYSCONFDIR='"/etc/powerdns/"' -DLOCALSTATEDIR='"/var/run/"' pdns_hw.cc -o pdns_hw
Everything ok, now run make using same settings (if any) you passed ./configure
/usr/local/src/pdns-recursor-3.7.1$ sudo make
PLEASE READ: If you get an error mentioning #include <boost/something.hpp>, please read README
@kometchtech
kometchtech / dnsperf_install.sh
Last active November 30, 2018 14:42 — forked from hanshasselberg/dnsperf_install.sh
Install dnsperf on ubuntu 16.04
#!/bin/bash
# Installing related packages
sudo apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
# Download query sample file
curl -LO ftp://ftp.nominum.com/pub/nominum/dnsperf/data/queryfile-example-current.gz$
# Download dnsperf source file
curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.1.0.0/dnsperf-src-2.1.0.0-1.tar.gz -O
# Extracting files
tar xfvz dnsperf-src-2.1.0.0-1.tar.gz
@kometchtech
kometchtech / stubby.yml
Created May 10, 2018 14:56
stubby config sample
# Specifies whether to run as a recursive or stub resolver
# For stubby this MUST be set to GETDNS_RESOLUTION_STUB
resolution_type: GETDNS_RESOLUTION_STUB
# Ordered list composed of one or more transport protocols:
# GETDNS_TRANSPORT_UDP, GETDNS_TRANSPORT_TCP or GETDNS_TRANSPORT_TLS
# If only one transport value is specified it will be the only transport used.
# Should it not be available basic resolution will fail.
# Fallback transport options are specified by including multiple values in the
# list. Strict mode (see below) should use only GETDNS_TRANSPORT_TLS.
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/spack
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
@kometchtech
kometchtech / mackerel-agent.conf
Last active March 3, 2018 14:01
mackerel.io agent for Ubuntu 15.04
# pidfile = "/var/run/mackerel-agent.pid"
# root = "/var/lib/mackerel-agent"
# verbose = false
# apikey = ""
# Configuration for connection
# [connection]
# post_metrics_dequeue_delay_seconds = 30 # delay for dequeuing from buffer queue
# post_metrics_retry_delay_seconds = 60 # delay for retring a request that causes errors
# post_metrics_retry_max = 10 # max numbers of retries for a request that causes errors
@kometchtech
kometchtech / checkPublicDNS.sh
Last active January 4, 2018 05:45
Public DNS Server List (to resolv.conf type)
#!/usr/bin/env bash
# Public DNS Server List
# https://public-dns.info/
URL="https://public-dns.info/"
ALL="nameservers.txt"
COUNTRY="jp"
DEST="/etc/coredns"
@kometchtech
kometchtech / coredns.service
Last active January 4, 2018 05:40
sample file for coreDNS
[Unit]
Description=CoreDNS DNS server
Documentation=https://coredns.io
After=network.target
[Service]
PermissionsStartOnly=true
LimitNOFILE=1048576
LimitNPROC=512
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE