ignore domain-search;
supersede domain-name mail.myserver.tld;
supersede domain-search mail.myserver.tld;

None of these lines have worked in dhclient.conf

Anything else I could try?

Thank you.



27 Ekim 2020 Salı tarihinde Otto Moerbeek <o...@drijf.net> yazdı:

> On Tue, Oct 27, 2020 at 02:32:46PM +0300, Andreas X wrote:
>
> > Greetings. On OpenBSD 6.8, I have unbound enabled in my server, (server
> > gets its IP via DHCP from my server provider)
> > In resolv.conf I have a "search your-server.de" line and I don't know
> what
> > hostname is that.
> > My own hostname is something different.
> >
> > That seems the older hostname during setup (I forgot to set hostname
> during
> > installation). I changed hostname, removed it from resolv.conf, rebooted,
> > it's back again (DHCP - generated by re0 dhclient) How can I
> remove/change
> > that line?
> >
> > P.S: I have unbound enabled, therefore I created dhclient.conf and added:
> > supersede domain-name-servers 127.0.0.1, my.server.provider.IP;
> >
> > openbsdl# cat /etc/resolv.conf
> > # Generated by re0 dhclient
> > search your-server.de
> > nameserver 127.0.0.1
> > lookup file bind
> >
> > Thanks.
>
> You can tell dhclient to ignore things.
>
> something like
>
>         ignore domain-search;
>
> in dhclient.conf. See dhclient.conf and dhcp-options man pages.
>
>         -Otto
>

Reply via email to