You are not logged in.
Hey, I've set up the following, but cannot get my hostname to get on the network. If I use the hostname command it comes up as set, but if I try to ping the hostname on a different network machine it does not resolve. I've got the following:
rc.conf:
HOSTNAME="ma"
/etc/resolv.conf:
domain XXXXXX.com
search lol.XXXXXX.com private.XXXXXX.com XXXXXX.com
nameserver 172.20.2.10
/etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost myhost ma ma.lol.XXXXXX.com
Last edited by beatbreaker (2011-11-03 04:50:35)
Offline
I laugh, yet the joke is on me
Offline
That's almost totally irrelevant.
Setting your hostname on one machine doens't magically make the other comptuers on the network see it.
You need to read up on DNS.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Darn, I hate it when I only get almost.
I laugh, yet the joke is on me
Offline
That seems useful, I'll try it out a little more. I can see that my hostname command has changed and I've also now got a host and domain command too.
I also found that I had to change things in my /etc/hosts file for the hostname to get pickedup by my own system. I moved localhost to one of the last entries.
Still doesn't work though. if I do a host -l my.domain.com there's no result!
Offline
The `hostname` command is only relevant to your local machine. Read up on DNS to allow other computers on your network to be able to resolve.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
The `hostname` command is only relevant to your local machine. Read up on DNS to allow other computers on your network to be able to resolve.
If you're referring to DNS (like this? https://wiki.archlinux.org/index.php/DNS_with_bind ?) then I don't see how that will work.
My network already has a DNS, it works for every other machine on this network apart from the arch machine.
Offline
If you're referring to DNS (like this? https://wiki.archlinux.org/index.php/DNS_with_bind ?) then I don't see how that will work.
Yes, that is correct.
My network already has a DNS, it works for every other machine on this network apart from the arch machine.
Are you already running bind internally for lol.XXXXXX.com private.XXXXXX.com and/or XXXXXX.com?
What are the other machines? If they are Windows or Mac's, then they may be using NetBIOS / WINS / mDNS (I'm not fully up to speed on the latest Windows/Apple name resolution systems) to resolve each other.
All you've done at the moment is tell your computer what it is called; now you have to find a way to "announce" (or otherwise inform) the rest of the world (whether that is the whole internet, or just your LAN) what it is called. The normal (heterogeneous) way to do this is using DNS.
Last edited by fukawi2 (2011-10-10 07:13:13)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
+1.
Either you config a DNS-server on your network (bind9 is relatively easy), or you make all your clients broadcast the necessary information, but I don't know if the latter works for DNS.
Offline
+1.
or you make all your clients broadcast the necessary information, but I don't know if the latter works for DNS.
Ok the situation is that there's already a DNS server set up that automagically gets the hostnames on the machines in this LAN. I've just migrated from a mac, on that machine I set the hostname and then that hostname was the address on the LAN here. I don't know how my last machine broadcast it but just wondering what I can do to get this one to broadcast it also
Offline
zenlord wrote:+1.
or you make all your clients broadcast the necessary information, but I don't know if the latter works for DNS.
Ok the situation is that there's already a DNS server set up that automagically gets the hostnames on the machines in this LAN. I've just migrated from a mac, on that machine I set the hostname and then that hostname was the address on the LAN here. I don't know how my last machine broadcast it but just wondering what I can do to get this one to broadcast it also
Could have something to do with AVAHI and ZeroConf, as Apple uses services like those (Bonjour).
#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.
Offline
this is resolved. I've found that our network does this through their DHCP server. So long as I have my machine here set to DHCP I get my hostname coming up on the network.
Offline