On 27/10/2020 12.32, 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

This tells me you run on Hetzner and their default domain names for VMs is just 
that.
"search" is not your hostname it is the search domain. This might be something 
they
push since you're in their environment.
But you probably need to log into the portal and change it there. Also don't
forget the PTR/Reverse DNS record. Or just configure your IP and hostname 
statically.

Hope this helps.

nameserver 127.0.0.1
lookup file bind

Thanks.

/T

Reply via email to