Please review rt45641. The python lex/yacc module won't allow names to begin with digits because it's ambiguous whether it's parsing a number or a name. However, if the name is quoted, then digits are okay, so I've added QSTRING to the allowable tokens when parsing a domain name. zone "99example.com" { ... };