Setting up and managing nameservers in WHM (Web Host Manager) typically involves several steps. Here's a general guide:
-
Access WHM: Log in to WHM with your credentials. Usually, you can access WHM by going to https://yourdomain.com/whm or https://yourserverip/whm and entering your username and password.
-
Initial Setup:
- Once logged in, navigate to the "Basic cPanel & WHM Setup" section.
- Here, you'll set up your primary nameserver (usually ns1.yourdomain.com) and secondary nameserver (ns2.yourdomain.com). Enter the appropriate nameserver details.
- Ensure that the nameservers you're setting up have corresponding A records pointing to the IP addresses of your server.
-
Nameserver Configuration:
- In WHM, go to "Nameserver Selection" under the "DNS Functions" section.
- Choose the nameserver software you want to use. Popular choices include BIND (Berkeley Internet Name Domain) and PowerDNS.
- Follow the prompts to install and configure the selected nameserver software.
-
Nameserver IP Setup:
- Assign IP addresses to your nameservers. In WHM, navigate to "IP Functions" and then "Add a New IP Address".
- Assign one IP address to each nameserver.
-
Register Nameservers:
- Register your nameservers with your domain registrar. This involves logging in to your registrar's control panel and adding NS records for your domain, pointing to your nameserver's IP addresses.
-
DNS Zone Configuration:
- After setting up nameservers, you'll need to configure DNS zones for your domains. In WHM, go to "Edit DNS Zone" under the "DNS Functions" section.
- Select the domain for which you want to create or modify DNS records.
- Add or edit DNS records as needed, including A records, CNAME records, MX records, etc.
-
Testing:
- Once everything is set up, it's essential to test your nameservers and DNS configurations. Tools like
dig
or online DNS lookup tools can help verify that your nameservers are resolving correctly.
- Once everything is set up, it's essential to test your nameservers and DNS configurations. Tools like
-
Regular Maintenance:
- Periodically check your nameservers and DNS configurations to ensure they're up-to-date and functioning correctly. WHM provides various tools for monitoring and managing DNS.
Remember, managing nameservers and DNS configurations requires careful attention to detail, as misconfigurations can lead to downtime or other issues with your websites and services.