To point your domain to a VPS server, you need to create custom nameservers at your domain registrar using your VPS IP address. Unlike shared hosting where nameservers are pre-configured, VPS hosting gives you full control, which means you'll set up nameservers like ns1.yourdomain.com and ns2.yourdomain.com, both pointing to your VPS IP address.
Understanding VPS Nameserver Configuration
A VPS (Virtual Private Server) operates differently from shared hosting because you have complete control over your server environment. This means you're responsible for configuring your own nameservers rather than using pre-made ones. The process is straightforward and gives you full DNS control over your domain.
Step-by-Step Guide to Creating Custom Nameservers
Step 1: Locate Your VPS IP Address
Your VPS IP address was sent to you in the welcome email when you signed up with OBHost. Look for the subject line containing "server information" or "VPS details." The IP address will typically be listed clearly in the email, often in a format like 123.45.67.89. Save this IP address as you'll need it for the next steps.
Step 2: Access Your Domain Registrar's Control Panel
Log into the control panel where you registered your domain name. Navigate to the DNS management or nameserver section. The exact location varies by registrar, but it's usually found under domain settings, DNS settings, or nameserver management.
Step 3: Create Your Custom Nameservers
You'll need to create two nameserver records (some registrars allow or require more, but two is the standard minimum). Use the following format:
- First nameserver: ns1.yourdomain.com pointing to your VPS IP address
- Second nameserver: ns2.yourdomain.com pointing to the same VPS IP address
For example, if your domain is example.com and your VPS IP is 123.45.67.89, you would create:
- ns1.example.com - IP: 123.45.67.89
- ns2.example.com - IP: 123.45.67.89
Step 4: Set Your Domain to Use the New Nameservers
After creating the custom nameserver records, you need to tell your domain to actually use them. In your domain registrar's control panel, update the nameserver settings for your domain to use ns1.yourdomain.com and ns2.yourdomain.com. This is a separate step from creating the nameserver records themselves.
DNS Propagation and Timing
Once you've completed the nameserver setup, DNS propagation begins. This process can take anywhere from a few minutes to 48 hours, though it typically completes within 4-8 hours. During this time, some users may see your old hosting while others see your new VPS. This is normal and will resolve once propagation is complete.
Verifying Your Nameserver Configuration
After 24-48 hours, you can verify that your nameservers are working correctly by using online DNS lookup tools. Simply search for "DNS checker" and enter your domain name. The results should show your custom nameservers (ns1.yourdomain.com and ns2.yourdomain.com) pointing to your VPS IP address.
Frequently Asked Questions
Can I use the same IP address for both nameservers?
Yes, for a VPS setup, both ns1 and ns2 can point to the same IP address. While having nameservers on different IP addresses provides redundancy, using the same IP for both is perfectly acceptable and commonly done with VPS hosting.
What if I can't find my VPS IP address?
If you've lost your welcome email or can't locate your VPS IP address, contact the OBHost support team at support@obhost.org and they'll provide you with your server information.
Do I need to configure DNS records on my VPS after setting nameservers?
Yes, after your nameservers are propagated, you'll need to configure DNS records (A records, MX records, etc.) on your VPS itself, typically through a control panel like cPanel, Plesk, or direct zone file editing. The nameservers only tell the internet where to look for DNS information.
How many nameservers do I need to create?
The minimum requirement is two nameservers (ns1 and ns2), which is standard practice. Some domain registrars allow you to add more (ns3, ns4, etc.) for additional redundancy, but two is sufficient for most VPS setups.
If you need assistance setting up your custom nameservers or have questions about your VPS configuration, the OBHost support team is available 24/7. Visit our contact page or email support@obhost.org for help.