I know this is a general question but I tried a lot of solutions without any success.
What I want to do is to create a custom nameserver like ns1.example.com/ns2.example.com
I tried bind9 but I always get "Nameserver is not authoritative for example.com"
I did multiple configurations and the same error I even tried with CWP7.
zone "example.com" {
type master;
file "/etc/bind/db.example.com";
};
zone "159.223.120.in-addr.arpa" {
type master;
file "/etc/bind/db.159";
};
the db.example.com
$TTL 604800
@ IN SOA localhost. root.localhost. (
300 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
@ IN A xxx.xxx.xxx.xxx
@ IN AAAA ::1
ns1 IN A xxx.xxx.xxx.xxx
ns2 IN A xxx.xxx.xxx.xxx
Is there a link or something that would be helpful?