Koozali.org: home of the SME Server

smeserver-dhcp-dns : need testers

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
smeserver-dhcp-dns : need testers
« on: May 28, 2014, 07:16:07 PM »
I have made a new contribs for sme8 based on the work of stefano in the bug 2388 (http://bugs.contribs.org/show_bug.cgi?id=2388).
The purpose of that contribs is to give a name to hosts by the dhcp service in order to avoid the dummy names 'pc-0001, pc-0002....'

I need some of your tests to validate the release. You need 'dag and stephdl' repositories

Code: [Select]
yum install --enablerepo=stephdl,dag smeserver-dhcp-dns
signal-event dhcp-dns

Of course all is done by a dhcp service so you need to set up one and play with other computers

If all is ok then you may be able to see the name of your computer in the tinydns record

Code: [Select]
less /var/service/tinydns/root/data
Then you can ping your host by their name directly  in your sme console, test it

Code: [Select]
ping pc_name
if it doesn't work you can take a look to the dhcpd.leases to see if your host is well written in that configuration file with a correct dhcp lease.

Code: [Select]
less /var/lib/dhcpd/dhcpd.leases dhcpd record
for sme9 a bug is pending your verification in order to be released http://bugs.contribs.org/show_bug.cgi?id=2388
« Last Edit: May 31, 2014, 07:45:18 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: smeserver-dhcp-dns : need testers
« Reply #1 on: May 31, 2014, 02:23:02 AM »
This is a GREAT achievement!! 
Congratulations to everyone colaborating on this.

I've installed it on my own server, and ping to hostname works ok!
Have done NOTHING else but a few ping tests... but I'm happy till now.
Hope it broke nothing! :)

I was really upset with PC-XXX names ... glad someone fixed it!
CONGRATULATIONS and THANKS FOR ALL YOU!

Jáder
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #2 on: May 31, 2014, 07:50:51 AM »
jader do you have :

-consulted the logs to see if you have errors (use the audittools logcheck)
-tried to ping another computer from a dhcp_client with a hostname (sme_hostname, other_client_hostname...)
-...

After that we have the sme9_bug to verify if we want to see that feature in sme9
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: smeserver-dhcp-dns : need testers
« Reply #3 on: May 31, 2014, 12:07:53 PM »
My own server @ home is a messy... lots and lots of contribs tested so no so reliable to verify normal behaviour.
At least I can make any tests you need to garantee it works here.
And please let me know any tests I should do for include this as a SME9 feature.
I have no idea about what audittools means, but I can create VirtualBox VMs :)

On SME81 I can confirm it pings for hosts not listed on "Hosts" on web interface (most of my normal use devices has fixed addressess this way) from SME server and from another dhcp_client (this Macmini). Sucess. No more PC-XXX names!
...

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #4 on: May 31, 2014, 12:43:24 PM »
a)the audittools are a collection of useful script for sysadmin who want to debug some issues without the GUI http://wiki.contribs.org/Audit_Tools

b) I'm proud that you have plenty confident of my work and my skill, but I formally don't advice to test my work on a production server please use first a VM such as virtualbox (I have a lot of VM that I can clone in few minutes, both 32 and 64 bit).

c)The verification process is a QA method that a developer or rpm builder must not verify the work they have done , Therefore testers can valid or not the work because they can 'criticize' or find what is odd. see that link to see all bugs are pending our work http://wiki.contribs.org/Verification_Queue

However if we lack of developers, patch submitters, rpm builders, documentation writers , what is not normal, we lack about testers. Feel Free to be an actor in the SME adventure :)

« Last Edit: May 31, 2014, 01:15:02 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #5 on: June 01, 2014, 12:55:58 PM »
released in stephdl repo
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #6 on: July 25, 2015, 10:23:02 AM »
new version to test, following the work of bug 2388, now it is a contrib and you are welcome to test it , please

see http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/ and http://wiki.contribs.org/Dhcp-dns

for sme8
Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/smeserver-dhcp-dns-1.2.0-1.el5.sme.noarch.rpm
signal-event post-upgrade; signal-event reboot

for sme9
Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/smeserver-dhcp-dns-1.2.0-1.el6.sme.noarch.rpm
signal-event post-upgrade; signal-event reboot

then when dhcp.leases is updated you can find the hostname of associated clients  with an ip in  /var/service/tinydns/root/data

if all is ok you can do

Code: [Select]
ping HostnameClient
host HostnameClient
and retrieve its IP and its full dns entry

you have an event dhcp-dns if you want to force the renew, however every 30 seconds, the dhcp.leases is watched.

Please test and report, thank in advance.
« Last Edit: July 25, 2015, 06:16:06 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: smeserver-dhcp-dns : need testers
« Reply #7 on: July 25, 2015, 12:03:00 PM »
is the contrib available either for SME8 and SME9?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #8 on: July 25, 2015, 12:50:12 PM »
yes stefano, now it is a contrib available for sme8 and sme9.

IMHO it is a mandatory feature and with the contrib step, we can hope to validate the code an import it a day in the core.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: smeserver-dhcp-dns : need testers
« Reply #9 on: July 25, 2015, 01:07:08 PM »
All good here Stephdl, works as described, don't see any errors, and I thought you were supposed to be on holiday, your missus will be less than pleased :-)
--
qui scribit bis legit

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #10 on: July 25, 2015, 01:50:48 PM »
It could be good to test it on a server with a lot of dhcp clients since when the dhcpd lease is over the entry must be removed or added for new client.

you can compare /var/service/tinydns/root/data and /var/lib/dhcpd/dhcpd.leases

Of course the dns entry is valid for the whole period during the ip address is given so if the client is stopped you can have unreachable answers.

I will ask to a friend with a server in a french school to test it
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: smeserver-dhcp-dns : need testers
« Reply #11 on: July 25, 2015, 04:56:48 PM »
yes stefano, now it is a contrib available for sme8 and sme9.


thank  you, testing asap on a few servers of mine

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #12 on: July 25, 2015, 06:15:49 PM »
thank  you, testing asap on a few servers of mine

you should use

Code: [Select]
host HostNameinstead of
Code: [Select]
dig any HostName
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #13 on: July 25, 2015, 06:48:59 PM »
I will ask to a friend with a server in a french school to test it

Ok I'm testing it on a subnet 192.168.148.0/22 -> 1024 IP
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-dhcp-dns : need testers
« Reply #14 on: July 30, 2015, 10:23:03 PM »
new version to test, following the work of bug 2388, now it is a contrib and you are welcome to test it , please

see http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/ and http://wiki.contribs.org/Dhcp-dns

for sme8
Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/smeserver-dhcp-dns-1.2.0-2.el5.sme.noarch.rpm
signal-event post-upgrade; signal-event reboot

for sme9
Code: [Select]
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-dhcp-dns/smeserver-dhcp-dns-1.2.0-2.el6.sme.noarch.rpm
signal-event post-upgrade; signal-event reboot

then when dhcp.leases is updated you can find the hostname of associated clients  with an ip in  /var/service/tinydns/root/data

if all is ok you can do

Code: [Select]
ping HostnameClient
host HostnameClient
and retrieve its IP and its full dns entry

you have an event dhcp-dns if you want to force the renew, however every 30 seconds, the dhcp.leases is watched.

Please test and report, thank in advance.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!