Page 1 of 1
hostname vs IP address
Posted: Mon 05 Jan 2015 8:05 am
by tumutbound
The beta has been running on my Raspberry Pi B+ for nearly 12 hours without any warnings messages - once I got the Cumulus.ini sorted out.
One thing I've just noticed is that I can connect to Cumulus server via the ip address but not the hostname. e.g.
http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:
Bad Request (Invalid host)
Host is in the DNS and I can ping, ssh etc to it by name from other hosts.
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 8:52 am
by steve
Using the host name works OK for me, so there must be something different about the way our systems are set up. I don't know what that is, though...
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 9:34 am
by Adrian Hudson
tumutbound wrote:http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:.
I assume you are actually typing
http://plusberry.homelan:8998
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 9:36 am
by tumutbound
Adrian Hudson wrote:tumutbound wrote:http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:.
I assume you are actually typing
http://plusberry.homelan:8998
Yes, typo in the post
Still trying to track this one down. web server on the same host doesn't give this error.
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 9:54 am
by mcrossley
Using 'localhost' or '127.0.0.1' doesn't work for me either. Is MX only bound to the IP it spits out at initialisation?
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 10:02 am
by steve
mcrossley wrote:Is MX only bound to the IP it spits out at initialisation?
Yes.
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 10:09 am
by tumutbound
So far:
hostname is correct (plusberry)
/etc/nssconf has the following line:
hosts: dns files
so DNS is being referenced before /etc/hosts
Dynamic DHCP updates DNS and other hosts can ping/dig plusberry.homelan
Even tried putting a line in /etc/hosts:
192.168.1.155 plusberry.homelan plusberry
Still get same error.
Access via IP address is OK
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 10:12 am
by mcrossley
Is 'plusberry' the actual host name of the computer? I can connect using the 'real' host name OK, but 'localhost' does not work.
Re: hostname vs IP address
Posted: Mon 05 Jan 2015 10:25 am
by tumutbound
mcrossley wrote:Is 'plusberry' the actual host name of the computer? I can connect using the 'real' host name OK, but 'localhost' does not work.
A hostname command returns:
plusberry
I can't use localhost as I'm connecting from another computer, not the Pi that Cumulus is running on.