IP Management in DirectAdmin – A Complete Guide to Adding, Binding, Multi-IP, IPv6, Shared IPs, and Server IP Swaps

DirectAdmin provides a powerful and flexible IP management system, allowing administrators to bind IPs, assign dedicated or shared IPs, use Multi-IP configurations, enable IPv6, link IPv6 to IPv4, and even perform full server IP swaps. This guide covers all essential techniques and practical steps for managing IPs efficiently.

Adding, Binding, Multi-IP, IPv6Server IP Swaps

~3 min read · Updated Mar 1, 2026

1. Binding All IPs (startips Service)


The startips service is responsible for binding all IPs managed by DirectAdmin. It runs automatically at system boot, but after a network restart it must be triggered manually.

On systemd-based systems:


systemctl restart startips

On older init.d systems:


/etc/init.d/startips restart
---

2. Viewing Real Device IPs in IP Manager


In newer DirectAdmin versions, when calling:


CMD_IP_MANAGER?json=yes

DirectAdmin returns not only configured IPs but also device_ips—all real IPs detected on the server (via ifconfig or ip addr).

Each IP includes:

  • netmask
  • bitmask
  • ifa_flags

Example JSON output:


"device_ips": {
  "devices": {
    "eth0": {
      "1.2.3.4": {
        "bitmask": "/24",
        "ifa_flags": "69699",
        "netmask": "255.255.255.0"
      }
    }
  }
}
---

3. Assigning a Dedicated (Owned) IP to a User


Step 1: Ensure the reseller has a free IP


Reseller Level → IP Management

If no free IP exists:

  1. Go to Admin Level → IP Management.
  2. Select an unassigned IP.
  3. Assign it to the reseller.

Step 2: Assign the IP to the user


Reseller Level → List Users → username → Modify User

Select the free IP. If it is not shared, it becomes an owned IP.

Note: DNS propagation may take up to 4 hours.

---

4. Changing a Domain’s IP Without Downtime


Example: domain.com is on 1.2.3.4 and must move to 1.2.3.5.

Step 1: Add the new IP to the domain


User Level → Domain Setup → domain.com → Add another IP

Step 2: Update DNS


User Level → DNS Management
  • Remove all A records pointing to 1.2.3.4.
  • Keep SPF TXT records if needed.

Step 3: Wait for DNS propagation (4–24 hours)

Step 4: Remove the old IP


User Level → Domain Setup → domain.com
---

5. Adding an IP to DirectAdmin Without Binding It


If you want DirectAdmin to manage an IP but not bind it to the system:


Admin Level → IP Manager → Add IP

Uncheck Add to device.

DirectAdmin stores:


add_to_device=no
---

6. Using the Multi-IP System


Since DirectAdmin 1.37.0, users can have multiple IPs (IPv4 + IPv6).

Steps:

  1. Reseller must have a free IP.
  2. Assign the IP to the user.
  3. User assigns it to the domain:

User Level → Domain Setup → Add another IP

Note: Apache’s default page may appear for up to 4 hours.

---

7. Enabling IPv6 in DirectAdmin


Enable IPv6 support:


/usr/local/directadmin/directadmin set ipv6 1 restart
/usr/local/directadmin/dataskq d

Add IPv6 addresses just like IPv4 (without brackets).

Dual-stack mode:

  • Link IPv6 to IPv4 in IP Manager.
  • Assign only IPv4 to the user; IPv6 mirrors automatically.
---

8. Using Shared IPs Across Multiple Resellers


Since DirectAdmin 1.61:


Admin Level → IP Manager → Select IP → Set as global/shared

Then assign the IP to multiple resellers.

Global/shared IPs are managed only at the Admin Level.

---

9. Changing the Server’s Main IP (Server IP Swap)


If the server’s primary IP changes:

Step 1: Boot with the new IP

Step 2: Restart DirectAdmin


systemctl restart directadmin

Step 3: Run the ipswap script


cd /usr/local/directadmin/scripts
./ipswap.sh 1.2.3.4 5.6.7.8

Step 4: Restart services


systemctl restart pure-ftpd exim dovecot
da build rewrite_confs

Written & researched by Dr. Shahin Siami

Related Articles

Email Client Configuration & Dovecot Quota/Monitoring Guide for DirectAdmin Users

This guide explains how to configure popular email clients (iPhone Mail, Thunderbird, Gmail POP/SMTP), enable Dovecot LMTP quota warnings, and check the last login time for all email accounts on a DirectAdmin server. It includes step by step instructions, recommended IMAP/SMTP settings, and useful administrative scripts.

Continue

Troubleshooting Dovecot in DirectAdmin – Fixing IMAP Errors, Authentication Issues, and SSL Certificate Checks

Dovecot is the IMAP/POP3 server used by DirectAdmin. Sometimes users encounter errors such as “Connection dropped by IMAP server” or “unknown user” during authentication. This guide explains how to fix corrupted Dovecot indexes, understand authentication logs, hide unnecessary warnings, and manually inspect SSL certificates on IMAP ports 143 and 993.

Continue

DNS Troubleshooting in DirectAdmin – When named is Running but Domains Do Not Resolve

Sometimes the named (BIND) service runs normally, yet DNS queries fail or domains do not resolve from outside. This guide provides a complete troubleshooting workflow for checking named listeners, firewall rules, named.conf configuration, DNS propagation issues, subdomain problems, resolv.conf errors, and common Apache/Nginx misconfigurations.

Continue

Managing DNS Records in DirectAdmin – Complete Practical Guide for Administrators

DirectAdmin provides a powerful DNS management system that allows administrators to control TTL values, create SRV records, enable DNSSEC, manage subdomain delegation, automate TLSA records, and perform mass DNS updates. This guide explains all essential DNS operations in DirectAdmin with real-world examples and best practices.

Continue

DNS and Nameservers in DirectAdmin – Complete, Practical, and Professional Guide

DNS is the backbone of the internet, responsible for translating domain names into IP addresses. DirectAdmin allows you to create private nameservers (ns1/ns2), manage DNS zones, configure DNS clustering, use external DNS, and troubleshoot common issues. This guide provides a complete, clear, and practical explanation of DNS concepts and their implementation in DirectAdmin.

Continue

CustomBuild in DirectAdmin – Complete Guide to Installation, Updates, Configuration, and Advanced Customization

CustomBuild is DirectAdmin’s primary software management system. It installs, updates, configures, and rebuilds essential services such as Apache, Nginx, PHP, MariaDB/MySQL, Exim, Dovecot, FTP servers, and more. Because most components are compiled from source, CustomBuild offers exceptional flexibility, fast access to new versions, and optimized performance.

Continue