Hi, I am trying to run the Rsync backup setup, but my two B3's are not recognising each others hostnames?
When connecting to each other I am forced to use IP address, is there a way of forcing them to know of each others hostnames? Such as a hosts file?
The strange thing is that when I did:
net lookup main-bubba
from one of the units, it resolved the IP address, but when running commands relating to logging onto a different bubba I have to use an IP Address as using the hostname returns an error?
Thanks, Joe
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Not Recognising Hostnames
Re: Not Recognising Hostnames
Brilliant, I knew what the hosts was just didn't think to check!
Great stuff thanks Ubi
Great stuff thanks Ubi
Re: Not Recognising Hostnames
When using the Bubba|2 and B3 as a router etc, it should really resolve the host names of hosts connected to the network and provide DNS service to all hosts connecting to the network.
I.e. you should not have to maintain hosts files on every machine on your network in order to be able access other machines by name.
If you look in /etc/resolv.conf with the default setup, you will notice that it only forwards the DNS requests to your ISP. There is no point editing this file as it is created dynamically (your changes will be replaced).
I managed to get it to behave as I wanted by adding the following line to /etc/bubba/dhclient.conf (on the B3, the file was somewhere else on Bubba2):
I cannot remember what I had to restart to make it take effect (perhaps just reboot the system).
After this, the B3's IP address should be on the first line of /etc/resolv.conf.
This works. I now only have to add the IPs and names of hosts that doesn't provide it's own name (like my Android phone and my media player (popcorn hour)) to the hosts file of the B3, and all hosts can then be accessed by name across the network.
There must be a better way of doing this though as this setup will leave you with these errors in the syslog:
...but it is the only way I have managed to figure out.
Cheers,
Cheeseboy
I.e. you should not have to maintain hosts files on every machine on your network in order to be able access other machines by name.
If you look in /etc/resolv.conf with the default setup, you will notice that it only forwards the DNS requests to your ISP. There is no point editing this file as it is created dynamically (your changes will be replaced).
I managed to get it to behave as I wanted by adding the following line to /etc/bubba/dhclient.conf (on the B3, the file was somewhere else on Bubba2):
Code: Select all
prepend domain-name-servers 192.168.10.1;
After this, the B3's IP address should be on the first line of /etc/resolv.conf.
This works. I now only have to add the IPs and names of hosts that doesn't provide it's own name (like my Android phone and my media player (popcorn hour)) to the hosts file of the B3, and all hosts can then be accessed by name across the network.
There must be a better way of doing this though as this setup will leave you with these errors in the syslog:
Code: Select all
dnsmasq[5399]: ignoring nameserver 192.168.10.1 - local interface
Cheers,
Cheeseboy