WHM Nameserver IPs Showing Wrong Info

Sometimes you can see wrong information regarding WHM/cPanel nameserver info. You can see it from Main >> DNS Functions >> Nameserver IPs . To fix this issue you need to edit two files /etc/nameserverips and /var/cpanel/nameserverips.yaml

1) Edit the file /etc/nameserverips .See an example below,

# cat /etc/nameserverips
192.168.1.100=ns1.yourdomain.com
192.168.1.101=ns2.yourdomain.com

2) Edit the file /var/cpanel/nameserverips.yaml , See an example below,

root@it [~]# cat /var/cpanel/nameserverips.yaml
--- 
ns1.yourdomain.com: 
  "192.168.1.100": 1
  count: '1'
  zones: yourdomain.com
ns2.yourdomain.com: 
  "192.168.1.101": 1
  count: '1'
  zones: yourdomain.com