Use the right settings object when adding the hostname.