A note on two-generated ideals over domains