maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to change DNS? (https://talk.maemo.org/showthread.php?t=58227)

mourya 2010-07-11 11:21

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 ??

Joorin 2010-07-11 11:37

Re: How to change DNS
 
Code:

cat > /etc/resolv.conf
nameserver 123.176.xx.xx

Finish the command with Ctrl+d. Don't forget to press enter at the end.

It's also good to save a copy of the old file.

acvetkov 2010-07-11 11:48

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.

Matan 2010-07-11 13:13

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.

fnordianslip 2010-07-11 14:04

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