Hi,
The zone name in named.conf is wrong (
www.vinita.com instead of vinita.com). So you need:
Code:
...
zone "vinita.com" {
type master;
file "www.vinita.com.zone";
allow-transfer {any ;};
};
The last reverse zone (zone "0.168.192.in-addr") definition is wrong and it's not needed at all.
Re: zone files, in reverse zone you miss:
Code:
$TTL 86400
@ SOA www.vinita.com. root.www.vinita.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS www.vinita.com. ;miss the trailing dot here
254 IN PTR www.vinita.com.
1 IN PTR client1.vinita.com.
2 IN PTR client2.vinita.com.
In forward zone:
Code:
$TTL 86400
@ SOA www.vinita.com. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ NS www.vinita.com.
@ MX 10 www.vinita.com. ;Use @ or vinita.com.
@ NS client1.client.com.
client1 A 192.168.0.1
client2 A 192.168.0.2
www A 192.168.0.254
Don't forget to increase the serial after changing the zone files and then reload/restart named.