Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up a new server (Ubuntu server) (own IP) and now I need to redirect my domain to that server. How??

The domain provider (separate from server provider and separate from my isp) controls the DNS because I didn't change the nameserver. (Thats true right?? Nameserver points to same guys that sold me domain so that's where I configure the DNS?)

The DNS is directed to my new server's IP (2 A records I think, the rest is "@").

For some reason the domain still points to the old server. I changed the DNS records well over 24 hours ago and now their TTL is 1 minute.

What am I missing here? Does /etc/resolv have anything to do with it? Before I edited it, it was invalid (invalid syntax, according to $ nslookup).

I'm not a complete n00b =) but I am rather new to nameservers, DNS and (linux) networking.

share|improve this question
The nameservers for the domain need to point to valid servers that hold your DNS records. You would configure the DNS entries there. – echarnley Apr 5 '11 at 21:24
Resolved! The problem was the nameservers. The domain registrar didn't save the correct nameservers. – Rudie Apr 7 '11 at 10:30
up vote 1 down vote accepted

The DNS records are normally served by a DNS server belonging to the company that sold you the domain. The NS records for your domain should point to their DNS nameservers. If your domain is and the domain company's nameservers are at and, your domain company will have set up these records (at the top-level nameservers) IN NS IN NS

If your new Ubuntu server has IP-address and you wish to host on it. You should use the domain company's control-panel (or other mechanism they provide) to set up DNS records at the domain company's DNS servers ( and IN A

On your Ubuntu server, resolv.conf should point at the DNS servers for the Internet Service Provider (ISP) that provides you with internet access (e.g. broadband) - This can be unrelated to any of the servers or businesses mentioned above.

Other sources of information:

share|improve this answer
I only have A, MX and CNAME records in my DNS panel. No NS... * and www and vps01 (all A type) point to new server's IP... Can I test the resolve somehow? That the right DNS settings are used? – Rudie Apr 5 '11 at 21:51
Do you change the nameservers to be used in the same DNS table?? The old server does have NS records (pointing to the 'old' server provider). – Rudie Apr 5 '11 at 21:53
The NS records I mentioned are not at your domain company's nameservers, they are at the root nameservers as part of the "COM" zone. The NS records delegate management of the to your domain company. Try host -v -t NS (replacing with your domain). – RedGrittyBrick Apr 5 '11 at 21:57
$ host -t NS domain returns the correct three nameservers... Is there something I have to (un)set (up) on the old server?? (That would be weird.) – Rudie Apr 5 '11 at 22:01
Nameservers hold the DNS records (MX, PTR, A, CNAME, etc), they wont be a part of them, you'll change them somewhere in the settings for the domain from the registrar. – MaQleod Apr 5 '11 at 22:01

You must log in to answer this question.

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