Here is the thing... Mite seem a lilttle confusing but here it is.
i have a DNS server hosted by Hurricane Electric.
so server.mydomain.com resolves to the WAN IP address of my home internet connection say
200.200.200.200
recenly i set up a local DNS at my home { mainly for resolving internal machines }
the domain is <machine>.hme.mydomain.com
it works fine. { The Hurricane Name server has no information about my home DNS Server. }
What i want here is that if i am at home and using the internal DNS server
it should resolve server.mydomain.com to my internal IP address & not the WAN IP addresses.
But that is not the behaviour i got ..
so if i say server.hme.mydomain.com it does resolve to
the internal ip of 192.168.0.5
& server.mydomain.com resolves to 200.200.200.200.
i added a CNAME entry in my zone file. & a PTR entry in the reverse file but it doesnt seem to work.. any clues..
Zone File :
server.hme.mydomain.com IN 1H A 192.168.0.5
server.mydomain.com IN 1H CNAME server.hme.netenrich.com
Reverse :
5 PTR server.hme.mydomain.com.
5 PTR server.mydomain.com.
Is there any way i can get this done .. ?