Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #246167
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod |
|---|---|
| From | Charles Curley <charlescurley@charlescurley.com> |
| Newsgroups | linux.debian.user |
| Subject | Re: 11.2 sometimes wrong /etc/resolv.conf |
| Date | Thu, 10 Mar 2022 18:30:01 +0100 |
| Message-ID | <DZuLT-RbR-9@gated-at.bofh.it> (permalink) |
| References | <DZtZv-QGG-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Thu Mar 10 17:20:29 2022 |
| Old-Return-Path | <charlescurley@charlescurley.com> |
| X-Amavis-Spam-Status | No, score=-6.591 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MDO_CABLE_TV3=0.5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .charlescurley. - helo: .outbound-ss-761.bluehost. - helo-domain: .bluehost.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5 |
| X-Authority-Reason | nr=8 |
| X-Authority-Analysis | v=2.4 cv=B8N8bMhM c=1 sm=1 tr=0 ts=622a3349 a=NgvI/wQFGgfv1u5PwVnSLQ==:117 a=NgvI/wQFGgfv1u5PwVnSLQ==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=o8Y5sQTvuykA:10:nop_rcvd_month_year a=0MQ0SXDd6YYA:10:endurance_base64_authed_username_1 a=VaF5u2FrAAAA:8 a=UPwgjlzBAAAA:8 a=4FByaBxeBQlOvqcOcTcA:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=DPqmbhnxL7qwzMRNAKSy:22 a=IJG1HS28PhTFVN2WG8Av:22 |
| Organization | occasionally |
| X-Mailer | Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Antiabuse | This header was added to track abuse, please include it with any abuse report |
| X-Antiabuse | Primary Hostname - box5635.bluehost.com |
| X-Antiabuse | Original Domain - lists.debian.org |
| X-Antiabuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-Antiabuse | Sender Address Domain - charlescurley.com |
| X-Bwhitelist | no |
| X-Source-IP | 67.218.77.85 |
| X-Source-L | No |
| X-Exim-ID | 1nSMSO-000x1C-Bb |
| X-Source-Sender | (hawk.localdomain) [67.218.77.85]:41918 |
| X-Source-Auth | charlescurley@charlescurley.com |
| X-Email-Count | 1 |
| X-Source-Cap | Y2hhcmxpYTM7Y2hhcmxpYTM7Ym94NTYzNS5ibHVlaG9zdC5jb20= |
| X-Local-Domain | yes |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/786982 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/20220310102007.07de7f44@hawk.localdomain |
| Approved | robomod@news.nic.it |
| Lines | 40 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Thu, 10 Mar 2022 10:20:07 -0700 |
| X-Original-Message-ID | <20220310102007.07de7f44@hawk.localdomain> |
| X-Original-References | <9aaeaa7e-433c-40ea-62ef-dd4565ee88f4@groessler.org> |
| Xref | csiph.com linux.debian.user:246167 |
Show key headers only | View raw
On Thu, 10 Mar 2022 17:22:34 +0100 Christian Groessler <chris@groessler.org> wrote: > when I boot my laptop with Debian 11.2 and LAN cable connected, I'm > sometimes getting a wrong /etc/resolv.conf. > > The resolv.conf is not in fact wrong, but it's the one from the Wifi > network. But when booting with network cable connected I want to have > the resolv.conf of the cabled network. > > Can I somehow force this? That the "cabled-network-nameserver" is > used when the cable is connected? The cable network's DHCP server should provide the relevant information automatically. If you are using NetworkManager, you can insert a script to find out what it provides into /etc/NetworkManager/dispatcher.d/. Something like: echo "Routers value is |$DHCP4_ROUTERS|. IP4_GATEWAY is |$IP4_GATEWAY|." echo "Environment is:" printenv and send the output to a log file. The variable you want is DHCP4_DOMAIN_NAME_SERVERS, and possibly others (see the results from printenv). You may have to request certain information from a badly configured server. In your /etc/dhcp/dhclient.conf, something like: request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, domain-search, host-name, dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers, rfc3442-classless-static-routes, ntp-servers; You will probably need at least the second and/or third line. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
11.2 sometimes wrong /etc/resolv.conf Christian Groessler <chris@groessler.org> - 2022-03-10 17:40 +0100 Re: 11.2 sometimes wrong /etc/resolv.conf Charles Curley <charlescurley@charlescurley.com> - 2022-03-10 18:30 +0100 Re: 11.2 sometimes wrong /etc/resolv.conf ghe2001 <ghe2001@protonmail.com> - 2022-03-10 20:50 +0100 Re: 11.2 sometimes wrong /etc/resolv.conf Anssi Saari <as@sci.fi> - 2022-03-12 17:50 +0100
csiph-web