I am trying to add a CNAME record to point to an ip address. I have added the CNAME record to the primary DNS server that looks like this:

foobar Alias(CNAME)

I restarted the DNS server service. When I ping the new name I get the following:


ping foobar

Pinging [] with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I have no idea where it is getting the address.

nslookup returns:


nslookup foobar

Server: 1server




Aliases: foobar


1server is the machine with the DNS server service.

1 Answer 1


You should set a CNAME to point to the host name defined in the ADDRESS (A) record of the target host instead of the IP. So whatever hostname is is what goes in the record, not the IP.

foobar Alias(CNAME) targetmachine

  • I do not have a A record for the machine. It is not part of the Domain.
    – Tony
    Sep 17, 2009 at 14:37
  • It doesn't have to be part of your domain. It just has to be resolvable. In that case, though, you'd put the fully-qualified domain name in the CNAME record.
    – squillman
    Sep 17, 2009 at 14:59
  • I added a A record for the machine with the IP address I then pointed the CNAME to the new host record and that works.
    – Tony
    Sep 17, 2009 at 15:04
  • Good deal :)
    – squillman
    Sep 17, 2009 at 15:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .