I just tried this example and it didn't work for me. There were no errors but the record never showed up in the control panel page for that domain.