LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing DNS of Dial-up Connection (https://www.linuxquestions.org/questions/linux-newbie-8/changing-dns-of-dial-up-connection-872594/)

EzioAuditore 04-02-2011 01:19 PM

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?

repo 04-02-2011 01:21 PM

You can manually edit
Code:

/etc/resolv.conf
an add the nameserver
Code:

nameserver xxx.xxx.xxx.xxx
Kind regards

EzioAuditore 04-02-2011 01:32 PM

Quote:

Originally Posted by repo (Post 4311677)
You can manually edit
Code:

/etc/resolv.conf
an add the nameserver
Code:

nameserver xxx.xxx.xxx.xxx
Kind regards

Thanks for the prompt reply. :)

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?

repo 04-02-2011 01:33 PM

Yes

Kind regards

EzioAuditore 04-02-2011 02:06 PM

I tried but it resets to the operator's default DNS everytime i connect.. :(

repo 04-02-2011 02:35 PM

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

EzioAuditore 04-02-2011 02:56 PM

Quote:

Originally Posted by repo (Post 4311722)
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

Well provider's DNS does work but you know, its just not that good at security and prone to attacks..

I'm using Ubuntu 10.10.

Currently doing apt upgrade.. May take some time. Will try this and report. Thanks.

markush 04-02-2011 03:00 PM

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
this will prevent dhcpcd from overwriting the resolv.conf file.

Markus

repo 04-02-2011 03:02 PM

For ubuntu:
change the following lines in
Code:

/etc/dhcp3/dhclient.conf
Code:

supersede domain-name “mydomain.com”;
prepend domain-name-server xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx

Kind regards

EzioAuditore 04-02-2011 03:09 PM

Quote:

Originally Posted by markush (Post 4311738)
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
this will prevent dhcpcd from overwriting the resolv.conf file.

Markus

I don't know if my operator uses dhcpcd or not.. Any way to find out?\

I've already did
Code:

chattr +i /etc/resolv.conf
by the way.. Do i still need to do nohook?

EzioAuditore 04-02-2011 03:11 PM

Quote:

Originally Posted by repo (Post 4311741)
For ubuntu:
change the following lines in
Code:

/etc/dhcp3/dhclient.conf
Code:

supersede domain-name “mydomain.com”;
prepend domain-name-server xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx

Kind regards

What do I add in place of "mydomain.com"? Provider's Access point?

EzioAuditore 04-02-2011 09:25 PM

Seems that write-protecting the file did the job.. Thanks you all..


All times are GMT -5. The time now is 05:50 AM.