Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4487

Networking and servers • Wrong domain appended to hostname

$
0
0
Hi kind people,

I'm seeing the wrong domain name appended to hosts that connect to local WiFi. For instance /etc/resolv.conf contains the following:

Code:

# Generated by resolvconfnameserver 8.8.8.8domain ugh.grr.komsearch ugh.grr.kom search.netnameserver 127.0.0.1
But, I didn't add ugh.grr.kom to any config files. I grep'd through all plain files under /etc and the only file containing the domain is the one I refer to above. I removed the unwanted domain name, added in what I wanted, and then rebooted. After that, then the file has the same exact content as it did before.

- /bin/hostname -f results in /bin/hostname: Name or service not known
- /bin/hostname -d results in /bin/hostname: Name or service not known
- /bin/hostname -b results in mypi

Sometimes hostname -f will also result in "mypi". Sometimes hostname -d will render an empty result.

Does anyone have a clue or two that could get me pointed in the right direction to figure out why I keep getting the wrong, and unwanted domain names (the ones I put in this message are fake)?

Thanks people!

Statistics: Posted by KevinTheDrummer — Thu Mar 28, 2024 11:06 pm — Replies 1 — Views 28



Viewing all articles
Browse latest Browse all 4487

Trending Articles