I need to configure an contos7 DNS server. We need to do with BIND. To check if the server works I need to ping my DNS server on the address svr1.breda.ikdoeict.

This is the configuration of /var/named/breda.ikdoeict

@       IN SOA  @ breda.ikdoeict. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
        IN      NS      @
@       IN      A
srv1    IN      A
www     IN      CNAME   srv1

this is the configuation of /etc/named.conf

options {
        listen-on port 53 {;; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        recursing-file  "/var/named/data/named.recursing";
        secroots-file   "/var/named/data/named.secroots";
        allow-query     { localhost;; };
        forwarders      {;;};

        recursion yes;

        dnssec-enable no;
        dnssec-validation no;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";

        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;

zone "." IN {
        type hint;
        file "named.ca";

zone "breda.ikdoeict" IN{
        type master;
        file "breda.ikdoeict";

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key"

Here you can see I added the DNS to my client

student@student-ubuntu:~$ nmcli device show ens160 | grep IP4.DNS

when I trie to ping svr1.breda.ikdoeict it gives unknown host.

  • are you sure that you are using this domain name server to resolve domain names?
    – asdmin
    Apr 9 '19 at 14:32

Check that the resolv.conf file on the client system you are pinging from is configured with suitable nameserver directives and that the specified name servers are accessible from your client.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.