How do I set the single-request option in NetworkManager? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!DNS resolve timeout on RHEL 6.3 behind firewallWhere does NetworkManager store the domain name for generating resolv.conf?What is the relation between NetworkManager and network service in Fedora/RHEL/Centos?How do I force NetworkManager to update /etc/resolv.conf?Forward DNS Table Entries?Changing DNS server timeout on Domain Controller fixed external DNS resolution failures--why?I'm trying to ascertain how is my Networkmanager receives specific name server information- possibly Cobbler relatedHow to manage DNS in NetworkManager via console (nmcli)?How do I supply a password to NetworkManager-openconnect automatically?Requests timeout when made from outside the LANHow to undo NetworkManager changes
What is homebrew?
What's the meaning of "fortified infraction restraint"?
For a new assistant professor in CS, how to build/manage a publication pipeline
How do I find out the mythology and history of my Fortress?
What do you call the main part of a joke?
Do wooden building fires get hotter than 600°C?
What is the meaning of the new sigil in Game of Thrones Season 8 intro?
Compare a given version number in the form major.minor.build.patch and see if one is less than the other
Why aren't air breathing engines used as small first stages
Can anything be seen from the center of the Boötes void? How dark would it be?
Is there a kind of relay only consumes power when switching?
How do pianists reach extremely loud dynamics?
old style "caution" boxes
Would "destroying" Wurmcoil Engine prevent its tokens from being created?
Why didn't Eitri join the fight?
Does classifying an integer as a discrete log require it be part of a multiplicative group?
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How to answer "Have you ever been terminated?"
What is the meaning of the simile “quick as silk”?
What is the longest distance a player character can jump in one leap?
Do square wave exist?
Is there such thing as an Availability Group failover trigger?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
How could we fake a moon landing now?
How do I set the single-request option in NetworkManager?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!DNS resolve timeout on RHEL 6.3 behind firewallWhere does NetworkManager store the domain name for generating resolv.conf?What is the relation between NetworkManager and network service in Fedora/RHEL/Centos?How do I force NetworkManager to update /etc/resolv.conf?Forward DNS Table Entries?Changing DNS server timeout on Domain Controller fixed external DNS resolution failures--why?I'm trying to ascertain how is my Networkmanager receives specific name server information- possibly Cobbler relatedHow to manage DNS in NetworkManager via console (nmcli)?How do I supply a password to NetworkManager-openconnect automatically?Requests timeout when made from outside the LANHow to undo NetworkManager changes
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. As others have tried, we've disabled IPv6 (not used in our internal environment), and it didn't completely resolve the issue. Searching through the forums, we found the suggestion to add "options single-request" to /etc/resolv.conf; this does seem to fix the problem, but manual edits to resolv.conf are routinely overwritten by NetworkManager.
I've searched around, but I can't seem to find a place in nmtui or nmcli to specify this so that NetworkManager knows to include the option when it rewrites the file.
Am I missing something obvious? Is there a way to set this somewhere else? Is there another, preferable fix for the issue?
domain-name-system linux-networking networkmanager
add a comment |
In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. As others have tried, we've disabled IPv6 (not used in our internal environment), and it didn't completely resolve the issue. Searching through the forums, we found the suggestion to add "options single-request" to /etc/resolv.conf; this does seem to fix the problem, but manual edits to resolv.conf are routinely overwritten by NetworkManager.
I've searched around, but I can't seem to find a place in nmtui or nmcli to specify this so that NetworkManager knows to include the option when it rewrites the file.
Am I missing something obvious? Is there a way to set this somewhere else? Is there another, preferable fix for the issue?
domain-name-system linux-networking networkmanager
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02
add a comment |
In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. As others have tried, we've disabled IPv6 (not used in our internal environment), and it didn't completely resolve the issue. Searching through the forums, we found the suggestion to add "options single-request" to /etc/resolv.conf; this does seem to fix the problem, but manual edits to resolv.conf are routinely overwritten by NetworkManager.
I've searched around, but I can't seem to find a place in nmtui or nmcli to specify this so that NetworkManager knows to include the option when it rewrites the file.
Am I missing something obvious? Is there a way to set this somewhere else? Is there another, preferable fix for the issue?
domain-name-system linux-networking networkmanager
In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. As others have tried, we've disabled IPv6 (not used in our internal environment), and it didn't completely resolve the issue. Searching through the forums, we found the suggestion to add "options single-request" to /etc/resolv.conf; this does seem to fix the problem, but manual edits to resolv.conf are routinely overwritten by NetworkManager.
I've searched around, but I can't seem to find a place in nmtui or nmcli to specify this so that NetworkManager knows to include the option when it rewrites the file.
Am I missing something obvious? Is there a way to set this somewhere else? Is there another, preferable fix for the issue?
domain-name-system linux-networking networkmanager
domain-name-system linux-networking networkmanager
asked Apr 6 '18 at 13:22
Thomas J. GirschThomas J. Girsch
13
13
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02
add a comment |
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02
add a comment |
3 Answers
3
active
oldest
votes
You should be able to add
dns none
rc-manager unmanaged
to the [main]
section of your /etc/networkManager/NetworkManager.conf
file. This should stop it from over-writing your resolver configuration. You can check out the options in the NetworkManager.conf man page on your system.
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
add a comment |
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
add a comment |
You could add a script to your /etc/NetworkManager/dispatch.d/
folder though.
I have /etc/NetworkManager/dispatch.d/999-resolv-options
(make sure it's owned by root, no setuid and chmod
'ed to 700 though, according to documentation):
#!/bin/bash
IFACE="$1"
ACTION="$2"
# Don't bother doing anything if action isn't "up"
if [ "$ACTION" != "up" ]; then
exit
fi
case "$IFACE" in
eth*|wlan*|en*)
grep -q "options timeout 1" /run/NetworkManager/resolv.conf &> /dev/null || echo "options timeout 1" >> /run/NetworkManager/resolv.conf
grep -q "options single-request" /run/NetworkManager/resolv.conf &> /dev/null || echo "options single-request" >> /run/NetworkManager/resolv.conf
;;
esac
If your network interface names starts with something else than eth*
, en*
or wlan*
then the case needs to be modified
This will check if options timeout 1
and options single-request
exist, and if not, append them.
Note: the script appends to /run/NetworkManager/resolv.conf
and not /etc/resolv.conf
. On my Ubuntu 18.10 setup /etc/resolv.conf
was symlinked to that file.
More info about the dispatch.d
abilities in the Network Manager docs.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f906397%2fhow-do-i-set-the-single-request-option-in-networkmanager%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should be able to add
dns none
rc-manager unmanaged
to the [main]
section of your /etc/networkManager/NetworkManager.conf
file. This should stop it from over-writing your resolver configuration. You can check out the options in the NetworkManager.conf man page on your system.
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
add a comment |
You should be able to add
dns none
rc-manager unmanaged
to the [main]
section of your /etc/networkManager/NetworkManager.conf
file. This should stop it from over-writing your resolver configuration. You can check out the options in the NetworkManager.conf man page on your system.
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
add a comment |
You should be able to add
dns none
rc-manager unmanaged
to the [main]
section of your /etc/networkManager/NetworkManager.conf
file. This should stop it from over-writing your resolver configuration. You can check out the options in the NetworkManager.conf man page on your system.
You should be able to add
dns none
rc-manager unmanaged
to the [main]
section of your /etc/networkManager/NetworkManager.conf
file. This should stop it from over-writing your resolver configuration. You can check out the options in the NetworkManager.conf man page on your system.
answered Apr 6 '18 at 14:02
Thomas NThomas N
34518
34518
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
add a comment |
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
I was hoping to continue using the Network Manager to auto-configure rather than disable it.
– Thomas J. Girsch
Apr 7 '18 at 14:26
add a comment |
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
add a comment |
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
add a comment |
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
answered May 3 '18 at 17:15
Thomas J. GirschThomas J. Girsch
13
13
add a comment |
add a comment |
You could add a script to your /etc/NetworkManager/dispatch.d/
folder though.
I have /etc/NetworkManager/dispatch.d/999-resolv-options
(make sure it's owned by root, no setuid and chmod
'ed to 700 though, according to documentation):
#!/bin/bash
IFACE="$1"
ACTION="$2"
# Don't bother doing anything if action isn't "up"
if [ "$ACTION" != "up" ]; then
exit
fi
case "$IFACE" in
eth*|wlan*|en*)
grep -q "options timeout 1" /run/NetworkManager/resolv.conf &> /dev/null || echo "options timeout 1" >> /run/NetworkManager/resolv.conf
grep -q "options single-request" /run/NetworkManager/resolv.conf &> /dev/null || echo "options single-request" >> /run/NetworkManager/resolv.conf
;;
esac
If your network interface names starts with something else than eth*
, en*
or wlan*
then the case needs to be modified
This will check if options timeout 1
and options single-request
exist, and if not, append them.
Note: the script appends to /run/NetworkManager/resolv.conf
and not /etc/resolv.conf
. On my Ubuntu 18.10 setup /etc/resolv.conf
was symlinked to that file.
More info about the dispatch.d
abilities in the Network Manager docs.
New contributor
add a comment |
You could add a script to your /etc/NetworkManager/dispatch.d/
folder though.
I have /etc/NetworkManager/dispatch.d/999-resolv-options
(make sure it's owned by root, no setuid and chmod
'ed to 700 though, according to documentation):
#!/bin/bash
IFACE="$1"
ACTION="$2"
# Don't bother doing anything if action isn't "up"
if [ "$ACTION" != "up" ]; then
exit
fi
case "$IFACE" in
eth*|wlan*|en*)
grep -q "options timeout 1" /run/NetworkManager/resolv.conf &> /dev/null || echo "options timeout 1" >> /run/NetworkManager/resolv.conf
grep -q "options single-request" /run/NetworkManager/resolv.conf &> /dev/null || echo "options single-request" >> /run/NetworkManager/resolv.conf
;;
esac
If your network interface names starts with something else than eth*
, en*
or wlan*
then the case needs to be modified
This will check if options timeout 1
and options single-request
exist, and if not, append them.
Note: the script appends to /run/NetworkManager/resolv.conf
and not /etc/resolv.conf
. On my Ubuntu 18.10 setup /etc/resolv.conf
was symlinked to that file.
More info about the dispatch.d
abilities in the Network Manager docs.
New contributor
add a comment |
You could add a script to your /etc/NetworkManager/dispatch.d/
folder though.
I have /etc/NetworkManager/dispatch.d/999-resolv-options
(make sure it's owned by root, no setuid and chmod
'ed to 700 though, according to documentation):
#!/bin/bash
IFACE="$1"
ACTION="$2"
# Don't bother doing anything if action isn't "up"
if [ "$ACTION" != "up" ]; then
exit
fi
case "$IFACE" in
eth*|wlan*|en*)
grep -q "options timeout 1" /run/NetworkManager/resolv.conf &> /dev/null || echo "options timeout 1" >> /run/NetworkManager/resolv.conf
grep -q "options single-request" /run/NetworkManager/resolv.conf &> /dev/null || echo "options single-request" >> /run/NetworkManager/resolv.conf
;;
esac
If your network interface names starts with something else than eth*
, en*
or wlan*
then the case needs to be modified
This will check if options timeout 1
and options single-request
exist, and if not, append them.
Note: the script appends to /run/NetworkManager/resolv.conf
and not /etc/resolv.conf
. On my Ubuntu 18.10 setup /etc/resolv.conf
was symlinked to that file.
More info about the dispatch.d
abilities in the Network Manager docs.
New contributor
You could add a script to your /etc/NetworkManager/dispatch.d/
folder though.
I have /etc/NetworkManager/dispatch.d/999-resolv-options
(make sure it's owned by root, no setuid and chmod
'ed to 700 though, according to documentation):
#!/bin/bash
IFACE="$1"
ACTION="$2"
# Don't bother doing anything if action isn't "up"
if [ "$ACTION" != "up" ]; then
exit
fi
case "$IFACE" in
eth*|wlan*|en*)
grep -q "options timeout 1" /run/NetworkManager/resolv.conf &> /dev/null || echo "options timeout 1" >> /run/NetworkManager/resolv.conf
grep -q "options single-request" /run/NetworkManager/resolv.conf &> /dev/null || echo "options single-request" >> /run/NetworkManager/resolv.conf
;;
esac
If your network interface names starts with something else than eth*
, en*
or wlan*
then the case needs to be modified
This will check if options timeout 1
and options single-request
exist, and if not, append them.
Note: the script appends to /run/NetworkManager/resolv.conf
and not /etc/resolv.conf
. On my Ubuntu 18.10 setup /etc/resolv.conf
was symlinked to that file.
More info about the dispatch.d
abilities in the Network Manager docs.
New contributor
edited Apr 12 at 8:08
New contributor
answered Apr 12 at 8:02
carestadcarestad
1012
1012
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f906397%2fhow-do-i-set-the-single-request-option-in-networkmanager%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The solution is to find and fix the broken firewall which is causing the problem.
– Michael Hampton♦
Apr 6 '18 at 15:56
Got a link / example?
– Thomas J. Girsch
Apr 7 '18 at 14:26
That depends on the specific broken firewall, and you didn't mention what is in your environment. If you have a really old Juniper firewall, you might read this. It might have been sort of acceptable to use temporary workarounds for issues like this in 2012, but in 2018 it's inexcusable for firewalls to still be doing this.
– Michael Hampton♦
Apr 7 '18 at 15:51
I'm sympathetic to (and agree with) the notion that the right thing to do is to fix the problem at its source. However, I only have access to and control of the Linux VMs with which I'm working. The switches, firewalls, gateways and domain controllers are outside my control, and I don't even know the particulars. All I can do is nag the network infrastructure group. Hence the need to find workarounds that ARE within my control.
– Thomas J. Girsch
Apr 9 '18 at 12:02