Incorrect validation error with dot zero address
Hi,
I came across an issue today with validation in the DNS zone editor.
Client is using canva for a landing page. Canva uses this IP: 103.169.142.0 https://www.canva.com/en_au/help/dns-settings/
The cpanel zone editor wouldn't allow the IP ending in dot zero to be entered and I had to edit the underlying /var/named/*.db file directly.
Now I know with TCP networking that the first and last IPs can't be used in a subnet (the first represents the network, the last in the broadcast address) - but cpanel doesn't know what the subnet size is when entering an A record in the dns zone editor, so it can't make any decision on the validity of .0 (or .255 for that matter)
There are circumstances where a .0 is a valid address (eg in a /22)
Could you please look at updating this logic? with IPv4 exhaustion approaching this is going to keep cropping up as everyone squeezes every last address out of the address space.
thanks!
-
Hey there! I'm not able to reproduce this issue on my end, as multiple IP addresses ending in .0 worked fine when adding an A record to an existing DNS zone.
Can you let me know the exact error you received in the interface and in the /usr/local/cpanel/logs/error_log file?
0 -
Hmm ok I tried again and it worked.
must have bene my error, sorry. please ignore!
The error on screen was along the lines of the "IP address is invalid". nothing logged in /usr/local/cpanel/logs/error_log file. presumably something subtle like a space in the IP
0 -
I'm glad it's working well now!
0
Please sign in to leave a comment.
Comments
3 comments