1

Would there be a problem if I set 2 hostnames in my server?

vi /etc/hostname

dns01.hello.com
proxy01.hello.com

and in my hosts file

127.0.0.1 localhost
127.0.1.1 dns01.hello.com
127.0.1.1 proxy01.hello.com

Cause I will run a proxy and bind service in this server. Kindly advise please.

Braiam
  • 67,791
  • 32
  • 179
  • 269
erlchamp
  • 41
  • 1
  • 5

1 Answers1

0

Better:

127.0.0.1 localhost dns01.hello.com proxy01.hello.com

All are on the same line.

kiri
  • 28,246
  • 16
  • 81
  • 118
Xavier J
  • 531
  • 2
  • 8