![]() |
How to change DNS?
i installed rootsh
i typed CAT /etc/resolve.conf (a basic unix command to open and read a file.) found that my dns is 127.0.0.1 in N900 i want to change it as 123.176.xx.xx (for enabling wifi adhoc) Can any one tell me how to remove 127.0.0.1 and replace it with my dns. any commands ?? |
Re: How to change DNS
Code:
cat > /etc/resolv.conf It's also good to save a copy of the old file. |
Re: How to change DNS
don`t remove use # to coment line
123176.*.* #127.0.0.1 for example. This can be done by any text editor. To do it using vim open the file: vim /etc/resolv.conf press a to go in insert mode make the changes esc shift + . wq enter to save changes q! enter to quit without apply the changes. You should be root to make the changes. |
Re: How to change DNS?
Changing /etc/resolv.conf conflicts with normal use of N900. The correct way is to create a file called /var/run/resolv.conf containing the necessary nameserver lines. This file will be read by the dnsmasq daemon, according to configuration file /etc/dnsmasq.conf.
|
Re: How to change DNS?
My guess is that you want to set up the DNS entries for a specific connection, and not persistently for all connections. If so, do it with the GUI, by going to Settings->Connections->[Select the Connection]->Edit->Next->Next->Advanced->IP Addresses.
|
All times are GMT. The time now is 15:43. |
vBulletin® Version 3.8.8