Bug #2918
Dnsmasq: daemon doesn't start if NameServers property contains more than 2 addresses
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-dnsmasq | |||
Target version: | v6.5 | |||
Security class: | Resolution: | |||
Affected version: | v6.5-final | NEEDINFO: | No |
Description
When the system has more than 2 dns configured and nethserver-dnsmasq is installed, no DNS resolution is possible because dnsmasq can't start
Steps to reproduce- Set NameServers property with 3 dns and expand the template:
config setprop dns NameServers 8.8.8.8,8.8.4.4,192.168.1.1 expand-template /etc/dnsmasq.conf
- The configuration file is broken:
... server=8.8.8.8 server=8.8.4.4,192.168.1.1 ...
- Try to start dnsmasq:
Starting dnsmasq: dnsmasq: error at line 52 of /etc/dnsmasq.conf [FAILED]
Workaround
Set only two addresses inside the NameServers
property
Associated revisions
dnsmasq.conf template: handle more than 2 servers. Refs #2918
resolv.conf: fix multiple "nameserver" expansion. Refs #2918
Add also the "search" directive. If it is missing, ifup-post script
adds it automatically, invoking set_hostname function, defined in
/etc/sysconfig/network-scripts/network-functions.
History
#1 Updated by Giacomo Sanchietti almost 7 years ago
- Description updated (diff)
#2 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from NEW to TRIAGED
- Target version set to v6.5
- % Done changed from 0 to 20
#3 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Giacomo Sanchietti
- % Done changed from 20 to 30
#4 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
#5 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 60 to 70
- nethserver-dnsmasq-1.2.1-2.0gited6611e8.ns6.noarch.rpm
Test case
The bug should not be reproducible.
#6 Updated by Davide Principi almost 7 years ago
- Assignee set to Davide Principi
#7 Updated by Davide Principi almost 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 70 to 90
VERIFIED
#8 Updated by Davide Principi almost 7 years ago
- Status changed from VERIFIED to ON_QA
- % Done changed from 90 to 70
#9 Updated by Davide Principi almost 7 years ago
- Status changed from ON_QA to TRIAGED
- % Done changed from 70 to 20
/etc/e-smith/templates/etc/resolv.conf/20roleNone fragment has the same problem: fix also nethserver-base
#10 Updated by Giacomo Sanchietti almost 7 years ago
- Description updated (diff)
#11 Updated by Davide Principi almost 7 years ago
- Status changed from TRIAGED to MODIFIED
- % Done changed from 20 to 60
Changed also resolv.conf template in nethserver-base
.
Test case 2
Verify no more than 2 nameserver
directives are present in /etc/resolv.conf
#12 Updated by Davide Principi almost 7 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing:
nethserver-base-2.5.1-3.0gitce408849.ns6.noarch.rpm
nethserver-dnsmasq-1.2.1-7.0gite5466a6e.ns6.noarch.rpm
#13 Updated by Giacomo Sanchietti almost 7 years ago
- Assignee set to Giacomo Sanchietti
#14 Updated by Giacomo Sanchietti almost 7 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
- migration fragment
- resolv.conf
- dnsmasq.conf
#15 Updated by Davide Principi almost 7 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates
nethserver-base-2.5.2-1.ns6.noarch.rpm
nethserver-dnsmasq-1.3.0-1.ns6.noarch.rpm