[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-10-24 Thread Derek V Giroulle
Using Ubuntu 20.04.3 latest update Oct 19th

After the one but last update Oct 10th suddenly I had a problem
resolving DNS. Before the update my /etc/resolv.conf read :

nameserver 127.0.0.53

In my netmanager settings I had/have entered 2 DNS-Server IP adresses of
my ISP : 1xx.2xx.xxx.21 1xx.2xx.xxx.22

the result of command

$ ls -al /etc/resolv.conf

lrwxrwxrwx 1 root root 32 okt 13 14:10 /etc/resolv.conf ->
/run/systemd/resolve/resolv.conf

So I did

$ sudo rm -f /etc/resolv.conf

$ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

Only to find it didn't change anything : the content of new
/etc/resolv.conf after restarting the systemd-resolve service still
reads

nameserver ::1

I managed to complete the updates by repeatedly saving manually an
/etc/resolv.conf file and overwriting the file written by the systemd-
resolve service (workaround). to make certain that people don't doubt my
capacity to read : I DO understand the warning at the top of the file
saying that the file is overwritten regularly.

I manage to maintain a "usable connection" by regularly overwriting the
file /run/systemd/resolve/resolv.conf,  with following content

nameserver 1xx.2xx.xxx.21

nameserver 1xx.2xx.xxx.22

until i restart the systemd-resolve service and the file is overwritten
by resolve and it reverts to

nameserver ::1

I also checked the /run/systemd/resolve/stub-resolv.conf file which has
the following content

nameserver 127.0.0.53
options edns0 trust-ad

My question is :

A- How can I make sure that the resolve service writes the correct file
content in /etc/resolv.conf = I do understand that this is a sym-link

B- Where is the parameter file that systemd-resolve uses to produce
/etc/resolv.conf and /run/systemd/resolve/resolv.conf, because it sure
doesn't read the configuration entered in netmanager settings

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-10-23 Thread Derek V Giroulle
OS Ubuntu 20.04.3 LTS
After a recent update a working laptop suddently developped the following 
problem : 
- DNS problems for al Internet related apps
- Ping :  termporary failure in Name resolution 
editing manually allows internet access for short term until systemd-resolve 
overwrites the file.
Its no use to replace /etc/resolv.conf with a file as it get overwritten 
regulary. 

The stub-file  /run/systemd/resolve/stub-resolv.conf contains

> nameserver 127.0.0.53
> options edsn0 trust-ad 

In my Network options I have  
DHCP auto 
DNS  manual  19*.2*8.*.21, 19*.2*8.*.22 which are my ISP dedicated DNS servers 
(stars are hiding numbers)

when i overwrite /etc/resolv.conf with 
>  nameserver 19*.2*8.*.21
>  nameserver 19*.2*8.*.22 
my internet connection temporarily works 

The /run/systemd/resolve/resolve.conf contains
> nameserver ::1

I tried overwriting /run/systemd/resolve/stub-resolv.conf with the correct 
nameservers and 
then  applied your solution : 
$ sudo rm -f /etc/resolv.conf
$ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf   

And restarted the systemd-resolve  service

and the /etc/resolv.conf and /run/systemd/resolve/resolv.conf files
showed again

> nameserver ::1

Your solution doesn't work

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-10-23 Thread Derek V Giroulle
Sorry  typo in my previous message ;  it should read

I tried overwriting /run/systemd/resolve/resolv.conf with the correct
nameservers and then applied your solution :

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-10-12 Thread aliengotithard
ALSO AFFECTS DOCKER VPS - Is there a definitive solution? Im going to
try @jasdenty solution. Im not that technical user.

It affects my VPS after "apt upgrade". Suddenly resolving domains from
docker containers stopped - from what i understand docker defaultly
inherits /etc/resolv.conf.  Completly revisiting my docker networks
didn't help.

So this comment is for you guys whose dockers stopped working after
update.

Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-08-17 Thread Zhuokun Yang
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 4.19.17

For those who encounter situations otherwise, here is my case and
workarounds.

my case:
---
 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

I remove the symlink and assign a new one
 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf
reboot, and the /etc/resolv.conf says there is NO DNS SERVER. DNS Lookup is 
completeny unusable at this point. 

If it points to the stub-resolv.conf variant, it seems that the 
systemd-resolved is not working properly, at 127.0.0.53.
---

my solution:
---
1. remove the symlink, 
2. replace it with a solid file, either empty or with a line `nameserver 
8.8.8.8`
3. reboot

and what you will see is a autogenerated resolv.conf made by
NetworkManager, which changes dynaminally depending on what network you
are connected to.

using netstat -tunlp to grep the nameserver in the file, you may see 
```
tcp0  0 127.0.1.1:530.0.0.0:*   LISTEN  
1604/dnsmasq
udp0  0 127.0.1.1:530.0.0.0:*   
1604/dnsmasq
```
which is also recommended in a lot of threads in askubuntu (i.e. google enable 
dns cache in ubuntu). 
---

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-06-16 Thread Cody
I have been encountering this issue for the past month on my newly
installed (1-2 months old) version of Ubuntu 20.04.2 LTS.

I finally got frustrated enough to dig in and find a solution and
arrived here from a stackexchange comment.

FYI is all - OP's solution seems to have fixed the issue for me - will
report back in a few days if not.

Why is this an issue on vanilla ubuntu?

Can you imagine how frustrated non-technical end users would be?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-06-07 Thread Per Olav Kroka
Please disregard my last comment (#5).  The problem I had was not this
one but related to using other connector agents in addition to
NetworkManager, in my case the openvpn3 command line.

(Automatic connection to the VPN is not there, but that is probably
safest.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2021-05-27 Thread Per Olav Kroka
I just want to confirm that this is a problem.  I have had it for a
while and not found another workaround (until now) than restarting the
machine.

If this is NOT a bug then something "close by" is a bug.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2020-12-20 Thread David Reagan
I just ran into this issue myself on 20.04. Specifically I was adding my
own internal nameserver to a vm.

@Ubfan, why is stub-resolv.conf the correct file?

The file that /etc/systemd/resolved.conf updates is
/run/systemd/resolve/resolv.conf. As far as I can tell, the proper way
to update /etc/resolv.conf is via /etc/systemd/resolved.conf. So if I
want my changes to apply, then the /etc/resolv.conf link should point to
the file systemd actually changes.

Or is there a different method of updating what nameservers your
computer uses? If there is, why is systemd involved with resolv.conf at
all?

Anyway, I believe this is a bug. Fortunately not one that effects people
who don't know how to find the workarounds, but still a bug. I do hope
it eventually gets fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2019-03-31 Thread Ubfan
The link target, stub-resolv.conf is the correct file for enabling
systemd-resolvd.  Various problems with the systemd-resolvd may be fixed
by installing the libnss-resolve package (bug 1769016). Blank local
domain problems have their own bug, 1699660 (fix is to use ~.). This
report probably should be marked "invalid".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1774632] Re: The symbolic link /etc/resolv.conf points to the wrong file by default

2018-06-07 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: systemd (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774632

Title:
  The symbolic link /etc/resolv.conf points to the wrong file by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs