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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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 |
| |||
| 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 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? |
| |||
| 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 |
| ||||
| 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. |