[MaraDNS list] read slashcommand causes Host name must be at beginning of a line

Sam Trenholme strenholme.usenet at gmail.com
Fri Oct 7 12:27:53 EDT 2011


Thank you for the bug report; my guess is that this is yet another
csv2 parser bug.  Fortunately for you, I have gotten some sponsorship
for October so I should be able to look at this bug in the next day or
two.

- Sam

2011/10/7 Karim Malhas <karim at malhas.de>:
> Dear List,
>
> I am new to maradns so please forgive me if I have overlooked something
> very obvious.
>
> I am trying to set up maradns for my local network on debian squeeze using
> the version (1.4.03) supplied
> by the repositories and I am running into
>
>   "Error: Host name must be at the beginning of a line"
>
> when using the "/read" slash command.
>
> It seems that the configparser is treating the "h" of the hostname "hatch"
> as a special character, but I can't tell why it would to that.
> The manpage for csv2 seems to allow this format and I think I have the
> right amount of '~' seperators
> Can anyone give me a hint as to what it is that I am doing wrong?
>
> I append the complete errormessage and configuration below.
>
> Regards,
> Karim
>
>
> /etc/maradns/db.testing
> -------------------------------------------
> /ttl 300 ~
> /origin example.com. ~
> % NS  a.ns.% ~
>
>
> /read db.testing.generated ~
>
> # TODO: don't actually want CNAMES here - find out how use aliases instead
> packages.%                CNAME   hatch.% ~
> ci.%                      CNAME   hatch.% ~
> install.%                 A       192.168.200.2 ~
> -------------------------------------------
>
> /etc/maradns/db.testing.generated
> -------------------------------------------
> hatch.%    A     192.168.200.141 ~
> vince.%    A     192.168.200.142 ~
> betsy.%    A     192.168.200.143 ~
> -------------------------------------------
>
> The maradns error:
> -------------------------------------------
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Processing zone
> example.com. right now.
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Filename:
> db.testing
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error: Host name
> must be at the beginning of a line
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error is on line 6
> in file db.testing.generated
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: context of error:
> testing.generated h (closing this file)
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: BUG: Don't run
> csv2_justread on a closed file!
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: BUG: Don't run
> csv2_justread on a closed file!
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error: Unexpected
> character
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error is on line 6
> in file db.testing.generated
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: context of error:
> testing.generated h (closing this file)
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error: Problem
> getting hostname
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: Error is on line 6
> in file db.testing.generated
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: context of error:
> testing.generated h (closing this file)
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc: MaraDNS proudly
> serves you 2 DNS records
> Oct  7 10:12:44 virtmaster maradns.etc_maradns_mararc:  Log: All RRs have
> been loaded
> -------------------------------------------
>
> /etc/maradns/mararc
> -------------------------------------------
> csv2={}
> csv2["example.com."] = "db.testing"
> bind_address ="192.168.200.2"
> chroot_dir="/etc/maradns"
> maradns_uid=103
> maradns_gid=105
> maxprocs=96
> default_rrany_set=3
> max_chain=8
> max_ar_chain=1
> max_total=20
> verbose_level = 2
> hide_disclaimer= "YES"
> ipv4_alias = {}
> ipv4_alias["icann"] =
> "198.41.0.4,192.228.79.201,192.33.4.12,128.8.10.90,192.203.230.10,192.5.5.241,192.112.36.4,128.63.2.53,192.36.148.17,192.58.128.30,193.0.14.129,199.7.83.42,202.12.27.33"
> recursive_acl = "0.0.0.0"
> -------------------------------------------
>


More information about the list mailing list