Here's my problem:
I made a fresh installation of Raspbian Jessie on my Pi 3. After choosing my hostname in the initial raspi-config (and setting up a lighttpd web server), I could ping my Pi from other devices on the local network with
ping hostname and I could display my website from the network with
This is exactly what I wanted!
However, I then proceeded to configure the wlan connection (in
/etc/wpa_supplicant/wpa_supplicant.conf), which worked in the sense that it does connect to my wifi. However, since then it no longer responds to
hostname but only to
ping hostname.lan (and
My research has led me to find that, in
/etc/resolv.conf, there is a line that says
domain lan but any changes I make to that are automatically reverted back and the program/service that 'supposedly' generates this file (resolveconf) is by default not installed with Raspbian, and I couldn't figure out what generates this file instead.
What do I need to do to get rid of that 'lan' suffix and just be able to access my Pi with
hostname, like I could before I fiddled with wlan?