On OpenBSD (7.3) I have this file for wired: /etc/hostname.em0
and it contains this one line:
inet autoconf
If your router supports ip6 maybe add this second line:
inet6 autoconf
That works fine for an old router I used for wired (long story on why that router).