Click to See Complete Forum and Search --> : Need to ping hostname
varg_b
05-20-2004, 07:48 PM
Hello everyone,
I have a static IP on my machine. in the host file i have specified as
IP Address =192.168.1.111 hostname=sales.mirror.com.au
Alias=sales
or 192.168.1.111 sales.mirror.com.au sales
I can ping 192.168.1.111 but when I ping with the hostname or alias from the other machine I can't do that but if I modify my other machine host file and put those details then I can ping. But what I need is I want to ping from other machine as hostname or alias with out making changes in those machine's host file. Can someone give me steps how to do this, what are the configuration to be done. This is only for Intranet purpose.
I'm new to linux, please help me out.
Blesson
JThundley
05-20-2004, 07:56 PM
Dude, did you just make up that syntax? The correct syntax is:
192.168.1.111 localhost.localdomain localhost
of course substitute your own values.
sploo22
05-20-2004, 09:30 PM
OK, you need to set up your network's DNS server to resolve sales.mirror.com.au to the computer's IP address. How is your intranet set up exactly?
maccorin
05-20-2004, 09:36 PM
sploo22 is right you need DNS... check out bind9 tutorials and the like
word of warning, zone files are rather... umm... poorly designed IMHO (read: cryptic as hell)
bwkaz
05-20-2004, 09:38 PM
Originally posted by varg_b
when I ping with the hostname or alias from the other machine I can't do that Right. The other machine has no idea what you mean when you try to resolve "sales.mirror.whatever". It can't -- its hosts file and DNS are the only two things it consults.
But what I need is I want to ping from other machine as hostname or alias with out making changes in those machine's host file. You need to set up a DNS server. I remember that there's a DNS server somewhere that uses the server's hosts file as its config file (so no setting up named zone files, for example). That would probably be the easiest one to go for, but I can't remember its name... :(
maccorin
05-20-2004, 10:04 PM
Originally posted by bwkaz
I remember that there's a DNS server somewhere that uses the server's hosts file as its config file (so no setting up named zone files, for example). That would probably be the easiest one to go for, but I can't remember its name... :(
If you do remember it by chance at some point, please post it, I hate bind... :p
bwkaz
05-20-2004, 10:58 PM
This is what I was thinking of:
http://www.justlinux.com/forum/showthread.php?s=&threadid=121032
It doesn't use the hosts file after all, instead, it acts like a forwarder (uses your resolv.conf file). Ehh... oops. ;)
maccorin
05-20-2004, 11:01 PM
:( oh well
maybe that's a future project for me... simple little dns server that just reads your hosts file as A records... it would have to ignore MX and the like though, or just forward those to whatever is listed in your resolv.conf
varg_b
05-20-2004, 11:07 PM
Originally posted by sploo22
OK, you need to set up your network's DNS server to resolve sales.mirror.com.au to the computer's IP address. How is your intranet set up exactly?
I'm not sure if I can explain the intranet setup, my network manager takes care of those things but anyway I can tell you that the IP address is given to me by my network manager and so i assume the server takes care of validating the IP address, we have a firewall/proxy.
I need the steps to configure DNS, I tried to play around with it unsuccesfully. What do I do???
Blesson
mdwatts
05-21-2004, 03:46 PM
Originally posted by varg_b
I need the steps to configure DNS, I tried to play around with it unsuccesfully. What do I do???
What are you using and what have you tried so far?
happybunny
05-21-2004, 04:45 PM
maybe i am missunderstanding....it sounds like you have DNS setup on your network, you just need to use it.
The "network manager takes care of those things" needs to add your new machines IP and all the names you want to call it (Sales) into your existing DNS database.
Then, any machine using that DNS database will be able to ping sales by its name.
If you need help with the DNS database, let us know what type of DNS/BIND "network manager takes care of those things" is using.