Bug #2052

DNS change not applied

Added by Filippo Carletti about 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-dnsmasq
Target version:v6.4-beta2
Security class: Resolution:
Affected version: NEEDINFO:No

Description

Removing a DNS in server-manager DNS+DHCP panel has no effect, ie dnsmasq.conf is not expanded and dnamsq is not restarted.


Related issues

Related to NethServer 6 - Bug #1983: DNS configure module triggers non-existing event CLOSED 05/28/2013 05/28/2013

Associated revisions

Revision f4afff81
Added by Giacomo Sanchietti about 8 years ago

createlinks: expand /etc/dnsmasq.conf and reload dnsmasq on nethserver-dnsmasq-save event. Refs #2052

History

#2 Updated by Davide Principi about 8 years ago

Probably this is related to nethserver-hosts|fc92043b

#3 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

Davide is right: the problem has been raised after changing from nethserver-dnsmasq-save event to nethserver-hosts-save event.

The solution is adding all logic of nethserver-dnsmasq-save inside nethserver-hosts-save event:
  • expand /etc/dnsmasq.conf
  • reload (or restart) dnsmasq

#4 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#5 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#6 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
New package in nethserver-testing:
  • nethserver-dnsmasq-1.0.5-1

Test case

  • Install the above package
  • Update DNS1 or DNS2 from web UI
  • Check new DNS addresses are present in /etc/dnsmasq.conf (grep server= /etc/dnsmasq.conf) and dnsmasq has been restarted
  • If possible, also check a DNS query

#7 Updated by Alessio Fattorini about 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90
Installed:
  nethserver-dnsmasq.noarch 0:1.0.5-1.ns6
[root@muflone ~]# ps ax | grep dnsmasq
24623 ?        S      0:00 /usr/sbin/dnsmasq -s nethesis.it

Changed dns1

[root@muflone ~]# grep server= /etc/dnsmasq.conf
server=192.168.5.252
server=8.8.8.8

Configuration is changed

[root@muflone ~]# ps ax | grep dnsmasq
24759 ?        S      0:00 /usr/sbin/dnsmasq -s nethesis.it

PID is changed

[root@muflone ~]# dig update.nethesis.it +short
c6.nethesis.it.
95.138.187.145

Query dns works

p.s. why bind-utils (dig) is not installed by default?

#8 Updated by Davide Principi about 8 years ago

  • Status changed from VERIFIED to CLOSED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 90 to 100

Moved to nethserver-updates repository

Also available in: Atom PDF