Bug 1377680 - When using dns=dnsmasq, resolving addresses on an OpenVPN link only works with the first connection.
Summary: When using dns=dnsmasq, resolving addresses on an OpenVPN link only works wit...
Keywords:
Status: CLOSED DUPLICATE of bug 1373485
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager-openvpn
Version: 24
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 11:19 UTC by Alvin
Modified: 2016-09-20 13:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-20 13:41:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alvin 2016-09-20 11:19:12 UTC
When NetworkManager controls dnsmasq, 127.0.0.1 is used as DNS server. OpenVPN is then able to both use the local and remote DNS servers.

/etc/NetworkManager/NetworkManager.conf
  [main]
  dns=dnsmasq

This works, but only during the first connection.
Reproduce this by having at least one OpenVPN connection configured.

Steps to Reproduce:
1. Make sure NetworkManager controls dnsmasq (dns=dnsmasq)
2. Connect to an OpenVPN server
3. resolve DNS for a host on the network
   host hostname.example.com
   hostname.example.com has address xxx.xxx.xxx.xxx
4. Disconnect the VPN
5. Connect again to any OpenVPN server
5. resolve DNS for a host on that network

Actual results:

   host hostname.example.com
   Host hostname.example.com not found: 5(REFUSED)

Expected results:

  hostname.example.com has address xxx.xxx.xxx.xxx
  (just like the first time)

Comment 1 Beniamino Galvani 2016-09-20 13:41:07 UTC
(In reply to Alvin from comment #0)
> When NetworkManager controls dnsmasq, 127.0.0.1 is used as DNS server.
> OpenVPN is then able to both use the local and remote DNS servers.
> 
> /etc/NetworkManager/NetworkManager.conf
>   [main]
>   dns=dnsmasq
> 
> This works, but only during the first connection.

This is a known issue in dnsmasq, already tracked in bug 1373485. In the meanwhile you can use this workaround:

https://bugzilla.redhat.com/show_bug.cgi?id=1338731#c23

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


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