Skip to content

Instantly share code, notes, and snippets.

@Bregor
Created March 29, 2009 09:08
Show Gist options
  • Save Bregor/87342 to your computer and use it in GitHub Desktop.
Save Bregor/87342 to your computer and use it in GitHub Desktop.
Master:
named.conf:
zone "einari.org.ru" IN {
type master;
file "pri/einari.zone";
allow-update { none; };
};
einari.zone:
$ORIGIN .
$TTL 0 ; 0 seconds
einari.org.ru IN SOA einari.org.ru. root.einari.org.ru. (
500 ; serial
28800 ; refresh (8 hours)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.bregor.pp.ru.
NS ns1.bregor.pp.ru.
A 193.33.170.66
MX 10 mail.einari.org.ru.
$ORIGIN einari.org.ru.
$TTL 2160000 ; 3 weeks 4 days
$TTL 0 ; 0 seconds
mail A 213.170.68.18
slave:
named.conf:
zone "einari.org.ru" {
type slave;
file "slave/einari.org.ru.zone";
masters { 213.170.68.18; };
};
einari.org.ru.zone:
$ORIGIN .
$TTL 0 ; 0 seconds
einari.org.ru IN SOA einari.org.ru. root.einari.org.ru. (
500 ; serial
28800 ; refresh (8 hours)
7200 ; retry (2 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS ns.bregor.pp.ru.
NS ns1.bregor.pp.ru.
A 193.33.170.66
MX 10 mail.einari.org.ru.
$ORIGIN einari.org.ru.
mail A 213.170.68.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment