Hi, currently i have 2 different domain names which both lead to the same content.anything affect duplicate content
Try to do a 301 redirection and take down of your site. You can also request to Google to deindex the website you don't need. In that way you can save one of your website and can rank it without any problem