Answer the question
In order to leave comments, you need to log in
DNS (named setting). All subdomains to the first IP, one subdomain to the second
We need to make sure that for all subdomains the first IP is returned, but for a special subdomain the second one is returned. How to implement it correctly?
Current config:
Need ns2.example.com to return IP 192.168.1.2.
$TTL 1h
@ IN SOA ns1.example.com. admin.example.com. (2011050901 1h 15m 1w 1h)
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
@ IN A 192.168.1.1
* IN A 192.168.1.1
Answer the question
In order to leave comments, you need to log in
$TTL 1h
@ IN SOA ns1.example.com. admin.example.com. (2011050901 1h 15m 1w 1h)
@ IN NS ns1.example.com.
@ IN NS ns2.example.com.
@ IN A 192.168.1.1
ns2 IN A 10.10.10.10
* IN A 192.168.1.1
Most-specifity will work.
The name-address binding for ns2 is better defined than the asterisk, so it will take
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question