From: Maxwell S. <cj...@yo...> - 2008-09-07 17:56:00
|
On 05/Sep/2008 17:25 Maxwell Smart wrote .. > On 05/Sep/2008 09:27 Maxwell Smart wrote .. >> On 04/Sep/2008 18:05 Maxwell Smart wrote .. >> >>> > On 04/Sep/2008 17:40 Maxwell Smart wrote .. >>> > >>> >>>>> > > > Jamie, >>>>> > > > >>>>> > > > I have noticed a problem with adding a new site in BIND. When it >>>>> > > > creates the new entry it formats the syntax like this: >>>>> > > > >>>>> > > > $ttl 38400 >>>>> > > > example.com. IN SOA ns1.area510.net. test.example.com. ( >>>>> > > > 2008090400 >>>>> > > > 10800 >>>>> > > > 3600 >>>>> > > > 604800 >>>>> > > > 38400 ) >>>>> > > > example.com. IN NS ns1.area510.net. >>>>> > > > >>>>> > > > My BIND is complaining about this syntax it wants it like this >>>>> > > > >>>>> > > > $ttl 38400 >>>>> > > > @ IN SOA ns1.area510.net. test.example.com. ( >>>>> > > > 2008090400 >>>>> > > > 10800 >>>>> > > > 3600 >>>>> > > > 604800 >>>>> > > > 38400 ) >>>>> > > > example.com. IN NS ns1.area510.net. >>>>> > > > >>>>> > > > Is this a bug or is my BIND messed up? >>>>> > > > >>>>> > > > I am using BIND 9.2.3 >>>>> >>>> > > >>>> >>> > >>> > What is the error exactly? Those two SOA records look the same >>> > to me, except for the use of example.com. vs @, which should resolve >>> > to the same thing. >>> > >>> > - Jamie >>> > >>> > Jamie, >>> > >>> > That is the difference and I am not getting the example.com. to resolve correctly. >>> > It resolves the web address but not an MX address. Change it to the @ symbol and >>> > it works straight away. >>> >> Are there any error messages in /var/log/messages or other log files when you >> restart BIND with the zone without the @ ? >> >> - Jamie >> >> Jamie, >> >> Here is the error message it caused. >> >> CJ >> >> named[28150]: dns_master_load: >> /var/lib/named/rightbumpersticker.com.hosts:11: ignoring out-of-zone >> data (rigthbumpersticker >> .com) >> > And what is on line 11 of the > /var/lib/named/rightbumpersticker.com.hosts > <http://rightbumpersticker.com.hosts> file? Or better still, could you > post the whole file to the list? > > - Jamie > Jamie, > > Here is the complete file. > > $ttl 38400 > @ IN SOA ns1.area510.net. info.rightbumpersticker.com. ( > 2008082801 > 10800 > 3600 > 604800 > 38400 ) > rightbumpersticker.com. IN NS ns1.area510.net. > rightbumpersticker.com. IN NS ns2.area510.net. > > rightbumpersticker.com. IN MX 10 mail > mail IN A 64.168.70.131 > > rightbumpersticker.com. IN A 64.168.70.129 > www IN CNAME rightbumpersticker.com. > > rightbumpersticker.com. IN TXT "v=spf1 mx a > include:area510.net -all" > > CJ > That looks OK to me.. Could you also post the section from named.conf for this domain? - Jamie Jamie, Here you go. zone "rightbumpersticker.com" { type master; file "/var/lib/named/rightbumpersticker.com.hosts"; }; CJ |