How to Point a Domain to a VPS IP Address - WP-Tweaks (2024)

When you buy a VPS server, you can access it with an IP address. This tutorial will show you how to access the server with a domain name instead. While this example uses Bluehost as a registrar, you can adapt the instructions to any registrar like GoDaddy or Namecheap.

Table of Contents

Setup: Domain Points to Something Else

Say you have a DigitalOcean VPS and an IP address to access it. For example, I’ve just set up Apache on a server with the IP address:

206.189.233.82

I can access it in the browser via the IP like this:

How to Point a Domain to a VPS IP Address - WP-Tweaks (1)

For this example article, I have a domain name with Bluehost, which comes free with every plan – here’s the best Bluehost discount for hosting. Currently, the domain is “testbluehostaccount.com” and it points to a WordPress installation on Bluehost’s servers:

How to Point a Domain to a VPS IP Address - WP-Tweaks (2)

In this situation, I have:

  1. VPS Hosting with DigitalOcean – IP address 206.189.233.82
  2. Domain hosting with Bluehost as the domain registrar

I want to point the domain “testbluehostaccount.com” to my VPS server at DigitalOcean.

Steps to Point a Domain to Your VPS IP Address

Here’s a step-by-step tutorial on how to do it.

1: Find the Zone Editor with your Domain Registrar

First, log into your domain registrar’s dashboard. This will be different for each registrar. GoDaddy, Namecheap, etc., all have their own interfaces. But they should be pretty easy to find. Most of them have a “Domains” section, under which they keep the zone editor.

For Bluehost, well, you can find it under “Domains” like this:

How to Point a Domain to a VPS IP Address - WP-Tweaks (3)

This will take you to the page where you can choose which domain you want to edit. If you have just one domain (like I do), there’ll be just one choice in the dropdown box:

How to Point a Domain to a VPS IP Address - WP-Tweaks (4)

Choose the domain that you want to point to your VPS.

2: Edit the Zone File Records

We need to change the “A” record in the zone file editor to point the domain to our VPS. The settings are:

  1. Host Record Name: @, or the domain name itself
  2. Record Type: A
  3. Points to: 206.189.233.82 (or your VPS IP)

You probably already have a record in your zone file editor pointing the domain to some other IP address like this:

How to Point a Domain to a VPS IP Address - WP-Tweaks (5)

Don’t create a new zone record! Modify the existing one instead. As you can see with Bluehost, you can click the gear icon on the right-hand side to edit it. The “@” is a wildcard for the domain name itself. Most hosts support it, and it’s easy to remember. Enter the IP address of your new VPS server instead, and save your changes:

How to Point a Domain to a VPS IP Address - WP-Tweaks (6)

What About the Other DNS A Records?

A DNS zone file will likely contain many other records, not just one “A” record. The others are for specific subdomains. If you want each of these subdomains to point to your VPS server, change the IP address for each. A few common subdomains are:

  • mail
  • webdisk
  • ftp
  • etc etc..

The “CNAME” records are alias records, and they tell the DNS server which names are equivalent. So the “www” CNAME entry points to the domain name itself, and so on. You shouldn’t need to change CNAME records unless you know what you’re doing.

3: Verifying that the Zone Record Has Changed

Once you’ve saved your new IP address in the zone record, you can verify that it’s changed on that particular name server like this.

Get the Nameservers of your Registrar

Your registrar will typically have two nameservers. With Bluehost, you can get the details by clicking “Domains”, and then choosing the “name servers” tab, as shown here:

How to Point a Domain to a VPS IP Address - WP-Tweaks (7)

The two name servers for Bluehost are:

  • ns1.bluehost.com
  • ns2.bluehost.com

These will be different for each domain registrar.

4: Verify the Modified “A” Record

In Windows, open the command line and enter the following:

nslookup [your_domain_name] [nameserver]

So for me, the command looks like this:

nslookup testbluehostaccount.com ns1.bluehost.com

If you’ve changed the records correctly, the output should tell you that your domain is now pointing to the VPS IP address, as shown here:

How to Point a Domain to a VPS IP Address - WP-Tweaks (8)

Your work is done.

5: Waiting for the Changes to Propagate

Unfortunately, you might still be unable to access your VPS with the domain name immediately. DNS changes take time to propagate to all the other DNS servers worldwide. With this tool, you can track the propagation status of DNS servers worldwide.

As you can see below, some servers have received the new IP address, and others have not:

How to Point a Domain to a VPS IP Address - WP-Tweaks (9)

If your browser or machine queries a DNS server that has been updated, you’ll see the new site when you type in your domain name like this:

How to Point a Domain to a VPS IP Address - WP-Tweaks (10)

Keep in mind that some browsers, routers, and even ISPs cache DNS queries, and this can make it difficult to get updated results. There’s not much you can do other than be patient.

Do I Buy SSL from my Hosting Provider or the Domain Registrar?

You should be able to get free SSL from your hosting service. These days, no one needs to pay for SSL anymore, and SiteGround, Bluehost, and Hostgator all provide free Let’s Encrypt certificates. All except GoDaddy!

And that’s it. You’ve successfully modified your DNS zone records to point a domain name at your VPS server, and now you can access it by typing in your domain name instead of with an IP address!

How to Point a Domain to a VPS IP Address - WP-Tweaks (2024)
Top Articles
Is the Chase Sapphire Reserve Worth It? | Bankrate
Market Competition | Povertycure
Bild Poster Ikea
Angela Babicz Leak
Identifont Upload
Kokichi's Day At The Zoo
Mopaga Game
DL1678 (DAL1678) Delta Historial y rastreo de vuelos - FlightAware
Sportsman Warehouse Cda
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
The Powers Below Drop Rate
Music Archives | Hotel Grand Bach - Hotel GrandBach
Wildflower1967
Teenleaks Discord
Committees Of Correspondence | Encyclopedia.com
Nail Salon Goodman Plaza
Sadie Proposal Ideas
Cta Bus Tracker 77
VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
I Saysopensesame
Fsga Golf
Between Friends Comic Strip Today
Ecampus Scps Login
Pensacola Tattoo Studio 2 Reviews
Cars & Trucks - By Owner near Kissimmee, FL - craigslist
Alternatieven - Acteamo - WebCatalog
Hannah Jewell
Lawrence Ks Police Scanner
Productos para el Cuidado del Cabello Después de un Alisado: Tips y Consejos
Craigslist Cars And Trucks Mcallen
What does wym mean?
Devargasfuneral
Homewatch Caregivers Salary
Gasbuddy Lenoir Nc
What Happened To Father Anthony Mary Ewtn
Pickle Juiced 1234
Linabelfiore Of
Skill Boss Guru
Claim loopt uit op pr-drama voor Hohenzollern
Eastern New Mexico News Obituaries
Temu Y2K
Stewartville Star Obituaries
Citymd West 146Th Urgent Care - Nyc Photos
How To Get To Ultra Space Pixelmon
Bridgeport Police Blotter Today
City Of Irving Tx Jail In-Custody List
Gear Bicycle Sales Butler Pa
Strange World Showtimes Near Atlas Cinemas Great Lakes Stadium 16
Sam's Club Fountain Valley Gas Prices
How to Get a Check Stub From Money Network
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5786

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.