Unix Technical Forum

Linux NameServer Problem

This is a discussion on Linux NameServer Problem within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have a SpeedStream Router its IP address is 192.168.254.200 Whenever I give my linux nameserver a address 192.168.254.x ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:57 AM
ericcvt
 
Posts: n/a
Default Linux NameServer Problem

I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
I give my linux nameserver a address 192.168.254.x it keeps switching
to the SpeedStream router's address when I check the resolv.conf file.
What must I do to keep the address I set and not have it use the
router's address?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:57 AM
David
 
Posts: n/a
Default Re: Linux NameServer Problem

ericcvt wrote:
> I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
> I give my linux nameserver a address 192.168.254.x it keeps switching
> to the SpeedStream router's address when I check the resolv.conf file.
> What must I do to keep the address I set and not have it use the
> router's address?


You need to add the "-R" option to the line that starts dhcpcd.

"-R" Prevents dhcpcd from replacing existing /etc/resolv.conf file.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.0 Kernel 2.4.22 i686 (GCC) 3.3
Uptime: 17:11, 1 user, load average: 1.56, 1.55, 1.59

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:57 AM
Rich Piotrowski
 
Posts: n/a
Default Re: Linux NameServer Problem

On 13 Sep 2003 12:03:28 -0700, ericcvt@hotmail.com (ericcvt) wrote:

>I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
>I give my linux nameserver a address 192.168.254.x it keeps switching
>to the SpeedStream router's address when I check the resolv.conf file.
>What must I do to keep the address I set and not have it use the
>router's address?


Which client do you have? Pump, dhcpcd, dhclient or other? Read the
man for it. There is a way to prevent that. If you give more info,
you'll get more help.


Rich Piotrowski

To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:57 AM
ericcvt
 
Posts: n/a
Default Re: Linux NameServer Problem

Rich Piotrowski <abuse@wi.rr.com> wrote in message news:<fi57mv0sdd1i9qhankhmuoi4ptnmanccs2@4ax.com>. ..
> On 13 Sep 2003 12:03:28 -0700, ericcvt@hotmail.com (ericcvt) wrote:
>
> >I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
> >I give my linux nameserver a address 192.168.254.x it keeps switching
> >to the SpeedStream router's address when I check the resolv.conf file.
> >What must I do to keep the address I set and not have it use the
> >router's address?

>
> Which client do you have? Pump, dhcpcd, dhclient or other? Read the
> man for it. There is a way to prevent that. If you give more info,
> you'll get more help.
>
>
> Rich Piotrowski
>
> To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com


Rich, I think I'm using dhcpcd. I found a directory for in it in /etc
and executable in /sbin. I also found a pump executable, too. Is there
a configuration file where I can tell it to stop using the speedstream
router's address?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:57 AM
Rich Piotrowski
 
Posts: n/a
Default Re: Linux NameServer Problem

On 14 Sep 2003 05:43:59 -0700, ericcvt@hotmail.com (ericcvt) wrote:

>Rich Piotrowski <abuse@wi.rr.com> wrote in message news:<fi57mv0sdd1i9qhankhmuoi4ptnmanccs2@4ax.com>. ..
>> On 13 Sep 2003 12:03:28 -0700, ericcvt@hotmail.com (ericcvt) wrote:
>>
>> >I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
>> >I give my linux nameserver a address 192.168.254.x it keeps switching
>> >to the SpeedStream router's address when I check the resolv.conf file.
>> >What must I do to keep the address I set and not have it use the
>> >router's address?

>>
>> Which client do you have? Pump, dhcpcd, dhclient or other? Read the
>> man for it. There is a way to prevent that. If you give more info,
>> you'll get more help.
>>
>>
>> Rich Piotrowski
>>
>> To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com

>
>Rich, I think I'm using dhcpcd. I found a directory for in it in /etc
>and executable in /sbin. I also found a pump executable, too. Is there
>a configuration file where I can tell it to stop using the speedstream
>router's address?


We still don't know what distro you have! If both those clients are
there, it is difficult to tell which one is being used!

If you have a recent RedHat, you can do this. Look for the file
"/etc/sysconfig/network-scripts/ifcfg-eth0" add the following to that
file;

PEERDNS=no

That should fix it. Otherwise, we still need to *KNOW* which client is
being used and how it is called! Try doing a "ps aux | more" to find
out which is being used. If you then find out where it is called, use
the following switches, For pump it is "-d", for dhcpcd it is "-R".
Those will prevent the client from replacing resolv.conf


Rich Piotrowski

To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:08 AM
ericcvt
 
Posts: n/a
Default Re: Linux NameServer Problem

Rich Piotrowski <abuse@wi.rr.com> wrote in message news:<es19mvk0i066tob345smr2iqbrvbtom1j3@4ax.com>. ..
> On 14 Sep 2003 05:43:59 -0700, ericcvt@hotmail.com (ericcvt) wrote:
>
> >Rich Piotrowski <abuse@wi.rr.com> wrote in message news:<fi57mv0sdd1i9qhankhmuoi4ptnmanccs2@4ax.com>. ..
> >> On 13 Sep 2003 12:03:28 -0700, ericcvt@hotmail.com (ericcvt) wrote:
> >>
> >> >I have a SpeedStream Router its IP address is 192.168.254.200 Whenever
> >> >I give my linux nameserver a address 192.168.254.x it keeps switching
> >> >to the SpeedStream router's address when I check the resolv.conf file.
> >> >What must I do to keep the address I set and not have it use the
> >> >router's address?
> >>
> >> Which client do you have? Pump, dhcpcd, dhclient or other? Read the
> >> man for it. There is a way to prevent that. If you give more info,
> >> you'll get more help.
> >>
> >>
> >> Rich Piotrowski
> >>
> >> To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com

> >
> >Rich, I think I'm using dhcpcd. I found a directory for in it in /etc
> >and executable in /sbin. I also found a pump executable, too. Is there
> >a configuration file where I can tell it to stop using the speedstream
> >router's address?

>
> We still don't know what distro you have! If both those clients are
> there, it is difficult to tell which one is being used!
>
> If you have a recent RedHat, you can do this. Look for the file
> "/etc/sysconfig/network-scripts/ifcfg-eth0" add the following to that
> file;
>
> PEERDNS=no
>
> That should fix it. Otherwise, we still need to *KNOW* which client is
> being used and how it is called! Try doing a "ps aux | more" to find
> out which is being used. If you then find out where it is called, use
> the following switches, For pump it is "-d", for dhcpcd it is "-R".
> Those will prevent the client from replacing resolv.conf
>
>
> Rich Piotrowski
>
> To reply via E-Mail use rpiotro(at)wi(dot)rr(dot)com


Thanks Rich, the address is not being set to the router's address
anymore, since I typed PEERDNS=no in the ifcf... file. Unfortunately
I'm now experiencing other headaches.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com