Score:0

how to make domain have www using bind

mx flag

Hello I currently was making a private dns server using bind and my lookup works perfectly using host.yoursenecaid.ops but how can I change it to www.yoursenecaid.ops , I am kinda new to bind and having issues , I will link all my files at the bottom :)

//var/named/...

$TTL    3D //forward look up zone
@       IN      SOA     host.yoursenecaid.ops.      hostmaster.yoursenecaid.ops.(
                2018042901       ; Serial
                8H      ; Refresh
                2H      ; Retry
                1W      ; Expire
                1D      ; Negative Cache TTL
);
@       IN      NS      host.yoursenecaid.ops.
host    IN      A       192.168.XX.1

/etc/named.conf

options {
        directory "/var/named/";
        allow-query {127.0.0.1; 192.168.XX.0/24;};
        forwarders { 208.67.222.222; }; # This one works at home
        #forwarders { 10.102.100.21; }; # This one works at Seneca
};
zone "localhost" {
        type master;
        file "named.localhost";
};
zone "yoursenecaid.ops" {
        type master;
        file "mydb-for-yoursenecaid-ops";
};
zone "XX.168.192.in-addr.arpa." {
        type master;
        file "mydb-for-192.168.XX";
};

//var/named

  $TTL    3D
@       IN      SOA     host.yoursenecaid.ops.      hostmaster.yoursenecaid.ops.(
                2018042901       ; Serial
                8H      ; Refresh
                2H      ; Retry
                1W      ; Expire
                1D      ; Negative Cache TTL
);
@       IN      NS      host.yoursenecaid.ops.
1       IN      PTR     host.yoursenecaid.ops.
Score:0
cn flag
raj

You should add to your first file (I assume it's the file mydb-for-yoursenecaid-ops) a record for the hostname www. It can either be a CNAME record pointing to host.yoursenecaid.ops or another A record, similar to the one you have for host, but using the name www instead of host. So add either

www     IN      CNAME   host

or

www     IN      A       192.168.XX.1

You also need to increment your serial in SOA record and reload BIND (usually this is done by rndc reload) after you do this change.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.