linux - Is it possible to collect .local domain ip addresses hierarchically for building dhcp based dns? -


suppose in normal dhcp environment,

you'll ip address like:

  • 192.168.0.101 linuxpc1.localdomain on segment a
  • 192.168.1.102 linuxpc2.localdomain on segment b

i want them installing avahi on linuxpcs hostname set.

so on 192.168.2.103 linuxpc3.localdomain, running

ping linuxpc1.local 

would work.

what easiest way realizing not affecting dhcp server settings?

or if difficult, @ least want know ip address name running script linuxpc3.localdomain host.

getipbyname-avahi.py linuxpc1.local -> returns 192.168.0.101 

i don't want setup nis or ldap or sql ... thought reusing avahi capability of resolving dhcped ip address start.

why don't enable dns updates in dhcp ?

something like

ddns-updates                on; ddns-update-style           interim; ddns-domainname             "network.athome."; ddns-rev-domainname         "in-addr.arpa."; 

in dhcpd.conf (i'm assuming use isc's) , update dns.

if can't change dhcp configuration can use nsupdate in client script hook.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -