Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =================================/etc/named.conf==========================================
- //
- // /etc/named.conf
- //
- options {
- directory "/var/named";
- pid-file "/var/run/named/named.pid";
- auth-nxdomain yes;
- datasize default;
- // Uncomment these to enable IPv6 connections support
- // IPv4 will still work:
- // listen-on-v6 { any; };
- // Add this for no IPv4:
- // listen-on { none; };
- // Default security settings.
- allow-recursion { 127.0.0.1; };
- allow-transfer { none; };
- allow-update { none; };
- version none;
- hostname none;
- server-id none;
- };
- //zone "localhost" IN {
- // type master;
- // file "localhost.zone";
- // allow-transfer { any; };
- //};
- zone "." IN {
- type hint;
- file "root.hint";
- };
- //zone "example.org" IN {
- // type slave;
- // file "example.zone";
- // masters {
- // 192.168.1.100;
- // };
- // allow-query { any; };
- // allow-transfer { any; };
- //};
- logging {
- channel xfer-log {
- file "/var/log/named.log";
- print-category yes;
- print-severity yes;
- print-time yes;
- severity debug;
- };
- category xfer-in { xfer-log; };
- category xfer-out { xfer-log; };
- category notify { xfer-log; };
- };
- include "/etc/named/domain-enabled.conf";
- ==========================================================================================
- =============================/etc/named/domain-enabled.conf===============================
- zone "dimitrisze.com" IN {
- type master;
- file "/etc/named/domain-enabled/mydomain.com.db";
- allow-update { none; };
- notify no;
- };
- ==========================================================================================
- ========================/etc/named/domain-enabled/mydomain.com.db=========================
- $TTL 7200
- @ IN SOA mydomain.com. (
- 2012072701 ; Serial
- 28800 ; Refresh
- 1800 ; Retry
- 604800 ; Expire
- 86400 ) ; Negative Cache TTL
- IN NS ns1
- ns1 IN A 0.0.0.0
- localhost IN A 127.0.0.1
- @ IN MX 10 mail
- imap IN CNAME mail
- smtp IN CNAME mail
- @ IN A 0.0.0.0
- www IN A 0.0.0.0
- mail IN A 0.0.0.0
- @ IN TXT "v=spf1 mx"
- ==========================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement