[EMAIL PROTECTED] wrote on 01/22/2004 03:37:21 PM:
> > Hello, > > > > Isn't it sufficient to add > > > > host hostname { > > hardware ethernet .... > > } > > > > to get "hostname" known to dns ? > > No need to fix the IP address; > > Short answer: no.
On a related question, is it possible to get the hostname of a computer that has a DHCP lease from outside the firewall?
I know the information is stored in dhcpd.leases, but I don't have a way to send that file to another computer for processing. Being a firewall, I don't really want a way to do that, either. But what would be great would be some sort of tool that could communicate with the DHCP server and retrieve that information: kind of like a DNS lookup, but against the DHCP server.
Is there such a tool?
I don't quite understand the question. What do you mean by "get the hostname"? Do you mean do something analogous to a reverse lookup in DNS (submit the IP address and get an FQN in response)?
To the best of my understanding, DNCP servers have no provision for responding to that sort of request. What you can do, in principle, is use the information in dhcpd.leases to update DNS records. You'd do this, probably, with a script that runs periodically via crond, checks the leases file, and uses any host-provided hostname info in it to update the DNS records. I haven't seen such a script or program around, but it's not hard in concept, though the limitations of LEAF (lack of a nice scripting language like Perl, mainly) may make it a bit trickier than I'm allowing for.
This assumes, of course, that authoritative DNS for the LAN is running on the same host as the DHCP server (or that some suitable network access, perhaps NFS or SMB, lets the DNS server read the leases file on the DHCP server).
Why would you want to communicate information about LAN hosts to a host outside the firewall? Surely not for general-purpose access ... that makes no sense in a NAT'd setting, and even if the LAN hosts have public addresses, you usually want to firewall them to limit off-site access to them. If you want to do this for a special, privileged off-site host (say one you are using for remote management), using some sort of encrypted tunnel to transfer the dhcpd.leases file seems like a more natural solution.
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
