Hostripples Featured

Assign dedicated IP to a Sub-domain/Add-on/Park domain?

Using WHM we can assign one dedicated IP to one account. But if wants to set multiple IPs to an account for eg: to subdomain, addon domain or park domain. We have to it manually by editing following configuration files.

1.# vim /var/cPanel/userdata/[username]/subdomain.domain.tld

Here, change the shared IP with new dedicated IP.

2. After that rebuild httpd.conf using following cpanel  script.

#/scripts/rebuildhttpdconf \

After that restart httpd service.

3. Now add dedicated IP in /etc/domainips file

After that rebuild IPpool using following script

#/script/rebuildippool

Now last step,

4. Edit DNS zone for particular domains and assign dedicated IP in it.

Zone is located here: /var/named/domain.db file.

Then restart named service.

Thanks.



HR-ADMIN

Recent Posts

Cron Jobs: Automate Everything While You Sleep

Cron Jobs – The Unsung Heroes Think of cron jobs as the unsung heroes of your server — capes optional,…

3 days ago

Designing a Christmas Website: Creative Ideas & Best Practices

With vibrant colors, cheerful graphics, and a sprinkle of festive magic, your website can instantly create an emotional connection and…

1 week ago

Meet Sora: The Game-Changing AI Video Model from ChatGPT

The world of artificial intelligence is evolving faster than ever — and one of the biggest breakthroughs is here. Sora,…

2 weeks ago

How to Design a Website for Black Friday 2025 (Complete Guide)

Black Friday 2025 is here — the biggest shopping moment of the year, where customers expect unbeatable prices, fast performance,…

4 weeks ago

301 Redirects for WordPress: What, Why & How (SEO Best Practices)

When you move or delete a page on your WordPress website, visitors — and search engines — can easily hit…

1 month ago