DNS Editor Errors
Hi all. I guess this is a 2 part question. One, how to manually edit a zone file as in WHM wont let me. The other is how to fix the bad dotted quad? From what I've read the server is either expecting the domain to have the dot or not. I'm not really sure.
Many thanks!!!! Sorry if this is the wrong place.
Lance
cPanel: In the Advanced DNS Editor:
Failed to serialize zone file: There was an error while loading the zone for mydomain.com. Please correct any errors in this zone manually and try again. The exact error from the parser was: bad IP address, line 24
: [cpanel 14400 IN A mydomain.com]
WHM:
; cPanel first:11.38.2.6 (update_time):1390262353 Cpanel::ZoneFile::VERSION:1.3 hostname:ip-50-63-190-32.ip.secureserver.net latest:11.38.2.6
; Zone file for mydomain.com
$TTL 14400
mydomain.com. 86400 IN SOA ns1.ip.secureserver.net. my.email.com. (
2014012001 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 )
mydomain.com. 86400 IN NS ns1.ip.secureserver.net.
mydomain.com. 86400 IN NS ns2.ip.secureserver.net.
mydomain.com. 14400 IN A 50.63.190.32
localhost 14400 IN A 127.0.0.1
mydomain.com. 14400 IN MX 0 mydomain.com.
mail 14400 IN CNAME mydomain.com.
www 14400 IN CNAME mydomain.com.
ftp 14400 IN CNAME mydomain.com.
cpanel 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
webdisk 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
whm 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
webmail 14400 IN A mydomain.com near 'mydomain.com': bad dotted quad
-
Hi Lance, I would try doing so from WHM > Edit DNS Zone first. You should check for whitespace. Your domains should also have '.' after their entry if you do not want the DNS zone name appended. For example, the subdomain 'ftp.domain.com', you would simply input 'ftp' or 'ftp.domain.com.'. To manually update the zone, you will find the file at '/var/named/domainnamehere.com.db'. You must access this file from root. I recommend doing so from SSH as you will need to update the serials regardless. Before making any changes here, you should backup '/var/named/'. Once changes have been made, you can run the following command to update the serials: find /var/named/*.db -mtime -1 -exec perl -pi -e 'if (/^\s+(\d{10})\s+;\s+serial/i) { my $i = $1+1; s/$1/$i/;}' '{}' \;
Should you update nameserver records manually, you should also issue the following:/scripts/updatenameserverips0 -
Hello :) Yes, as mentioned in the previous post, you can manually edit the /var/named/$domain.com.db file if you need to edit a zone manually via the command line instead of through Web Host Manager. Ensure you update the serial for the zone if you choose this route. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments