Changing DNS of Dial-up Connection
Hello,
I paired my phone via bluetooth with my pc and ticked the box saying " Access the DUN service" or something similar to that and i got my connection setup and active by following some wizards. But the problem is the connection appears (only by clicking the network icon at the notification area) only when the bluetooth dongle is plugged to the pc and also it appears at only notification area and not in the network manager and whether u right click or left click on the connection, it just starts to connect and not display any properties or options. So, how do I change the DNS to be use for the connection? |
You can manually edit
Code:
/etc/resolv.conf Code:
nameserver xxx.xxx.xxx.xxx |
Quote:
A question, how to add another alternate server? I mean almost all DNS's come with 2 servers.. Should i add another nameserver XXX.XXX.XXX.XXX line? |
Yes
Kind regards |
I tried but it resets to the operator's default DNS everytime i connect.. :(
|
And the DNS from your provider doesn't work?
Which distribution are you using? Take a look at http://www.cyberciti.biz/faq/dhclien...olvconf-hooks/ Kind regards |
Quote:
I'm using Ubuntu 10.10. Currently doing apt upgrade.. May take some time. Will try this and report. Thanks. |
If your network uses dhcpcd to configure the DNS-server, you'll have to edit the dhcpcd.conf file and add a line
Code:
nohook resolv.conf Markus |
For ubuntu:
change the following lines in Code:
/etc/dhcp3/dhclient.conf Code:
supersede domain-name “mydomain.com”; |
Quote:
I've already did Code:
chattr +i /etc/resolv.conf |
Quote:
|
Seems that write-protecting the file did the job.. Thanks you all..
|
All times are GMT -5. The time now is 05:50 AM. |