Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #211947 > unrolled thread
| Started by | Bob Bernstein <bob@fanatick.org> |
|---|---|
| First post | 2019-07-31 08:10 +0200 |
| Last post | 2019-07-31 14:50 +0200 |
| Articles | 9 — 7 participants |
Back to article view | Back to linux.debian.user
Which resolv.conf file? Bob Bernstein <bob@fanatick.org> - 2019-07-31 08:10 +0200
Re: Which resolv.conf file? Andrei POPESCU <andreimpopescu@gmail.com> - 2019-07-31 08:20 +0200
Re: Which resolv.conf file? Bob Bernstein <bob@fanatick.org> - 2019-07-31 09:00 +0200
Re: Which resolv.conf file? Andrei POPESCU <andreimpopescu@gmail.com> - 2019-07-31 22:40 +0200
Re: Which resolv.conf file? Judah Richardson <judahrichardson@gmail.com> - 2019-07-31 13:50 +0200
Re: Which resolv.conf file? Nate Bargmann <n0nb@n0nb.us> - 2019-07-31 13:50 +0200
Re: Which resolv.conf file? Maxim Svobonas <sp@nextcloud.spb.ru> - 2019-07-31 14:00 +0200
Re: Which resolv.conf file? Curt <curty@free.fr> - 2019-07-31 14:00 +0200
Re: Which resolv.conf file? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-31 14:50 +0200
| From | Bob Bernstein <bob@fanatick.org> |
|---|---|
| Date | 2019-07-31 08:10 +0200 |
| Subject | Which resolv.conf file? |
| Message-ID | <ypPYe-5Ud-5@gated-at.bofh.it> |
I want to make a change or two to resolv.conf, but every time I come across it I flee in terror, warned that my changes will be destroyed and the linux gods angered. What is the approved method for changing the list of DNS servers called upon by, in my case, Stretch on amd-64? (Is there someone I could slide a few simoleons to in order to facilitate this business?) Thank you -- These are not the droids you are looking for.
[toc] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2019-07-31 08:20 +0200 |
| Message-ID | <ypQ7T-5XW-1@gated-at.bofh.it> |
| In reply to | #211947 |
[Multipart message — attachments visible in raw view] — view raw
On Mi, 31 iul 19, 01:46:45, Bob Bernstein wrote: > I want to make a change or two to resolv.conf, but every time I come across > it I flee in terror, warned that my changes will be destroyed and the linux > gods angered. > > What is the approved method for changing the list of DNS servers called upon > by, in my case, Stretch on amd-64? It depends a lot on what combination of packages you have installed and are using. Starting with the obvious ones, please show the output of: apt list resolvconf apt list network-manager ls -l /etc/resolv.conf systemctl status systemd-resolved and copy-paste the contents of /etc/resolv.conf (or whatever it points to), /etc/network/interfaces and /etc/NetworkManager/NetworkManager.conf Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [next] | [standalone]
| From | Bob Bernstein <bob@fanatick.org> |
|---|---|
| Date | 2019-07-31 09:00 +0200 |
| Message-ID | <ypQKC-6cB-7@gated-at.bofh.it> |
| In reply to | #211948 |
On Wed, 31 Jul 2019, Andrei POPESCU wrote:
> It depends a lot on what combination of packages you have installed and
> are using.
>
> Starting with the obvious ones, please show the output of:
Ok. One dotted-four required obfuscation in my humble
judgement. I hope I got your list correctly:
$ apt list resolvconf
Listing... Done
resolvconf/oldstable,now 1.79 all [installed]
$ apt list network-manager
Listing... Done
network-manager/oldstable 1.6.2-3+deb9u2 amd64
ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 31 Jun 16 23:51 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf
$ systemctl status systemd-resolved
? systemd-resolved.service - Network Name Resolution
Loaded: loaded (/lib/systemd/system/systemd-resolved.service; di
Drop-In: /lib/systemd/system/systemd-resolved.service.d
??resolvconf.conf
Active: active (running) since Wed 2019-07-31 00:36:51 EDT; 1h 4
Docs: man:systemd-resolved.service(8)
http://www.freedesktop.org/wiki/Software/systemd/resolve
http://www.freedesktop.org/wiki/Software/systemd/writing
http://www.freedesktop.org/wiki/Software/systemd/writing
Process: 2100 ExecStartPost=/bin/sh -c [ ! -e /run/resolvconf/ena
Main PID: 2099 (systemd-resolve)
Status: "Processing requests..."
Tasks: 1 (limit: 4915)
CGroup: /system.slice/systemd-resolved.service
??2099 /lib/systemd/systemd-resolved
$ cat /etc/resolvconf/run/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver aaa.bbb.ccc.ddd (obfuscated)
nameserver 8.8.8.8
nameserver 127.0.0.53
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.40
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 8.8.8.8
$ cat /etc/NetworkManager/NetworkManager.conf
cat: /etc/NetworkManager/NetworkManager.conf: No such file or directory
Thank you
--
These are not the droids you are looking for.
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2019-07-31 22:40 +0200 |
| Message-ID | <yq3y9-5Zk-1@gated-at.bofh.it> |
| In reply to | #211952 |
[Multipart message — attachments visible in raw view] — view raw
On Mi, 31 iul 19, 02:37:40, Bob Bernstein wrote: > On Wed, 31 Jul 2019, Andrei POPESCU wrote: > > > It depends a lot on what combination of packages you have installed and > > are using. > > > > Starting with the obvious ones, please show the output of: > > Ok. One dotted-four required obfuscation in my humble judgement. I hope I > got your list correctly: > > $ apt list resolvconf > Listing... Done > resolvconf/oldstable,now 1.79 all [installed] Ok > $ apt list network-manager > Listing... Done > network-manager/oldstable 1.6.2-3+deb9u2 amd64 Not installed. > ls -l /etc/resolv.conf > lrwxrwxrwx 1 root root 31 Jun 16 23:51 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf Ok > $ cat /etc/resolvconf/run/resolv.conf # Dynamic resolv.conf(5) file for > glibc resolver(3) generated by resolvconf(8) > # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN > nameserver aaa.bbb.ccc.ddd (obfuscated) > nameserver 8.8.8.8 > nameserver 127.0.0.53 Are you using a local DNS server? You have three entries here... > $ cat /etc/network/interfaces > # This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > > source /etc/network/interfaces.d/* > > auto lo eth0 > iface lo inet loopback > > iface eth0 inet static > address 192.168.1.40 > netmask 255.255.255.0 > gateway 192.168.1.1 > dns-nameserver 8.8.8.8 ... but only one entry here. Anyway, if you want to add 'nameserver' entries you have to add them as 'dns-nameserver' in /etc/network/interfaces. If you want to remove some the other ones you have to trace which package is adding them (via resolvconf). Could be a dhcp client, DNS server, another network manager (e.g wicd), etc. Hope this helps, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [next] | [standalone]
| From | Judah Richardson <judahrichardson@gmail.com> |
|---|---|
| Date | 2019-07-31 13:50 +0200 |
| Message-ID | <ypVhf-KB-5@gated-at.bofh.it> |
| In reply to | #211947 |
[Multipart message — attachments visible in raw view] — view raw
Assuming you're using a DE, make your desired changes in the GUI network/connection settings and they'll get written to resolv.conf. On Wed, Jul 31, 2019, 01:03 Bob Bernstein <bob@fanatick.org> wrote: > I want to make a change or two to resolv.conf, but every time I > come across it I flee in terror, warned that my changes will be > destroyed and the linux gods angered. > > What is the approved method for changing the list of DNS servers > called upon by, in my case, Stretch on amd-64? > > (Is there someone I could slide a few simoleons to in order to > facilitate this business?) > > Thank you > > -- > These are not the droids you are looking for. > >
[toc] | [prev] | [next] | [standalone]
| From | Nate Bargmann <n0nb@n0nb.us> |
|---|---|
| Date | 2019-07-31 13:50 +0200 |
| Message-ID | <ypVhg-KB-13@gated-at.bofh.it> |
| In reply to | #211947 |
[Multipart message — attachments visible in raw view] — view raw
Rather than try to control this on each machine, I have set up my router, running OpenWRT, to serve the nameservers as part of the DHCP configuration. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
[toc] | [prev] | [next] | [standalone]
| From | Maxim Svobonas <sp@nextcloud.spb.ru> |
|---|---|
| Date | 2019-07-31 14:00 +0200 |
| Message-ID | <ypVqV-Oo-1@gated-at.bofh.it> |
| In reply to | #211963 |
I use USB tethering and NetworkManager just creates a new wired connection whenever I make changes to existing one and reconnect a phone. Also I may use random WiFi spots from time to time and do not want to set up each of them. The solution for me is: [main] dns=none in /etc/NetworkManager/NetworkManager.conf and nameserver 208.67.222.222 nameserver 208.67.220.220 in /etc/resolv.conf This way NetworkManager does not overwrite resolv.conf Best regards, Max
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2019-07-31 14:00 +0200 |
| Message-ID | <ypVqV-Oo-5@gated-at.bofh.it> |
| In reply to | #211947 |
On 2019-07-31, Bob Bernstein <bob@fanatick.org> wrote: > I want to make a change or two to resolv.conf, but every time I > come across it I flee in terror, warned that my changes will be > destroyed and the linux gods angered. > > What is the approved method for changing the list of DNS servers > called upon by, in my case, Stretch on amd-64? I'm unaware of who might or might not approve it, but I override the nameservers provided through DHCP by editing the '/etc/dhcp/dhclient.conf' like this: supersede domain-name-servers 193.183.98.154, 104.244.72.13; (it's possible to list several, comma-separated servers). I'm lame enough to use Network Manager, though, so in the contrary case, (if such is your case) maybe this ain't the way to go or proves inoperative. Works here, however (yep, just checked to make sure!). > (Is there someone I could slide a few simoleons to in order to > facilitate this business?) > > Thank you > -- “We are all in the gutter, but some of us are looking at the stars.” ― Oscar Wilde, Lady Windermere's Fan
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2019-07-31 14:50 +0200 |
| Message-ID | <ypWdk-1lf-11@gated-at.bofh.it> |
| In reply to | #211947 |
On Wed, Jul 31, 2019 at 01:46:45AM -0400, Bob Bernstein wrote: > I want to make a change or two to resolv.conf, but every time I come across > it I flee in terror, warned that my changes will be destroyed and the linux > gods angered. > > What is the approved method for changing the list of DNS servers called upon > by, in my case, Stretch on amd-64? https://wiki.debian.org/resolv.conf
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web