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     dns104.ovh.net.
        IN NS     ns104.ovh.net.
        IN A      95.141.40.2
www     IN CNAME  emarhost.net.

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

;; QUESTION SECTION:
;emarhost.net.          IN  A

;; ANSWER SECTION:
emarhost.net.       74271   IN  A   213.186.33.5

How is possible?

I thought the problem was that on IP 95.141.40.2 is running a TeamSpeak server and not a web server and then I tried to put the google.com 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:
www.emarhost.net.       21600   IN      CNAME   emarhost.net.
emarhost.net.           21600   IN      A       95.141.40.2

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.