| Domain | IP Address |
|---|---|
| example.com | 192.168.0.1 |
| store.example.com | 192.168.0.2 |
| secure.example.com | 192.168.0.3 |
| Nameserver | |
| ns1.example.com | |
| ns2.example.com |
0.168.192, dropping the last octet in the IP address. This is because the last octet will be specified within the zone file.
0.168.192.in-addr.arpa file, you'll need to specify the reverse DNS information using pointer records (PTR). The content of the file should resemble the following:
#######
@ IN SOA ns1.example.com. host.example.com. (
2009080505 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)
0.168.192.in-addr.arpa. IN NS ns1.example.com.
0.168.192.in-addr.arpa. IN NS ns2.example.com.
1 IN PTR example.com.
2 IN PTR store.example.com.
3 IN PTR secure.example.com.
########
| example.com | store.example.com secure.example.com |
ns1.example.com | ns2.example.com | host.example.com |
|---|---|---|---|---|
| Primary domain | Dedicated Subdomains | Primary Nameserver Domain | Secondary Nameserver Domain | Server's Hostname |
1, 2, and 3 are being used to specify the final octet of the IP address that corresponds to the appropriate domain and subdomains.
Once you are done configuring the rDNS zone file, remember to increment the serial number to save your changes. Failing to increment your serial number will result in your changes being ignored.
named.conf knows that it should be included in your BIND configuration. To do this, you'll need to know the location of named.conf.
named.conf file, you'll need to add the following:
Primary DNS Server
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa";
allow-update { none; };
};
Secondary DNS Server
zone "0.168.192.in-addr.arpa" IN {
type slave;
file "0.168.192.in-addr.arpa";
allow-update { none; };
};
named.conf, you'll need to restart BIND. To do so, run the following script:
192.168.0.1 is meant to represent the IP address that corresponds to the domain, subdomain, or addon domain name for which you have configured rDNS.
If rDNS is properly configured, you will see a message similar to the following:
1.0.192.168.in-addr.arpa domain name pointer example.comIf rDNS is not properly configured, you will see the following message:
Host 1.0.192.168.in-addr.arpa. not found: 3(NXDOMAIN)
Copyright © cPanel 2000-2009.