Skip to content

Instantly share code, notes, and snippets.

@artm
Created April 7, 2017 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artm/d3086d3f5d44c5f182e63fe0c6dc345c to your computer and use it in GitHub Desktop.
Save artm/d3086d3f5d44c5f182e63fe0c6dc345c to your computer and use it in GitHub Desktop.
local dns setup
; /etc/bind/db.mancave.zzz
$TTL 604800
@ IN SOA mancave.zzz. admin.mancave.zzz. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.mancave.zzz.
@ IN A 127.0.0.1
@ IN AAAA ::1
ns IN A 127.0.0.1
* IN A 127.0.0.1
# /etc/resolvconf/resolv.conf.d/head
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
# /etc/bind/named.conf.local
zone "mancave.zzz" {
type master;
file "/etc/bind/db.mancave.zzz";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment