On 08/18/18 17:17, Jonathan Ryshpan wrote:
This is surely correct and explains a number of things that I've
noticed.
$ cat /etc/resolv.conf
# Generated by NetworkManager
search tew-818dru
nameserver 192.168.10.1
I suspect that the domain tew-818dru is maintained by Trendnet. In any case changes
that I've made to the router setup have no effect on it
That seems odd to me. First, my DHCP server doesn't supply
Domain Name
This option specifies the domain name that client should use when
resolving hostnames via the Domain Name System.
The code for this option is 15.
in its reply as shown earlier. And I went to
http://www.trendnet.com/emulators/TEW-818DRU_v1/basic/home.htm?expandable=0 and
didn't find a place
to specify a domain name. (Maybe I didn't look carefully enough)
My search option gets set based on the assigned hostname.
[root@f28k-b1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search
greshko.com
nameserver 192.168.1.1
nameserver 2001:b030:112f::1
[root@f28k-b1 ~]# hostnamectl set-hostname
f28k-b1.gres.com
[root@f28k-b1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search
gres.com
nameserver 192.168.1.1
nameserver 2001:b030:112f::1
[root@f28k-b1 ~]# hostnamectl set-hostname
f28k-b1.greshko.com
[root@f28k-b1 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search
greshko.com
nameserver 192.168.1.1
nameserver 2001:b030:112f::1
What is the output of hostnamectl on your system?