iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
To connect a domain to WordPress on a VPS, point the domain’s DNS records to the VPS’s stable public IP, configure the VPS web server to answer both the root and www hostnames, set WordPress’s canonical URL, and then issue a TLS certificate. DNS only directs visitors to the server; Nginx or Apache still has to select the correct WordPress files.
This guide assumes WordPress, PHP, a database, and a web server are already installed on a Linux VPS. The exact control-panel labels, file paths, firewall commands, and configuration syntax depend on your distribution, provider, and whether you use Nginx or Apache.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWhat you need before changing DNS
Have these items ready before editing the domain:
- A WordPress installation that works locally through the VPS’s existing address or temporary hostname.
- A public, stable IPv4 address for the VPS.
- Access to the authoritative DNS host. This may be your registrar, a separate DNS provider, or a hosting control panel.
- Administrative access to the VPS so you can edit the Nginx server block or Apache virtual host, reload the service, and open ports 80 and 443 if necessary.
- The final hostname you want visitors and search engines to use: either the apex form such as
example.comor thewwwform such aswww.example.com.
Reserve a permanent address
Do not point DNS at an address that can change when the VPS stops, starts, or is rebuilt. If your provider assigns ephemeral addresses, reserve an Elastic IP or equivalent first. A DNS record associates a domain or subdomain with an IP address or hostname; if that address changes, visitors can be sent to the wrong server until you update DNS and caches expire.
Identify the authoritative DNS host
Make changes where the domain’s active nameservers are hosted, not necessarily where the domain was purchased. A registrar can sell the domain while another company answers DNS queries. If you edit records in the wrong dashboard, public lookups will not change.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
Back up the existing DNS zone
Before adding or deleting anything, export the zone or copy every current record to a dated text file. Include record type, name, value, priority, and TTL. This backup is especially important when the domain already handles email, an online shop, an application, verification records, or other subdomains.
Preserve MX records and their priorities, TXT records used for email authentication or service verification, and any existing records for mail, shop, app, API, staging, or other hosts. The safest change is normally to add or edit only the web records rather than replacing the entire zone.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choose between changing nameservers and editing records
Change nameservers when the domain is dedicated to this site
Changing nameservers delegates the whole DNS zone to a new DNS or hosting provider. That can simplify management when the domain has no email or other services and the new provider supplies all required records automatically. Delegation affects every hostname under the domain, so confirm the new zone contains anything you still need before switching.
Edit individual records when other services must remain online
Leave the current nameservers in place when email, a store, an app, or unrelated subdomains already use the domain. Add the VPS web records at the current authoritative DNS host and leave the other records untouched. WordPress guidance identifies this record-editing approach as the safer option for an active domain with existing services.
| Approach | What changes | Best fit |
|---|---|---|
| Nameserver delegation | The entire DNS zone moves to another provider | A domain used only for the new website, with no records that need to stay at the current provider |
| Individual record edits | Only the web hostnames are pointed at the VPS | A domain that must keep existing email, applications, stores, or subdomains working |
Add the DNS records for the VPS
Create the apex A record
At the authoritative DNS host, create an A record for the root or apex name. Most interfaces display the name as @, an empty field, or the domain itself. Set its value to the VPS public IPv4 address.
Create the www alias
Create a CNAME record named www whose target is the apex domain, for example example.com. Some providers require a trailing dot or automatically append the domain; follow that provider’s format. If the provider gives exact records for a managed setup, use those values instead of the illustrative pattern below.
| Type | Name | Value | Illustrative TTL |
|---|---|---|---|
| A | @ |
203.0.113.10 |
3600 seconds |
| CNAME | www |
example.com |
3600 seconds |
The address 203.0.113.10 is an example only; replace it with your VPS address. A 3600-second TTL is an illustrative value, not a requirement. Lowering a TTL before a planned migration can make caches expire sooner, but it does not force every resolver to refresh immediately.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Check for an interfering AAAA record
An AAAA record sends IPv6 visitors to an IPv6 address. If an old AAAA record points to another server, some visitors can see a different site even though the A record is correct. Remove or update the obsolete AAAA record only after confirming that the replacement server has working IPv6. Do not delete a valid IPv6 configuration just because the VPS also has IPv4.
Do not overwrite mail and service records
Adding only an A record and a CNAME should not affect mail. Replacing the zone with a two-line web-only zone can stop mail delivery and break verification services. Compare the edited zone with your backup before saving.
Wait for DNS propagation and verify it
DNS resolvers cache answers according to TTL, and nameserver changes can take up to 72 hours to be visible everywhere. Record edits often appear sooner, but timing varies by provider and by resolver cache. Do not keep changing records simply because one network still shows the old address.
Free tools Windows power users keep installed
One-click scans. No signup required.
Use dig from more than one network
From a workstation or shell, run:
dig example.com +short
dig www.example.com +short
The apex lookup should return the VPS IPv4 address. The www lookup may display the CNAME target first and then the resulting address, depending on the resolver. Repeat from another network, such as a mobile connection, if local caching is suspected.
Confirm the authoritative answer when results disagree
If a lookup still returns an old address, verify that you edited the authoritative DNS host and that the record name is correct. A stale answer usually means TTL or propagation delay; an unchanged answer from every network usually means the wrong zone was edited or another record, such as AAAA, is taking precedence for some clients.
Configure Nginx or Apache for both hostnames
DNS gets a request to the VPS, but the web server decides which site files to serve. Configure the existing web server only after DNS points to the machine. Your virtual host or server block must include both the apex and www names, use the WordPress document root, and send PHP requests to the installed PHP-FPM service.
Nginx server block requirements
- Set the host list to include
example.comandwww.example.com. - Set the root directive to the directory containing
wp-admin,wp-content, andwp-includes. - Use the PHP-FPM socket or upstream appropriate to your installed PHP version.
- Use a WordPress front-controller rule so requests that are not physical files are passed to
index.php. - Enable the site, disable or supersede the default site if it captures the request, validate the configuration, and reload Nginx.
Configuration file names and PHP-FPM socket paths differ between distributions. Copy the syntax used by your operating system’s package and WordPress image rather than pasting a command intended for a different release.
Recommended Free Tools
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Apache virtual host requirements
- Set
ServerNameto the canonical hostname andServerAliasto the alternate hostname. - Point
DocumentRootat the WordPress directory. - Enable the rewrite functionality required by WordPress permalinks and allow the site’s
.htaccessrules when your installation uses them. - Pass PHP to the PHP handler configured by your distribution.
- Enable the site, test the configuration, and reload Apache.
Recognize the default-page symptom
If the browser shows the web server’s default page, DNS is probably reaching the VPS but the hostname does not match the intended virtual host or server block. Check that both names are spelled correctly, the site is enabled, the document root is correct, and the service was reloaded after editing.
Set WordPress’s canonical address
WordPress stores two related values: WordPress Address (URL), which identifies the installation, and Site Address (URL), which identifies the public site. Set both consistently to the final HTTPS hostname you selected:
https://example.com, if the apex is canonical; orhttps://www.example.com, ifwwwis canonical.
Do not set one value to the apex and the other to www unless you deliberately understand the resulting behavior. A mismatch can create redirect loops, login failures, or links that switch hostnames.
Change the values through the dashboard
- Sign in to WordPress administration.
- Open Settings and then General.
- Change WordPress Address (URL) and Site Address (URL) to the same final HTTPS hostname.
- Save the changes, then test an incognito browser window and the login URL.
Make this change only when the web server already answers the selected hostname. If you change the address too early, the dashboard can become inaccessible.
Recover from an inaccessible dashboard
If the URL change locks you out, restore the previous values through the database or the site’s configuration file using the recovery procedure documented for your hosting image. The exact SQL, file path, and syntax vary by distribution and installation, so there is no single command that is safe to present as universal. Take a database backup before making a recovery edit.
Issue and install HTTPS after DNS works
Request a certificate only after both hostnames resolve to the VPS and the web server answers them. A certificate authority must be able to validate control of the names. Obtain a Let’s Encrypt certificate or another trusted certificate covering the hostname you will publish and its alternate, then install the complete certificate chain in the TLS configuration.
Prepare validation
- Confirm that the apex and
wwwresolve to this VPS. - Allow inbound TCP traffic on ports 80 and 443 through the VPS firewall and any provider firewall.
- Remove conflicting AAAA records or point them to the same server.
- Check for restrictive CAA records that do not authorize the certificate authority you selected.
Configure TLS and redirects
Install the certificate and private key according to your web server’s security documentation. For Nginx, configure the TLS server block with the full certificate chain; for Apache, configure the corresponding SSL virtual host and chain file. Keep an HTTP listener available long enough to answer the certificate challenge and then redirect HTTP requests to the canonical HTTPS URL.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Redirect the noncanonical hostname to the canonical one as well. For example, if the apex is canonical, redirect both http://www.example.com and https://www.example.com to https://example.com. Ensure the redirect rules do not send the canonical URL back to itself.
Test the completed connection
- Open the apex over HTTP and HTTPS.
- Open the
wwwhostname over HTTP and HTTPS. - Confirm that the chosen canonical form remains in the address bar and that the alternate form redirects once to it.
- Sign in to the WordPress dashboard, open several posts, and upload or view a media item.
- Inspect the browser developer tools for certificate errors, redirect loops, and mixed-content warnings.
- Send a test email to and from an address on the domain if the site uses domain email.
- Check important subdomains and application endpoints that were present in the DNS backup.
Mixed-content warnings usually mean that images, scripts, stylesheets, or stored links still use http://. Update those references with a WordPress-aware migration method and take a backup first; do not blindly replace text in the database without accounting for serialized data.
Diagnose common failures
dig returns the old address
Wait for the record’s TTL and broader propagation period, then confirm that the edit was made at the authoritative DNS host. Check both A and AAAA records. If only one network is stale, its resolver cache has not expired.
The apex works but www fails
Verify that a www CNAME exists and targets the intended apex. Then add both names to the Nginx server block or Apache virtual host and include both names on the certificate. A correct CNAME alone cannot fix a web server that does not recognize the hostname.
The default Nginx or Apache page appears
The request reached the VPS, but the hostname selected the default site. Check the host-name directives, enabled-site links, document root, and service reload. Also verify that another server block is not marked as the default for that address.
Certificate issuance fails
Run fresh DNS lookups, check ports 80 and 443 at both the VPS and provider firewall, inspect AAAA records, and review CAA restrictions. The certificate request must validate every hostname included in the request.
Email stopped after the website change
Restore the MX, TXT, and any mail-related records from the backup. Do not replace the zone with only the A and CNAME records. Once mail records are restored, allow their TTLs to expire and test delivery in both directions.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Some visitors see the old site
Do not make repeated DNS edits immediately. Compare results from several networks, note which record each resolver returns, and wait for cached answers to expire. If the old site persists beyond the expected propagation window, investigate stale A or AAAA records and confirm the domain’s nameservers.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsDecide on the canonical hostname
The apex and www forms are both valid. Choose one for branding, cookies, analytics, and search consistency, then redirect the other form to it. Whichever you choose, configure both names in the web server and certificate. The choice changes the redirect target, not the basic DNS process.
Provider-managed DNS or registrar DNS?
Provider-managed DNS can integrate domain pointing, certificate issuance, and server setup, while keeping DNS at the registrar preserves the current arrangement and may be preferable when many services already depend on it. Neither option removes the need to back up the zone, preserve mail records, and verify the authoritative answers.
Quick completion checklist
- The VPS has a reserved, stable public IP.
- The current DNS zone is backed up.
- You chose nameserver delegation or individual record edits based on existing services.
- The apex A record points to the VPS IPv4 address.
- The
wwwCNAME points to the apex or uses the provider’s required target. - Obsolete AAAA records are removed or corrected.
- MX, TXT, and unrelated subdomain records remain intact.
digshows the intended answers from more than one network.- Nginx or Apache serves WordPress for both hostnames.
- WordPress Address and Site Address use one consistent canonical HTTPS hostname.
- The certificate covers the canonical and alternate names, with the complete chain installed.
- HTTP and the noncanonical hostname redirect correctly, and the site, dashboard, media, and email all work.
Frequently Asked Questions
Can I point a domain to a VPS without changing nameservers?
Yes. Keep the existing nameservers and edit only the apex A record and the www CNAME when email or other services already use the domain.
How long does it take for the domain to work?
Record changes depend on TTL and resolver caches. Nameserver changes can take up to 72 hours to appear everywhere.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Do I need both an A record and a CNAME?
Use an apex A record for the root domain and normally a www CNAME for the alternate hostname, unless your DNS provider specifies a different arrangement.
Why does WordPress show a redirect loop after I add HTTPS?
Check that both WordPress URL fields, the TLS configuration, and the HTTP-to-HTTPS rule agree on one canonical hostname and scheme.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

