Active Topics

 


Reply
Thread Tools
Posts: 11 | Thanked: 0 times | Joined on Jul 2010
#1
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 ??
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
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.
 
Posts: 161 | Thanked: 70 times | Joined on Feb 2010
#3
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.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#4
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.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following 2 Users Say Thank You to Matan For This Useful Post:
fnordianslip's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#5
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.
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:31.