Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS changes with DHCP

Reply
Thread Tools Display Modes

DNS changes with DHCP

 
 
nadircruise@gmail.com
Guest
Posts: n/a

 
      12-05-2006, 04:27 PM
I am using Ubuntu 6.06, and i have a problem configuring my network
connection. I use an ADSL router and an ethernet card to connect to the
net. I use DHCP to obtain an IP address, but after sometime the DNS
address changes on its own to 192.168.1.1, which obviously is not the
DNS that i give. I would like to know what tweaks are required to stop
the DHCP from changing my DNS address.

TIA

--Nadir

 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      12-05-2006, 06:12 PM
(E-Mail Removed) wrote:
> I am using Ubuntu 6.06, and i have a problem configuring my network
> connection. I use an ADSL router and an ethernet card to connect to the
> net. I use DHCP to obtain an IP address, but after sometime the DNS
> address changes on its own to 192.168.1.1, which obviously is not the
> DNS that i give. I would like to know what tweaks are required to stop
> the DHCP from changing my DNS address.
>
> TIA
>
> --Nadir
>


The "tweaks" are probably described in the man page of your dhcp
client. I don't know what Ubuntu uses by default - you may try:

man pump
man dhclient

Mihai
 
Reply With Quote
 
nadircruise@gmail.com
Guest
Posts: n/a

 
      12-06-2006, 06:36 AM
> The "tweaks" are probably described in the man page of your dhcp
> client. I don't know what Ubuntu uses by default - you may try:
>
> man pump
> man dhclient
>
> Mihai


Ubuntu uses dhclient, if i make /etc/resolv.conf as read only, then
probably the dns won't get changed. I couldn't find anything helpful in
the man pages btw.

 
Reply With Quote
 
nadircruise@gmail.com
Guest
Posts: n/a

 
      12-06-2006, 07:38 AM

(E-Mail Removed) wrote:
> > The "tweaks" are probably described in the man page of your dhcp
> > client. I don't know what Ubuntu uses by default - you may try:
> >
> > man pump
> > man dhclient
> >
> > Mihai

>
> Ubuntu uses dhclient, if i make /etc/resolv.conf as read only, then
> probably the dns won't get changed. I couldn't find anything helpful in
> the man pages btw.


well making resolv.conf read-only didn't work, instead i figured out a
proper solution:
in /etc/dhcp3/dhclient.conf i had to replace the prepend
domain-name-servers 127.1.0.0 (or whatever it is) with my own dns
address and uncomment it. Then i had to save my dns address in
/etc/resolv.conf, and reboot the system! Thats it!

 
Reply With Quote
 
W Paul Mills
Guest
Posts: n/a

 
      12-06-2006, 08:13 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(E-Mail Removed) wrote:
>> The "tweaks" are probably described in the man page of your dhcp
>> client. I don't know what Ubuntu uses by default - you may try:
>>
>> man pump
>> man dhclient
>>
>> Mihai

>
> Ubuntu uses dhclient, if i make /etc/resolv.conf as read only, then
> probably the dns won't get changed. I couldn't find anything helpful in
> the man pages btw.


But there is more than one program that goes by that name.

In my debian install, I use

prepend domain-name-servers xxx.xxx.xxx.xxx

in /etc/dhcp3/dhclient.conf


see man dhclient.conf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFdomdu4tRirKTPYwRAo3iAJ48uufgZFJKBnfQprq4hA L9SMM00QCfTNT1
8Qcj3P8tI1WjfsqzSK3++4I=
=7EBU
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Alex Buell
Guest
Posts: n/a

 
      12-06-2006, 08:58 AM
On 6 Dec 2006 00:38:20 -0800, I waved a wand and this message magically
appears in front of (E-Mail Removed):

> > Ubuntu uses dhclient, if i make /etc/resolv.conf as read only, then
> > probably the dns won't get changed. I couldn't find anything
> > helpful in the man pages btw.

>
> well making resolv.conf read-only didn't work, instead i figured out a
> proper solution:
> in /etc/dhcp3/dhclient.conf i had to replace the prepend
> domain-name-servers 127.1.0.0 (or whatever it is) with my own dns
> address and uncomment it. Then i had to save my dns address in
> /etc/resolv.conf, and reboot the system! Thats it!


Use dhcpcd instead. It has lots of options to control how you set these
vital IP settings.
--
http://www.munted.org.uk

You've been eating the cat food again, haven't you?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server 2008 DHCP Reservations not visible from 2003 DHCP mmc Ckuderna Windows Networking 2 04-02-2009 01:47 PM
dhcp global predefined option deletion (dhcp standard options) Fernando Windows Networking 0 09-03-2007 10:58 PM
How DHCP decide which scope to give thourgh dhcp relay agent? cs Windows Networking 3 01-04-2007 03:48 AM
Load Ballacing broke DHCP - The DHCP service is not servicing any clients because....... Creative Twitch Windows Networking 3 10-28-2004 01:25 PM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM



1 2 3 4 5 6 7 8 9 10 11