Add ip address to unthemed host names programmatically

Hi,

How to add/remove IP addresses to Unthemed host names in theming/advanced settings programmatically?

Regards