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

Networking and servers • Re: 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!
The first line of /etc/resolv.conf tells you that file is generated by resolvconf so I would begin looking in /etc/resolvconf.conf and looking in the man pages.

Butch

Statistics: Posted by butchkemper — Sat Mar 30, 2024 7:33 pm



Viewing all articles
Browse latest Browse all 5055

Trending Articles