A domain is pointed at a server with DNS records, and directories keep the old answer until its TTL runs out. Point your own domain at your own server.