cli53 import ignores updates to ALIAS records
cjonesunivision opened this issue · comments
Issue type
- Bug report
cli53 version (cli53 --version)
0.8.13
OS / Platform
Ubuntu 18.04.1 LTS 64 bit
Steps to reproduce
Create a zone with an ALIAS record
$ cli53 export fakedomain.com
$ORIGIN fakedomain.com.
@ 900 IN SOA ns-1640.awsdns-13.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
@ 86400 AWS ALIAS A dualstack.oldalb.us-east-1.elb.amazonaws.com. Z35SXDOTRQ7X7K false
@ 172800 IN NS ns-1640.awsdns-13.co.uk.
@ 172800 IN NS ns-1530.awsdns-63.org.
@ 172800 IN NS ns-447.awsdns-55.com.
@ 172800 IN NS ns-726.awsdns-26.net.
Create zone file with update to A record.
$ cat fakedomain.com.zone
$ORIGIN fakedomain.com.
@ 900 IN SOA ns-1640.awsdns-13.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
@ 86400 AWS ALIAS A dualstack.newalb.us-east-1.elb.amazonaws.com. Z35SXDOTRQ7X7K false
@ 172800 IN NS ns-1640.awsdns-13.co.uk.
@ 172800 IN NS ns-1530.awsdns-63.org.
@ 172800 IN NS ns-447.awsdns-55.com.
@ 172800 IN NS ns-726.awsdns-26.net.
Import the zone
$ cli53 import fakedomain.com --dry-run --editauth --replace --file fakedomain.com.zone
Dry-run, but no changes would have been made.
$ cli53 import fakedomain.com --editauth --replace --file fakedomain.com.zone
6 records imported (0 changes / 0 additions / 0 deletions)
Expected behaviour
For the alias record to be updated
Actual behaviour
$ cli53 import fakedomain.com --dry-run --editauth --replace --file fakedomain.com.zone
Dry-run, but no changes would have been made.
$ cli53 import fakedomain.com --editauth --replace --file fakedomain.com.zone
6 records imported (0 changes / 0 additions / 0 deletions)
Have you checked if the documentation has the information you require?
Double and trip checked
Could you contribute a fix or help testing with this issue?
I'm working on it but I'm new to Go. I hope to have a PR soon but if you can beat me to the fix please do.