In the file /etc/resolv.conf, I have
Code:
search home.intranet
nameserver 192.168.1.1
In the file /etc/network/interfaces, I have the following lines at the end of the file
Code:
.
.
.
dns-search home.intranet
I would like to change the domain name from home.intranet to test.intranet. How should I go about doing it without restarting the server?
I have tried to update the resolv.conf by changing 'search home.intranet' to 'search test.intranet'. Then I edit the interfaces file by changing 'dns-search home.intranet to 'dns-search test.intranet' (is this step necessary?) Followed by a
Code:
/etc/init.d/networking restart
However, when I checked the domain name with
it is still showing the old name.
Please advise, thanks !