Linking IP to a domain name

Emar asked:

This is a really newbie question but I need to ask in order to solve a doubt.

My situation is the classical one: I bought a domain name and I want to link it to an IP address. The easiest thing in the world (I believed).

I configured my DNS records in this way:

        IN NS
        IN NS
        IN A
www     IN CNAME

Well, it doesn’t work! Also if I check by running the dig command will return this:

;          IN  A

;; ANSWER SECTION:       74271   IN  A

How is possible?

I thought the problem was that on IP is running a TeamSpeak server and not a web server and then I tried to put the IP but doesn’t work at all.

Am I making any mistakes?

Thanks for help

My answer:

The DNS server you queried cached the old record for an unusually long amount of time.

You can see that the cached record has 74271 seconds (about 20 hours 37 minutes) remaining before it expires. After that time, the DNS server will try your server again and get your new record.

Interestingly, I noted that the TTL for your new records is 21600 seconds (6 hours).

;; ANSWER SECTION:       21600   IN      CNAME           21600   IN      A

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.