Hello,
I have 2 VPS's running FreeBSD 10.1-REL. The TransIP works fine, the Digital Ocean VPS doesn't resolve localhost doesn't resolve.
Here is my TransIP FreeBSD VPS:
And here is my Digital Ocean FreeBSD VPS:
Another difference that I noticed is that on DO I have to setup the
1st Question: How can I fix the DO VPS to resolve to 127.0.0.1 and ::1 for localhost ?
2nd Question: Does these differences have anything to do with different VPS implementations? Because, apart from the fact that the TransIP was upgraded and the DO is a new installation, the versions running are the same.
Thanks
I have 2 VPS's running FreeBSD 10.1-REL. The TransIP works fine, the Digital Ocean VPS doesn't resolve localhost doesn't resolve.
Here is my TransIP FreeBSD VPS:
Code:
$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1
$ grep -v "#" /etc/hosts
::1 localhost
127.0.0.1 localhost
And here is my Digital Ocean FreeBSD VPS:
Code:
$ host localhost
Host localhost not found: 3(NXDOMAIN)
[atma@poincare ~]$ grep -v "#" /etc/hosts
::1 localhost
127.0.0.1 localhost
Another difference that I noticed is that on DO I have to setup the
hostname
via sysctl.conf in order to get a "localhost.domain.name" instead of "localhost". While on TransIP rc.conf is enough.1st Question: How can I fix the DO VPS to resolve to 127.0.0.1 and ::1 for localhost ?
2nd Question: Does these differences have anything to do with different VPS implementations? Because, apart from the fact that the TransIP was upgraded and the DO is a new installation, the versions running are the same.
Thanks