my website ns1 and ns2 nameservers resolve to private ip instead of public ip
i run intodns check and this is the problem
Here is the full details
# cat /var/cpanel/cpnat
# cat /etc/hosts
when i set in website dns zone file private ip instead for nameservers
the warrning message in intodns gone but the website still not working unreachable but i know this is wrong the put private ip address nameserver inside the dns zone file should be point to public ip address
i manually modified the ip address to real ip in /var/cpanel/nameserverips.yaml and removed the cache file. but when i run /usr/local/cpanel/scripts/updatenameserverips the ips return back to private ip address which is 172.31.xx.xx
i dunno where exactly the problem is?
i run intodns check and this is the problem
Code:
Looks like the A records (the GLUE) got from the parent zone check are different than the ones got from your nameservers. You have to make sure your parent server has the same NS records for your zone as you do.I detected some problems as follows:
For ns2.example.com the parent reported: ['62.1X.X.X'] and your nameservers reported: ['172.31.xx.xx']
For ns1.example.com the parent reported: ['62.1X.X.X'] and your nameservers reported: ['172.31.xx.xx']
Here is the full details
# cat /var/cpanel/cpnat
172.31.xx.xx 62.1X.X.X'
# cat /etc/hosts
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.31.xx.xx server.example.com server
when i set in website dns zone file private ip instead for nameservers
ns2 14400 IN A 172.31.xx.xx
ns1 14400 IN A 172.31.xx.xx
the warrning message in intodns gone but the website still not working unreachable but i know this is wrong the put private ip address nameserver inside the dns zone file should be point to public ip address
i manually modified the ip address to real ip in /var/cpanel/nameserverips.yaml and removed the cache file. but when i run /usr/local/cpanel/scripts/updatenameserverips the ips return back to private ip address which is 172.31.xx.xx
i dunno where exactly the problem is?
Last edited: