Re: How to disable DNS search received by DHCP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tim,

Yes the bug report is inevitable, maybe even 2 (NetworkManager is under suspicion too).

I do control the DHCP and the DNS servers in my network and I did manage to make the DHCP stop proposing 'domain-search' and yet NetworkManager (after OKD update and my interventions with /etc/resolv.conf systemd-resolved is no longer a factor) is still assigning a search stanza in the /etc/resolv.conf on the hosts.
On the otherside , the CoreDNS (the stupid thing that appends the search stanza from /etc/resolv.conf) is not under my control but I can check.

Manual is possible but not elegant and most importantly less used (or I thought so until now).
What bothers me most is the fact that the issue seems since OpenShift3 (I found a solution that gave me a clue about the search in /etc/resolv.conf) and I doubt it will be fixed soon.

Best Regards,
Strahil Nikolov



On Sun, Jan 28, 2024 at 10:02, Tim via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
On Sun, 2024-01-28 at 07:31 +0000, Strahil Nikolov via users wrote:
> That's true but right now I have no control over OpenShift/OKD
> behavior.

Bug report...  If it's a software fault, they may fix it.  If it's not,
they may point out where a configuration problem is.

> I even managed to make my DNS stop sending 'domain-search' (clearly
> visible in the NM connection) but NM still applies the domain as
> such.
>
> On top of that I can't find dhcp-client in the repo ,which could be a
> possible solution to replace NM built-in DHCP client.

Do you have to use DHCP?  Can you manually configure the network
parameters?  You should be able to partially manually configure a
connection and let DHCP automatically do the rest.  But you could fully
manually set things.

I wonder if you're running afoul of the systemd-resolved service?

Is the DHCP server under your control?  You can specify what it sends
as the domain search parameters (which should end in a dot, as Jeffrey
has already said).

If you always get assigned the same IP, you could put entries in the
hosts file for its addresses, and that'd stop it searching further for
answers.

DNS shenanigans is why I run my own DNS server.  Firstly, I started
doing so because my ISP's server was utter crap (overloaded and slow,
and often didn't return results, even for its own services).  Then
because I started running a LAN where I needed local name resolution,
the LAN became too big and unwieldy for messing with the hosts file,
and you can only do that on computers.

--

uname -rsvp
Linux 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64

Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux