Bug 1470966 - NetworkManager - wrong interpretation of DHCP option
Summary: NetworkManager - wrong interpretation of DHCP option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 26
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1455557 1469786 1473423 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-14 07:22 UTC by Antonin
Modified: 2017-07-25 14:35 UTC (History)
8 users (show)

Fixed In Version: NetworkManager-1.8.2-1.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-20 15:54:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Antonin 2017-07-14 07:22:33 UTC
Description of problem:

After upgrading to Fedora 26 I get on my pc (DHCP client) wrong domain list defined in "search" option on my DHCP server.

/etc/resolv.conf on pc with hostname "pc1.home":
    # Generated by NetworkManager
    search pc1.home
    nameserver 192.168.0.1

/etc/dhcp/dhcpd.conf on my DHCP server:
    option domain-name "home";


Version-Release number of selected component (if applicable):

NetworkManager.x86_64  1:1.8.0-6.fc26


How reproducible:

Use DHCP server with defined "search" option.


Actual results:

/etc/resolv.conf:
    search pc1.home


Expected results:

/etc/resolv.conf:
    search home

Comment 1 Beniamino Galvani 2017-07-17 08:31:08 UTC

*** This bug has been marked as a duplicate of bug 1404350 ***

Comment 2 Beniamino Galvani 2017-07-18 11:50:31 UTC
Unduplicating, the other bug is for F25.

Comment 3 Fedora Update System 2017-07-18 11:52:23 UTC
NetworkManager-1.8.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8949032ca5

Comment 4 Fedora Update System 2017-07-20 00:25:53 UTC
NetworkManager-1.8.2-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8949032ca5

Comment 5 Beniamino Galvani 2017-07-20 07:08:03 UTC
*** Bug 1455557 has been marked as a duplicate of this bug. ***

Comment 6 Beniamino Galvani 2017-07-20 07:08:40 UTC
*** Bug 1469786 has been marked as a duplicate of this bug. ***

Comment 7 Werner Gold 2017-07-20 10:30:24 UTC
After the update, the search parameter now does contain
search <domain> <hostname>.<domain>
Although that effectively solves the problem, I am not sure, why <hostname>.<domain> is still in. What is its purpose?

Comment 8 Fedora Update System 2017-07-20 15:54:07 UTC
NetworkManager-1.8.2-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Beniamino Galvani 2017-07-21 13:18:09 UTC
(In reply to Werner Gold from comment #7)
> After the update, the search parameter now does contain
> search <domain> <hostname>.<domain>
> Although that effectively solves the problem, I am not sure, why
> <hostname>.<domain> is still in. What is its purpose?

Hi,

the purpose is explained here:

https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/dns/nm-dns-manager.c?h=nm-1-8&id=1.8.2#n1045

Comment 10 Beniamino Galvani 2017-07-25 14:35:11 UTC
*** Bug 1473423 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.