This is my zone file:
$ORIGIN .
$TTL 10800 ; 3 hours
example.com IN SOA ns1.example.com. email.example.com. (
25 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS ns1.example.com.
NS ns2.example.com.
A 192.0.2.1
MX 10 mail.example.com.
$ORIGIN example.com.
ftp CNAME example.com.
mail A 192.0.2.1
ns1 A 192.0.2.1
ns2 A 192.0.2.1
www CNAME example.com.
Is it possible ns1.example.com
be 192.0.2.1 but example.com
be 192.0.2.2 ? (without using another DNS server on 192.0.2.2)
How I can do that?
The
example.com. IN A
can certainly point to any IP address other than the IP addresses of your authoritative name servers. However, you should still have at least two different name servers on separate networks. This comes from IANA's Technical requirements for authoritative name servers: