URN Logo
UNIX Resources » Linux » Linux Forum » Linux Networking Support » Page.70 » Dynamic Hostname->ip
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Dynamic Hostname->ip
Subject: Dynamic Hostname->ip
Author: electric    Posted: 2004-05-29 18:43:49    Length: 1,393 byte(s)
[Original] [Print] [Top]
This sounds simple but I can't seem to find any clear information on how to do this: I have a small LAN and I want to setup it to use DHCP for IP assignment. The problem is that I will want to connect to the computers and don't want to scan then net and try IP by IP to find out which computer is the one I am trying to connect to. I want to use the computer's hostname to connect to it. It is just related to the internal network 192.168.x.x addresses.
Example: Machine A receives ip X.X.X.X if I do something like ssh A I can connect to it but if next time it gets a lease from DHCP it's IP is Y.Y.Y.Y doing ssh A will transparently connect me to the machine.
The best I could find so far is using DHCP with BIND with ddns activated so when the client contacts the DHCP server sending his hostname, the server dynamically updates the configured zone for the local network (say localnet.com). That way when someone refers to machine A (since localnet.com is the domain listed in resolv.conf) the machine will look for a.localnet.com in the named server which will (we can only hope) answer with the ip of machine A.
Ok, I am having a HARD time configuring that. Isn't there a easier way to do something similar to what I want? If there is, what is it? If there isn't, can someone point me out a GOOD tutorial for this?

Thanks in advance!
[Original] [Print] [Top]
Subject: Dynamic Hostname->ip
Author: x86processor    Posted: 2004-05-31 00:54:48    Length: 464 byte(s)
[Original] [Print] [Top]
Quick HOWTO: Configuring DNS
http://www.siliconvalleyccie.com/linux-hn/.../dns-static.htm

Quick HOWTO: Linux Home Networking
http://www.siliconvalleyccie.com/#LINUX

x86
----
Linux is the kernel. The entire system is called GNU/Linux.
http://www.gnu.org/gnu/linux-and-gnu.html

My domain: shakthimaan.com (Offline)
orkut ID: shakthimaan
IRC nick: mbuf
[Original] [Print] [Top]
Subject: Dynamic Hostname->ip
Author: electric    Posted: 2004-05-31 05:36:27    Length: 859 byte(s)
[Original] [Print] [Top]
Thanks for the info, those tutorial are great but I can't seem to solve my problem with that. What I need would be to have in each machine in my network a hosts files that indicate the name and ip of every other machine or the same thing in my firewall/router DNS. The problem is that those options are static and when the internal machines get a different internal ip from the dhcp server I will have to manually change all the hosts files or update the dns zone file.
Again I fall back to believe that the solution is using the Dynamic DNS thing, but those tutorials go as far as explaining how to make your web server update an external 3rd party dynamic dns server when it's ip changes, what I will most likely need is to set up an internal dynamic dns and have my internal machines update it with there local hostnames.

Regards.
[Original] [Print] [Top]
Subject: Dynamic Hostname->ip
Author: pa4wdh    Posted: 2004-05-31 11:22:42    Length: 337 byte(s)
[Original] [Print] [Top]
It is not really the thing you're asking for, but setting up the DHCP server to give a certain IP address to a certain MAC address is quite easy. In that way you don't need ddns, because computers get the same IP address all the time.
The IP addresses might even be so easy that you don't even need a DNS :-)
 
----
The biggest difference between M$ stuff and the rest ? Most stuff is secure by design, M$ stuff is secure by accident.

bash# killall gaim
killall: Don't shoot the messenger !

If we have /dev/powerbutton, what would touch /dev/powerbutton do ?
[Original] [Print] [Top]
« Previous thread
Fedora Core 2 & Comtrend Ct-350
Linux Networking Support
Page. 70
Next thread »
Netgear Pcmci Wg511t
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:52:13, cost 0.024511814117432 ms.