{"id":36,"date":"2015-04-27T09:37:28","date_gmt":"2015-04-27T09:37:28","guid":{"rendered":"http:\/\/betakb.veeble.org\/?p=36"},"modified":"2025-04-30T10:31:14","modified_gmt":"2025-04-30T05:01:14","slug":"change-ip-address-of-a-domain","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/change-ip-address-of-a-domain\/","title":{"rendered":"Change IP address of a domain"},"content":{"rendered":"<p>You can change the IP address of a domain via WHM and from back-end.<\/p>\n<h2><span id=\"Via_WHM_-_Recommended\" class=\"mw-headline\">Via WHM &#8211; Recommended<\/span><\/h2>\n<p>1. Log in to the WHM as root\/reseller.<\/p>\n<p>2. Move to <b>Change Site&#8217;s IP Address<\/b> under <b>Account Functions<\/b>.<\/p>\n<p><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/whm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-37 aligncenter\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/whm-300x146.png\" alt=\"whm.png\" width=\"722\" height=\"351\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/whm-300x146.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/whm-1024x499.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/whm.png 1160w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/a><\/p>\n<p>3. Select the domain and click <b>Change<\/b>.<\/p>\n<p>4. In the window that follows, select the IP address to be used (from the drop-down menu) and click <b>Change<\/b>.<\/p>\n<h2><span id=\"Via_back-end_-_Not_recommended\" class=\"mw-headline\">Via back-end &#8211; Not recommended<\/span><\/h2>\n<p>This method is to be used when you are getting an error when you try to change the IP address via WHM.<\/p>\n<p>1. Login to the server as root.<\/p>\n<pre>ssh root@ipaddress -p<i>port<\/i>\n<\/pre>\n<p>2.Edit the VirtualHost entry for the domain with the new IP address in the apache configuration file.<\/p>\n<pre>vim \/usr\/local\/apache\/conf\/httpd.conf\n<\/pre>\n<p>2. Change the IP address from <b>WHM &gt;&gt; Main &gt;&gt; DNS functions &gt;&gt; Edit DNS Zone<\/b>. (or edit the file \/var\/named\/domain.com.db)<\/p>\n<p>3. Also change instances of the old IP to the new IP in the following locations.<\/p>\n<pre>\/var\/cpanel\/users\/$user \n\/var\/cpanel\/userdata\/$user\/$domain \n<\/pre>\n<p>4. Run<\/p>\n<pre>\/scripts\/updateuserdomains \n<\/pre>\n<p>4. Now rebuild the Apache configuration and restart apache.<\/p>\n<pre>\/scripts\/rebuildhttpdconf \nservice httpd restart \n<\/pre>\n<p>If you are changing the domain from a dedicated IP address, remove the IP address entry from the file <b>\/etc\/domainips<\/b>.<\/p>\n<p>If the new change is not shown in <b>WHM &gt;&gt; IP Functions &gt;&gt; Show IP Address Usage<\/b>, change the IP address in <b>\/etc\/userdatadomains<\/b>. Also remove the symbolic link of FTP from<b>\/etc\/pure-ftpd<\/b>.<\/p>\n<p>Please note that your site will be unavailable for 4-6 hours, if you change the IP address.<\/p>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-add67f55 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Affordable Windows Hosting Solutions<\/h3><p class=\"uagb-cta__desc\">Budget-friendly Windows hosting from \u20b9129\/month with unlimited bandwidth, 99.9% uptime, 24\/7 support, and Plesk. Great value!<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/windows-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Start Hosting<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can change the IP address of a domain via WHM and from back-end. Via WHM &#8211; Recommended 1. Log in to the WHM [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":8791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2015\/04\/Change-IP-address-of-a-domain.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Vipin Raj","author_link":"https:\/\/www.veeble.com\/kb\/author\/vipin\/"},"uagb_comment_info":0,"uagb_excerpt":"You can change the IP address of a domain via WHM and from back-end. Via WHM &#8211; Recommended 1. Log in to the WHM [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":5,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":8792,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/36\/revisions\/8792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8791"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}