A
A
astrotrain2015-03-12 15:50:33
Domain Name System
astrotrain, 2015-03-12 15:50:33

Bind9 subdomain setup, why doesn't it work?

I tried to create a subdomain on my local dns server, I did everything as it should be:
in named.conf.local

zone "bill.microsoft.com" {
     type master;
      file "/etc/bind/db.bill.microsoft.com";

};

And correspondingly:
$TTL    604800
@       IN      SOA    bill.microsoft.com. root.bill.microsoft.com. (
                              4         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      127.0.0.1
@       IN      A       192.168.1.12
@       IN      AAAA    ::1
ns      IN      A       127.0.0.1

But for some reason the server is not found. It would seem an elementary example, but I can not understand what the problem is.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
ldv, 2015-03-12
@ldvldv

dig @127.0.0.1 bill.microsoft.comwhat does he say?

S
ShamblerR, 2015-03-13
@ShamblerR

working config

$TTL        3600
@       IN      SOA     ns1.klondike-s.ru. viktor.7877796.ru. (
                        2015022702       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

188.138.84.111.in-addr.arpa  3600      PTR        3epho.ru
3epho.ru. 3600 A        188.138.84.111
3epho.ru. 3600      MX    10   mx.yandex.ru.
3epho.ru. 3600      NS        ns1.klondike-s.ru.
3epho.ru. 3600      NS        ns2.klondike-s.ru.
3epho.ru. 3600      TXT        "v=spf1 redirect=_spf.yandex.ru "
mail 3600 A        188.138.84.111
www 3600 A        188.138.84.111

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question