Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSlow DNS resolution time in Debian VMs #2674
Comments
andrewdavidwong
added
bug
C: Debian
labels
Mar 6, 2017
andrewdavidwong
added this to the Release 3.2 updates milestone
Mar 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 7, 2017
Member
As for missing DNAT rule in sys-net - if DHCP provided only one address, only one rule is added. This is intended behavior. In Linux, /etc/resolv.conf is used sequentially - always first address is tried first and only when it fails the next one is tried. Lack of second DNAT is not a problem, because there is nothing to DNAT to anyway. This all is probably unrelated to slow DNS response.
What applications are slow in DNS resolution? Is it slow with dig?
|
As for missing DNAT rule in sys-net - if DHCP provided only one address, only one rule is added. This is intended behavior. In Linux, What applications are slow in DNS resolution? Is it slow with dig? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 7, 2017
Member
Oh, I see @unman already posted similar response in the original thread.
|
Oh, I see @unman already posted similar response in the original thread. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Mar 19, 2017
Member
@marmarek
The issue here is that a qube has by default two resolvers configured, but this user only had 1 DNS server on their local network. After the name server on the reporter's network failed (by design), resolution was attempted using the second server configured in the qube - this also failed, of course, but as a timeout. The timeout meant there appeared to be a delay in DNS response.
It's reasonable to configure qubes with two addresses - that provides versatility when changing networks. The only change we could make would be to add a second DNAT rule, with NAT to the same DNS server if only one was configured. That would remove the timeout. Worth it?
|
@marmarek |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 19, 2017
Member
The only change we could make would be to add a second DNAT rule, with NAT to the same DNS server if only one was configured. That would remove the timeout. Worth it?
|
unman
referenced this issue
in QubesOS/qubes-core-agent-linux
Mar 19, 2017
Merged
If there is only 1 DNS server make both DNAT rules point to it #44
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unman
Apr 25, 2017
Member
@andrewdavidwong Please close this. The apparent slow resolution arose because OP's network had only one DNS server, configured to reject certain DNS requests, and the netVM therefore fell back to using the second configured DNS server, which did not exist. This was what caused the apparent slow resolution. The (now merged) PR removes the scope for this happening.
|
@andrewdavidwong Please close this. The apparent slow resolution arose because OP's network had only one DNS server, configured to reject certain DNS requests, and the netVM therefore fell back to using the second configured DNS server, which did not exist. This was what caused the apparent slow resolution. The (now merged) PR removes the scope for this happening. |
andrewdavidwong commentedMar 6, 2017
•
edited
Edited 1 time
-
andrewdavidwong
edited Mar 8, 2017 (most recent)
Qubes OS version (e.g.,
R3.2):R3.2Affected TemplateVMs (e.g.,
fedora-23, if applicable):debian-8debian-9Antoine via qubes-users wrote: