Anand Buddhdev
anandb at ripe.net
Mon May 7 13:57:12 UTC 2012
On 07/05/2012 15:29, hugo hugoo wrote:
Hi Hugo,
> I have the following situation in my zone migration for one server
> (A) to another server (B)
>
> The zone is called toto.be and contains the following record:
>
> www.toto.be 86400 IN CNAME www.titi.be
>
> ==> the zone titi.be is in the same server (A) but is not transferred
> to the server (B).
>
>
> If I do a dig @SERVER(A) www.toto.be ==> I receive the IP
> corresponding to www.titi.be
This works, because server A knows about both zones, so it can return
the IP address out of zone titi.be.
> If I do a dig @SERVER(B) www.toto.be ==> I do not receive the IP
> corresponding to www.titi.be
Server B does not know about titi.be, so it cannot provide the IP address.
> - Is this situation due to the fact that dig always and only contacts
> the server mentionned in the command ?
When you run dig like this, it sends one query to a server, and shows
you the response. The dig command does not do recursive resolution.
> - Does the titi.be and toto.be be on the same server to correctly use
> CNAMES?
No. A recursive DNS resolver will be able to follow the CNAME chain from
server B back to A to look up records in titi.be.
Regards,
Anand Buddhdev
RIPE NCC
More information about the bind-users
mailing list