resolve.conf search domain

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
3vwozv
Posts: 6
Joined: Fri May 19, 2017 9:57 pm

resolve.conf search domain

Post by 3vwozv »

When I use DHCP with a MAC address reservation I see the search domain in my resolve.conf file

Code: Select all

root@plex:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.70.1
search local.lan
This allows file mappings through autos to work such as

Code: Select all

Movies    -fstype=cifs,credentials=/home/media/.smbcredentials ://fs01/Movies
When i convert to a static address and duplicate the settings over with dietpi-config, I lose the search domain being passed from my DHCP server, i.e

Code: Select all

root@plex:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.70.1
This results in file mappings don't work anymore. Should this be exposed in the dietpi-config menu or is there a official linux-way to handle this I don't know about - or should I be using the full extension. Sorry if this is an obvious Linux thing - Im new here!
Post Reply