Auto notification link is not using domain name

Hi erveyone

I have used the Notification module .
But when i recived the notification email , the link always use IP not domain name .
For example : “http://192.168.2.8/commande/card.php?id=57&save_lastsearch_values=1
And it should be “http://www.domainname.com/commande/card.php?id=57&save_lastsearch_values=1” .
Are there anyone knows how to fix it ?

I have figure out why this happened .

That’s because my conf.php set to 192.168.2.8 not doaminname on dolibarr_main_url_root .
So after i change it ,it fixed .