-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2023-05-09 at 20:33 +0200, Carlos E. R. wrote:
On 2023-05-09 18:09, Andrei Borzenkov wrote:
On 09.05.2023 17:38, Carlos E. R. wrote: ...
Well, we need to see the information netconfig had at this point. In the directory /run/netconfig there should be subdirectory for each interface; each subdirectory will have multiple files, one for each "service" that modified interface configuration. These should be preserved as well. Actually I would simply save the whole /run/netconfig (which also captures generated resolv.conf).
Ok, will run a zip command from the script.
function write_resolv_conf() ... TMP_FILE=`netconfig_mktemp "$ROOT$DESTFILE" 0644 0755` || return 3 if ! dump_resolv_conf "$@" >> "$TMP_FILE" ; then rm -f -- "$TMP_FILE" ; return 3 fi if cmp -s -- "$TMP_FILE" "$ROOT$DESTFILE" ; then rm -f -- "$TMP_FILE" # unchanged elif mv -f -- "$TMP_FILE" "$ROOT$DESTFILE" ; then changed=1 #CER MYDATE=`date --rfc-3339=ns` #cp "$ROOT$DESTFILE" "$ROOT$DESTFILE$MYDATE" zip -r "/run/netconfig_$MYDATE.zip" /run/netconfig/* else rm -f -- "$TMP_FILE" ; return 3 fi And it is working. cer@Telcontar:/run/netconfig> l ../netconfig*zip ; date - -rw-r--r-- 1 root root 9946 May 9 20:40 ../netconfig_2023-05-09 20:40:31.734684686+02:00.zip - -rw-r--r-- 1 root root 9958 May 9 20:40 ../netconfig_2023-05-09 20:40:35.871011216+02:00.zip - -rw-r--r-- 1 root root 9958 May 9 20:39 ../netconfig_2023-05-09.zip 2023-05-09T20:43:05 CEST cer@Telcontar:/run/netconfig> I guess I should wait a bit more. [...] No change. cer@Telcontar:/run/netconfig> l /var/run/netconfig/resolv.conf - -rw-r--r-- 1 root root 679 May 9 20:40 /var/run/netconfig/resolv.conf cer@Telcontar:/run/netconfig> Ah! now it changes. It is 20:59. Saw that before, it stays fixed for some minutes, then it starts moving. cer@Telcontar:/run/netconfig> l ../netconfig*zip ; date - -rw-r--r-- 1 root root 9946 May 9 20:40 ../netconfig_2023-05-09 20:40:31.734684686+02:00.zip - -rw-r--r-- 1 root root 9958 May 9 20:40 ../netconfig_2023-05-09 20:40:35.871011216+02:00.zip - -rw-r--r-- 1 root root 9922 May 9 20:58 ../netconfig_2023-05-09 20:58:39.654239685+02:00.zip - -rw-r--r-- 1 root root 9958 May 9 20:58 ../netconfig_2023-05-09 20:58:42.863897679+02:00.zip - -rw-r--r-- 1 root root 9946 May 9 21:00 ../netconfig_2023-05-09 21:00:21.583604616+02:00.zip - -rw-r--r-- 1 root root 9958 May 9 20:39 ../netconfig_2023-05-09.zip <- error in scripting 2023-05-09T21:00:25 CEST cer@Telcontar:/run/netconfig> Ok, now what? (1) Archive: ./../netconfig_2023-05-09 20:40:31.734684686+02:00.zip Length Method Size Cmpr Date Time CRC-32 Name - -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/chrony.servers 0 Stored 0 0% 2023-05-09 20:40 00000000 run/netconfig/eth0/ 310 Defl:N 213 31% 2023-05-09 20:40 a36b258f run/netconfig/eth0/netconfig1 269 Defl:N 193 28% 2023-05-08 19:24 b045d1dc run/netconfig/eth0/netconfig0 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/lo/ 207 Defl:N 163 21% 2023-04-14 23:42 42d7ff03 run/netconfig/lo/netconfig1 165 Defl:N 142 14% 2023-04-14 23:42 8e56ce4d run/netconfig/lo/netconfig0 652 Defl:N 368 44% 2023-05-09 20:40 961ac61b run/netconfig/resolv.conf 688 Defl:N 389 44% 2023-05-09 16:08 4d539003 run/netconfig/resolv.conf2023-05-09 16:08:09.631366486+02:00 661 Defl:N 375 43% 2023-05-09 16:14 7fc9a77b run/netconfig/resolv.conf2023-05-09 16:14:31.623802700+02:00 688 Defl:N 389 44% 2023-05-09 16:14 4d539003 run/netconfig/resolv.conf2023-05-09 16:14:39.429802740+02:00 661 Defl:N 375 43% 2023-05-09 16:15 7fc9a77b run/netconfig/resolv.conf2023-05-09 16:15:00.937682868+02:00 688 Defl:N 389 44% 2023-05-09 16:15 4d539003 run/netconfig/resolv.conf2023-05-09 16:15:09.207084556+02:00 661 Defl:N 375 43% 2023-05-09 16:26 7fc9a77b run/netconfig/resolv.conf2023-05-09 16:26:15.359762315+02:00 688 Defl:N 389 44% 2023-05-09 20:10 4d539003 run/netconfig/resolv.conf2023-05-09 20:10:43.765956235+02:00 661 Defl:N 375 43% 2023-05-09 20:13 7fc9a77b run/netconfig/resolv.conf2023-05-09 20:13:07.799690641+02:00 688 Defl:N 389 44% 2023-05-09 20:13 4d539003 run/netconfig/resolv.conf2023-05-09 20:13:15.368812648+02:00 661 Defl:N 375 43% 2023-05-09 20:14 7fc9a77b run/netconfig/resolv.conf2023-05-09 20:14:54.169234399+02:00 652 Defl:N 368 44% 2023-05-09 20:15 961ac61b run/netconfig/resolv.conf2023-05-09 20:15:56.487356072+02:00 577 Defl:N 333 42% 2023-05-08 12:26 b5da4559 run/netconfig/yp.conf - -------- ------- --- ------- 9577 5600 42% 20 files . (2) Archive: ./../netconfig_2023-05-09 20:40:35.871011216+02:00.zip Length Method Size Cmpr Date Time CRC-32 Name - -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/chrony.servers 0 Stored 0 0% 2023-05-09 20:40 00000000 run/netconfig/eth0/ 310 Defl:N 213 31% 2023-05-09 20:40 a36b258f run/netconfig/eth0/netconfig1 269 Defl:N 193 28% 2023-05-08 19:24 b045d1dc run/netconfig/eth0/netconfig0 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/lo/ 207 Defl:N 163 21% 2023-04-14 23:42 42d7ff03 run/netconfig/lo/netconfig1 165 Defl:N 142 14% 2023-04-14 23:42 8e56ce4d run/netconfig/lo/netconfig0 679 Defl:N 380 44% 2023-05-09 20:40 426d8ff2 run/netconfig/resolv.conf 688 Defl:N 389 44% 2023-05-09 16:08 4d539003 run/netconfig/resolv.conf2023-05-09 16:08:09.631366486+02:00 ... 577 Defl:N 333 42% 2023-05-08 12:26 b5da4559 run/netconfig/yp.conf - -------- ------- --- ------- 9604 5612 42% 20 files (3) Archive: ./../netconfig_2023-05-09 20:58:39.654239685+02:00.zip Length Method Size Cmpr Date Time CRC-32 Name - -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/chrony.servers 0 Stored 0 0% 2023-05-09 20:58 00000000 run/netconfig/eth0/ 265 Defl:N 189 29% 2023-05-09 20:58 99525efd run/netconfig/eth0/netconfig1 269 Defl:N 193 28% 2023-05-08 19:24 b045d1dc run/netconfig/eth0/netconfig0 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/lo/ 207 Defl:N 163 21% 2023-04-14 23:42 42d7ff03 run/netconfig/lo/netconfig1 165 Defl:N 142 14% 2023-04-14 23:42 8e56ce4d run/netconfig/lo/netconfig0 652 Defl:N 368 44% 2023-05-09 20:58 961ac61b run/netconfig/resolv.conf 688 Defl:N 389 44% 2023-05-09 16:08 4d539003 run/netconfig/resolv.conf2023-05-09 16:08:09.631366486+02:00 ... 577 Defl:N 333 42% 2023-05-08 12:26 b5da4559 run/netconfig/yp.conf - -------- ------- --- ------- 9532 5576 42% 20 files (4) Archive: ./../netconfig_2023-05-09 20:58:42.863897679+02:00.zip Length Method Size Cmpr Date Time CRC-32 Name - -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/chrony.servers 0 Stored 0 0% 2023-05-09 20:58 00000000 run/netconfig/eth0/ 310 Defl:N 213 31% 2023-05-09 20:58 a36b258f run/netconfig/eth0/netconfig1 269 Defl:N 193 28% 2023-05-08 19:24 b045d1dc run/netconfig/eth0/netconfig0 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/lo/ 207 Defl:N 163 21% 2023-04-14 23:42 42d7ff03 run/netconfig/lo/netconfig1 165 Defl:N 142 14% 2023-04-14 23:42 8e56ce4d run/netconfig/lo/netconfig0 679 Defl:N 380 44% 2023-05-09 20:58 426d8ff2 run/netconfig/resolv.conf 688 Defl:N 389 44% 2023-05-09 16:08 4d539003 run/netconfig/resolv.conf2023-05-09 16:08:09.631366486+02:00 577 Defl:N 333 42% 2023-05-08 12:26 b5da4559 run/netconfig/yp.conf - -------- ------- --- ------- 9604 5612 42% 20 files (5) Archive: ./../netconfig_2023-05-09 21:00:21.583604616+02:00.zip Length Method Size Cmpr Date Time CRC-32 Name - -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/chrony.servers 0 Stored 0 0% 2023-05-09 21:00 00000000 run/netconfig/eth0/ 310 Defl:N 213 31% 2023-05-09 21:00 a36b258f run/netconfig/eth0/netconfig1 269 Defl:N 193 28% 2023-05-08 19:24 b045d1dc run/netconfig/eth0/netconfig0 0 Stored 0 0% 2023-04-14 23:42 00000000 run/netconfig/lo/ 207 Defl:N 163 21% 2023-04-14 23:42 42d7ff03 run/netconfig/lo/netconfig1 165 Defl:N 142 14% 2023-04-14 23:42 8e56ce4d run/netconfig/lo/netconfig0 652 Defl:N 368 44% 2023-05-09 21:00 961ac61b run/netconfig/resolv.conf 688 Defl:N 389 44% 2023-05-09 16:08 4d539003 run/netconfig/resolv.conf2023-05-09 16:08:09.631366486+02:00 577 Defl:N 333 42% 2023-05-08 12:26 b5da4559 run/netconfig/yp.conf - -------- ------- --- ------- 9577 5600 42% 20 files I suppose you want to compare the run/netconfig/eth0/netconfig0 or run/netconfig/eth0/netconfig1 files? On "1" and "2" they are identical. Between 2 and 3 there is a change. cer@Telcontar:~/tmp/Andrei/run-3/netconfig/eth0> diff --side-by-side --ignore-space-change /home/cer/tmp/Andrei/run-2/netconfig/eth0/netconfig1 /home/cer/tmp/Andrei/run-3/netconfig/eth0/netconfig1 CREATETIME='1530692' CREATETIME='1530692' SERVICE='wicked-auto-ipv6' SERVICE='wicked-auto-ipv6' INTERFACE='eth0' INTERFACE='eth0' TYPE='auto' TYPE='auto' FAMILY='ipv6' FAMILY='ipv6' UUID='b5c83964-a6ff-0700-2306-000024000000' UUID='b5c83964-a6ff-0700-2306-000024000000' IPADDR='2a02:..../64' IPADDR='2a02:.../64' PREFIXLEN='64' PREFIXLEN='64' IPADDR_1='fd81:.../64' IPADDR_1='fd81:.../64' PREFIXLEN_1='64' PREFIXLEN_1='64' DNSSERVERS='2a02:9000::aaaa 2a02:9000::bbbb' < cer@Telcontar:~/tmp/Andrei/run-3/netconfig/eth0> So, version 3 doesn't have dns entries. version 4 gets them again: DNSSERVERS='2a02:9000::aaaa 2a02:9000::bbbb' Version 5 is identical (in those two files). Version 5 has resolv.conf: search valinor nameserver 127.0.0.1 nameserver ::1 while version 4 has: search valinor nameserver 127.0.0.1 nameserver ::1 nameserver 2a02:9000::aaaa If you want the zip files to inspect them yourself, just ask. Well, whatever the cause, I can not use the automatically generated dynamic resolv.conf file. If you think there is something I can tell the ISP, I will, but they will probably say nothing back. - -- Cheers, ~ Carlos E. R. (from openSUSE 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZFqdvxwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVWfQAn1SGPlTIJgPMB7E+FO0r GeiU3AViAJ9jMBo3jcE8yWN9ejpt0ZHagBSfzw== =O3Ic -----END PGP SIGNATURE-----