LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2011, 02:19 PM   #1
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Rep: Reputation: 0
Question 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?
 
Old 04-02-2011, 02:21 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You can manually edit
Code:
/etc/resolv.conf
an add the nameserver
Code:
nameserver xxx.xxx.xxx.xxx
Kind regards

Last edited by repo; 04-02-2011 at 02:24 PM.
 
Old 04-02-2011, 02:32 PM   #3
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
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?
 
Old 04-02-2011, 02:33 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Yes

Kind regards
 
Old 04-02-2011, 03:06 PM   #5
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
I tried but it resets to the operator's default DNS everytime i connect..
 
Old 04-02-2011, 03:35 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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
 
1 members found this post helpful.
Old 04-02-2011, 03:56 PM   #7
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
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.
 
Old 04-02-2011, 04:00 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
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
 
Old 04-02-2011, 04:02 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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
 
Old 04-02-2011, 04:09 PM   #10
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by markush View Post
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?

Last edited by EzioAuditore; 04-02-2011 at 04:13 PM.
 
Old 04-02-2011, 04:11 PM   #11
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
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?
 
Old 04-02-2011, 10:25 PM   #12
EzioAuditore
Member
 
Registered: Mar 2011
Posts: 45

Original Poster
Rep: Reputation: 0
Seems that write-protecting the file did the job.. Thanks you all..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NO DNS with dial-up connection harshadnatiye Linux - Networking 4 10-12-2009 09:54 AM
Really slow dial up internet connection... mainly DNS Resolution... I think jimdaworm Slackware 4 12-13-2003 09:20 AM
Possible Routing / DNS Issue with Dial-Up connection on LAN connected PC geesloper Linux - Networking 2 12-06-2003 07:55 PM
How can I get the DNS from my dial-up ISP? HeatSkrCannibal Linux - Networking 2 08-18-2003 08:58 AM
Changing dial method in KPPP akr85 Linux - General 2 04-02-2002 10:49 PM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration