Skip to content

Instantly share code, notes, and snippets.

View tyuiko's full-sized avatar

Rhohei Tanaka tyuiko

  • Tokyo
View GitHub Profile
@tyuiko
tyuiko / 137.168.192.in-addr.arpa.zone
Created June 2, 2019 05:22
/var/named/chroot/var/named/137.168.192.in-addr.arpa.zone
$TTL 1D
@ IN SOA orianna.tyuiko.local. root.tyuiko.local. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS orianna.tyuiko.local.
101 IN PTR tyuiko.local.
101 IN PTR orianna.tyuiko.local.
@tyuiko
tyuiko / tyuiko.local.zone
Created June 2, 2019 05:21
/var/named/chroot/var/named/tyuiko.local.zone
$TTL 1D
@ IN SOA orianna.tyuiko.local. root.tyuiko.local. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS orianna.tyuiko.local.
@ IN A 192.168.137.101
orianna IN A 192.168.137.101
@tyuiko
tyuiko / named.conf
Last active June 2, 2019 05:18
/var/named/chroot/etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
@tyuiko
tyuiko / argparsecheetsheet.py
Created April 19, 2016 16:40
argparse cheat sheet
import argparse
parser = argparse.ArgumentParser()
### Positional
parser.add_argument('positional1')
parser.add_argument('positional2', help="positional argument 2")
parser.add_argument('positional3', help="positional argument 3 type int", type=int)
### Optional
parser.add_argument("--optional1", help="optional argument 1")
parser.add_argument("--optional2", help="optional argument 2", action="store_true")