Help with dns

Discussion in 'Installation/Configuration' started by bmeirelles, Aug 18, 2023.

  1. bmeirelles

    bmeirelles New Member

    hi friends good night.
    I need your help with dns.
    I created the zone and records in the web gui.
    In the /etc/bind folder, the zone file appeared.

    root@IspConfig:~# tail /etc/bind/pri.informaticadigital.com.br.err
    $TTL 3600
    @ IN SOA ns1.informaticadigital.com.br. [email protected]. (
    2023081701; serial, todays date + todays serial #
    7200 ; refresh, seconds
    540; retry, seconds
    604800 ; expire, seconds
    3600); minimum, seconds
    ;

    www 3600 A 10.10.10.10

    The problem. is that bind9 seems not to load the zone
    root@IspConfig:~# dig @192.168.0.251 informaticadigital.com.br

    ; <<>> DiG 9.18.16-1~deb12u1-Debian <<>> @192.168.0.251 informaticadigital.com.br
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25890
    ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 1232
    ; COOKIE: 9ccf9f139298ac9d0100000064de9bc0f4ca5c118cd935a8 (good)
    ;; QUESTION SECTION:
    ;informaticadigital.com.br. IN A

    ;; ANSWER SECTION:
    informaticadigital.com.br. 1819 IN A 108.167.188.15

    ;; Query time: 0 msec
    ;; SERVER: 192.168.0.251#53(192.168.0.251) (UDP)
    ;; WHEN: Thu Aug 17 19:14:24 -03 2023
    ;; MSG SIZE rcvd: 98



    2023-08-17T19:15:34.473837-03:00 IspConfig named[314918]: using default UDP/IPv4 port range: [32768, 60999]
    2023-08-17T19:15:34.476049-03:00 IspConfig named[314918]: using default UDP/IPv6 port range: [32768, 60999]
    2023-08-17T19:15:34.479650-03:00 IspConfig named[314918]: listening on IPv4 interface lo, 127.0.0.1#53
    2023-08-17T19:15:34.481813-03:00 IspConfig named[314918]: listening on IPv4 interface enp6s18, 192.168.0.251#53
    2023-08-17T19:15:34.483965-03:00 IspConfig named[314918]: listening on IPv4 interface wg0, 10.1.0.2#53
    2023-08-17T19:15:34.486082-03:00 IspConfig named[314918]: listening on IPv4 interface wg1, 10.2.0.3#53
    2023-08-17T19:15:34.488019-03:00 IspConfig named[314918]: IPv6 socket API is incomplete; explicitly binding to each IPv6 address separately
    2023-08-17T19:15:34.488557-03:00 IspConfig named[314918]: listening on IPv6 interface lo, ::1#53
    2023-08-17T19:15:34.489773-03:00 IspConfig named[314918]: listening on IPv6 interface enp6s18, fd00:ffff:fffa:0:bc18:9bff:fe0e:e593#53
    2023-08-17T19:15:34.492078-03:00 IspConfig named[314918]: listening on IPv6 interface enp6s18, 2804:14d:5ca0:909b:bc18:9bff:fe0e:e593#53
    2023-08-17T19:15:34.493328-03:00 IspConfig named[314918]: listening on IPv6 interface enp6s18, fe80::bc18:9bff:fe0e:e593%2#53
    2023-08-17T19:15:34.495676-03:00 IspConfig named[314918]: listening on IPv6 interface wg0, fd00:e::2#53
    2023-08-17T19:15:34.498549-03:00 IspConfig named[314918]: listening on IPv6 interface wg1, fd00:f::3#53
    2023-08-17T19:15:34.501410-03:00 IspConfig named[314918]: generating session key for dynamic DNS
    2023-08-17T19:15:34.502816-03:00 IspConfig named[314918]: sizing zone task pool based on 5 zones
    2023-08-17T19:15:34.506455-03:00 IspConfig named[314918]: none:100: 'max-cache-size 90%' - setting to 1737MB (out of 1930MB)
    2023-08-17T19:15:34.510462-03:00 IspConfig named[314918]: obtaining root key for view _default from '/etc/bind/bind.keys'
    2023-08-17T19:15:34.512320-03:00 IspConfig named[314918]: set up managed keys zone for view _default, file 'managed-keys.bind'
    2023-08-17T19:15:34.514411-03:00 IspConfig named[314918]: automatic empty zone: 10.IN-ADDR.ARPA
    2023-08-17T19:15:34.516081-03:00 IspConfig named[314918]: automatic empty zone: 16.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.517738-03:00 IspConfig named[314918]: automatic empty zone: 17.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.519497-03:00 IspConfig named[314918]: automatic empty zone: 18.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.520152-03:00 IspConfig named[314918]: automatic empty zone: 19.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.520765-03:00 IspConfig named[314918]: automatic empty zone: 20.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.522750-03:00 IspConfig named[314918]: automatic empty zone: 21.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.523326-03:00 IspConfig named[314918]: automatic empty zone: 22.172.IN-ADDR.ARPA
    2023-08-17T19:15:34.523883-03:00 IspConfig named[314918]: automatic empty zone: 23.172.IN-ADDR.ARPA
    ...
    ...
    2023-08-17T19:15:34.591195-03:00 IspConfig named[314918]: automatic empty zone: 254.169.IN-ADDR.ARPA
    2023-08-17T19:15:34.591768-03:00 IspConfig named[314918]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    2023-08-17T19:15:34.592314-03:00 IspConfig named[314918]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
    2023-08-17T19:15:34.595295-03:00 IspConfig named[314918]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
    2023-08-17T19:15:34.595815-03:00 IspConfig named[314918]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    2023-08-17T19:15:34.596500-03:00 IspConfig named[314918]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    2023-08-17T19:15:34.597279-03:00 IspConfig named[314918]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    2023-08-17T19:15:34.597997-03:00 IspConfig named[314918]: automatic empty zone: D.F.IP6.ARPA
    2023-08-17T19:15:34.599056-03:00 IspConfig named[314918]: automatic empty zone: 8.E.F.IP6.ARPA
    2023-08-17T19:15:34.601672-03:00 IspConfig named[314918]: automatic empty zone: 9.E.F.IP6.ARPA
    2023-08-17T19:15:34.602168-03:00 IspConfig named[314918]: automatic empty zone: A.E.F.IP6.ARPA
    2023-08-17T19:15:34.602851-03:00 IspConfig named[314918]: automatic empty zone: B.E.F.IP6.ARPA
    2023-08-17T19:15:34.605396-03:00 IspConfig named[314918]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    2023-08-17T19:15:34.606457-03:00 IspConfig named[314918]: automatic empty zone: EMPTY.AS112.ARPA
    2023-08-17T19:15:34.607144-03:00 IspConfig named[314918]: automatic empty zone: HOME.ARPA
    2023-08-17T19:15:34.607764-03:00 IspConfig named[314918]: configuring command channel from '/etc/bind/rndc.key'
    2023-08-17T19:15:34.608452-03:00 IspConfig named[314918]: command channel listening on 127.0.0.1#953
    2023-08-17T19:15:34.609279-03:00 IspConfig named[314918]: configuring command channel from '/etc/bind/rndc.key'
    2023-08-17T19:15:34.612315-03:00 IspConfig named[314918]: command channel listening on ::1#953
    2023-08-17T19:15:34.613345-03:00 IspConfig named[314918]: managed-keys-zone: loaded serial 8
    2023-08-17T19:15:34.613782-03:00 IspConfig named[314918]: zone 255.in-addr.arpa/IN: loaded serial 1
    2023-08-17T19:15:34.616113-03:00 IspConfig named[314918]: zone 0.in-addr.arpa/IN: loaded serial 1
    2023-08-17T19:15:34.629096-03:00 IspConfig named[314918]: zone localhost/IN: loaded serial 2
    2023-08-17T19:15:34.638299-03:00 IspConfig named[314918]: zone 127.in-addr.arpa/IN: loaded serial 1
    2023-08-17T19:15:34.641550-03:00 IspConfig named[314918]: all zones loaded
    2023-08-17T19:15:34.657095-03:00 IspConfig systemd[1]: Started named.service - BIND Domain Name Server.
    2023-08-17T19:15:34.661152-03:00 IspConfig named[314918]: running
    2023-08-17T19:15:34.796769-03:00 IspConfig named[314918]: managed-keys-zone: Key 20326 for zone . is now trusted (acceptance timer complete)

    Did I do something wrong? What else do I need to do?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    My signature has link to name service setup tutorial, it has info on how to troubleshoot. Use that.
    And: Please post code and listings in CODE tags.
    I suspect there is error in zone data, but can not say which error. checkzone should give more info.
     
    ahrasis likes this.
  3. bmeirelles

    bmeirelles New Member

    Hello taleman, good morning. Sorry for the delay.

    You're right, the error was in the dns template I made.

    I should buy the manual next month when I get my salary.

    For now, I'm studying and taking tests.

    I created 2 free vps in the oracle cloud and routed these fixed ips to a virtual machine in my house with ispconfig.

    If all goes well, at the end of the year I will cancel my hostgator account.

    Thanks a lot for the help
     
    Th0m likes this.

Share This Page