You only can create one name record
Closed this issue · 2 comments
ki0 commented
Hi there , i found one issue about this stuff. When you want to create two record with the same name for different zone, you got this error:
Error 400 on SERVER: Duplicate definition: Bind::Record[www] is already defined in file
I think this is wrong, because maybe you need to create www.example.com and www.examaple.org, am i right?¿
Cheers
lermit commented
Hi,
You're right, there is a mistake due to resource name duplication. I will correct this stuff in no time.
Thank you for the report.
Lermit
EDIT:
However you can avoid this error by overload the host parameter. For this instance :
This will throw exception
bind::a { 'www':
zone => 'example.org',
target => '10.0.0.1',
}
bind::a{'www':
zone => 'example2.org',
target => '10.0.0.2',
}
This one no more throw exception.
bind::a { 'www.example.org':
zone => 'example.org',
target => '10.0.0.1',
host => 'www',
}
bind::a{'www.example2.org':
zone => 'example2.org',
target => '10.0.0.2',
host => 'www',
}
ki0 commented
Thanks!!!