it:linux:debian:bind9

Bind9

  1. aptitude install bind9
  2. /etc/bind/named.conf.local:
     zone "sub.example.com" IN {
      type master;
      file "/etc/bind/db.sub.example.com";
    };
  3. /etc/bind/db.sub.example.com:
    $TTL    604800
    @       IN      SOA     localhost. root.localhost. (
                                  2         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @ IN NS sub.example.com
    @ IN A 123.123.123.123
    test IN A 123.123.123.124
    ;
  • TCP: 53
  • UDP: 53
  • it/linux/debian/bind9.txt
  • Zuletzt geändert: 2015/12/24 14:26
  • von 127.0.0.1