2

When I open up my terminal I now get:

[iMac.domain_not_set.invalid ~ 501]$

In my .bash_profile it says:

export PS1='[\H \W \!]\$ '

Any idea what is going on?

3
  • 1
    What is hostname returning?
    – dan
    Apr 8, 2018 at 9:40
  • it returns iMac.domain_not_set.invalid
    – JohnB
    Apr 8, 2018 at 16:36
  • This sounds a lot like this problem, except in this case the DNS server is supposed to be configured with a valid domain, but isn't, so it's using an error message as the domain name. Jan 20, 2019 at 22:26

1 Answer 1

1

Your hostname is not set correctly. This could be because of the information you set in Sharing in System Preferences, or because the DHCP server gave your system an incorrect hostname to use.

To fix this, change your hostname in Sharing, or in case of a DHCP issue, check the DHCP server configuration.

1
  • So what does the OP need to do this fix this?
    – nohillside
    Apr 9, 2018 at 6:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .