Your DVD is probably protected against copy, therefore we are probably facing a legal issue. On a practical point of view, there are softwares able to do that, but this will not be dicussed here.
Another solution would be to record the analog output of your DVD playing your music (plug the line output of your DVD player to the line input of your Mac).