Задать вопрос
Ответы пользователя по тегу Linux
  • Как дать доступ к ресурсам локальной сети за dns?

    @s_pyanov Автор вопроса
    В данный момент прописаны эти правила:
    ==================/etc/bind/named.conf.local==========
    //
    // Do any local configuration here
    //
    zone "example.com"{
            type master;
            file "/etc/bind/example.com.hosts";
    };
    
    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";
    
    zone "10.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/192.168.10.in-addr.arpa";
    };

    =================/etc/bind/example.com.hosts===============================
    $TTL 38400
    @ IN SOA ns.example.com. example.com (
             1192648703
             10800
             3600
             604800
             38400 )
    ;
    @       IN       NS      localhost.
    ns      IN       NS      192.168.10.1
    gate    IN       A       192.168.10.1
    storage IN       A       192.168.10.6
    promo1  IN       A       192.168.10.55

    =================/etc/bind/192.168.10.in-addr.arpa======================
    $TTL    3600
    @  IN      SOA     gate.example.com. example.com (
                       20060204        ; Serial
                       3600            ; Refresh
                       900             ; Retry
                       3600000         ; Expire
                       3600 )          ; Minimum
    @       IN      NS      localhost.
    1       IN      NS      ns.
    6       IN      PTR     storage.
    55      IN      PTR     promo1.
    ~

    ======================================================

    Если прописать A запись для зоны promo, то писать нужно в /etc/bind/example.com.hosts? или где?
    Ответ написан