I have a dedicated server running on subdomain. I want to configure subdomains as DNS. Basically, I use example.com as my main company domain.
I will, probably have more than one dedicated server and want them to be s1
, s2
etc.
I redirected server.example.com
to another DNS provider via NS entries
server.example.com NS ns1.hostingcompany.example.com
server.example.com NS ns2.hostingcompany.example.com
And there I setup following entries:
servers.example.com NS ns1.hostingcompany.example.com.
servers.example.com NS ns2.hostingcompany.example.com.
s1.servers.example.com NS ns1s1.servers.example.com.
s1.servers.example.com NS ns2s1.servers.example.com.
ns1s1.servers.example.com A 192.0.2.1
ns2s1.servers.example.com A 192.0.2.2
s1.servers.example.com A 192.0.2.1
But, servers.example.com
does not have A record. I skipped it, as I wanted only to use it as grouping DNS entry.
Everything seems to work, except my local bind server in company. It does not recognize s1.servers.example.com
and any of subdomains. When I switch to google DNS it seems to work fine.
Question is, if this setup is proper and will work?
Note: Maybe I don't understand how NS entries work, as far as I understand is when NS server exists in domain entry, pointing to other DNS server it's considered "Don't ask me, ask another server" and A records are not needed in this chain.