I am making an application that uses a parser to parse all the master zones from the DNS, the parser I am using is from dnsjava library (org.xbill.DNS.Master). All the zones I am parsing are already added into BIND 9 via rndc. The problem I am facing is that some of the zone files aren't parsing, the parser gives the error
@ is not an absolute name
An example is given below, the name of this zone is pensoul.my, it's file looks like,
@ 1800 SOA ns5.mydns.my. dnsadmin.mydns.my. 2015070201 3h 1h 1w 30m
@ 84600 NS ns5.mydns.my.
@ 84600 NS ns6.mydns.my.
@ 3600 A 202.190.174.39
www 3600 A 202.190.174.39
On parsing this, and all the zones that are of this format, I am getting the absolute name error.
To check the format of this zone file, I used the command,
named-checkzone pensoul.my *filepath*
and it gives a status of OK, which means there is nothing apparently wrong with the file format.
Do I need to use another parser, or is there a way around for this?