Results 1 to 9 of 9

Thread: DNS servers change (auto) and become invalid

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Posts
    9

    DNS servers change (auto) and become invalid

    Hello Knoppix people,

    I installed Knoppix today and I encounter the following problem:

    I setup networking correctly but when I restart the DNS entries I inputted are gone.

    So, every time I restart I have to put the DNS server addresses in the Networking panel.
    (I need to be on a static IP)

    The other entries are fine: IP, gateway, subnet.

    Furthermore, after about 3 hours of uptime, the same problem occurs even if I do not restart...
    It reverts to some IP address (its actually 172.16.176.x but I would like it to stay put on 192.168.1.1)

    Any help would be much appreciated.

    Initially I am thinking of amending the /etc/resolv.conf file permissions so that Knoppix does not change it but would like your opinion first.

    Thanks

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: DNS servers change (auto) and become invalid

    Quote Originally Posted by nicholas22
    It reverts to some IP address (its actually 172.16.176.x but I would like it to stay put on 192.168.1.1)
    The common 192.168.xxx.xxx range and the range 172.16.0.0 - 172.31.255.255 are both ranges reserved for private IP addresses. But why your system would jump between them is a mystery that we don't yet have the information to know. Please see answer #3.

    Quote Originally Posted by nicholas22
    I installed Knoppix today ....
    This could well be a big part of your problem.

  3. #3
    Junior Member
    Join Date
    Mar 2007
    Posts
    9

    The info requested by Answer #3

    My NIC is an Yukon Marvell 88E8001 GbLAN

    Router: Linksys BEFSR81 on 192.168.1.1

    I'm on Cable (not a static public IP, but has not changed for the last 3 years I live here)

    I set up the following:
    IP: 192.168.1.254
    Subnet: 255.255.255.0
    Gateway: 192.168.1.1

    I originally setup as DNS servers my ISP name servers but since I keep losing them I just input 192.168.1.1 now and my router sorts DNS out.

    A listing of when I am properly setup:

    eth1 Link encap:Ethernet HWaddr 00:11:2F2:86:1E
    inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::211:2fff:fed2:861e/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4281 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4705 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2959566 (2.8 MiB) TX bytes:904500 (883.3 KiB)
    Interrupt:18

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:68 errors:0 dropped:0 overruns:0 frame:0
    TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:6594 (6.4 KiB) TX bytes:6594 (6.4 KiB)

    vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
    inet addr:172.16.176.128 Bcast:172.16.176.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4 errors:0 dropped:0 overruns:0 frame:0
    TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
    inet addr:192.168.129.128 Bcast:192.168.129.255 Mask:255.255.255.0
    inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:11 errors:0 dropped:0 overruns:0 frame:0
    TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

    The vmnet interfaces were added by VMWare player


    I will restart now and post an ifconfig output of when I'm on the wrong DNS again...

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Posts
    9

    after restart...

    Well the output from ifconfig is the same as it does not mention dns.

    The DNS was changed again to 172.16.176.1.

    I pinged it and ns-looked it up, both before and after; no replies no dns info.

    So again the 1 million dollar question is why does it keep changing it to that?

    Your help is much appreciated

    Thanks again

  5. #5
    Junior Member
    Join Date
    Mar 2007
    Posts
    9

    when installing...

    When I installed to HDD I chose Debian-style, so I don't think this is related to the Knoppix-like version reverting back

    (saw this in another thread)

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    The most common way to setup a network when using a Linksys router is not to make any settings at all, just do DHCP to the router and let it make the assignments. One down side to this is that it may be hard to lock particular local IP addresses to particular computers, and this makes port forwarding for servers a pain. But if that's not an issue I would certainly try to go with DHCP.

    I'm mystified as to where the 172.16 addresses are coming from. This is a private unroutable range, so it can't have anything to do with your ISP's real DNS servers. I'm not even clear if it's coming from your router or from something else. I don't really expect that it is coming from the router, but I would do the following: Enter the router setup and see what DNS servers it says it is using; confirm they are real routable addresses. Consider using them instead of the router's 192.168.x.1 address. Check if there is a newer version of firmware for that router. If not, at least reset the router and see if that helps. Or if you have an alternate router that you could try, use it temporarly and determine if the router is a factor at all.

    I'm not really concerned about the type of Knoppix install you did. I've seen enough reports of strange problems after any type of Knoppix install (except perhaps the "poor man's install"), and particularly networking problems, that I have come to believe it's always a questionable idea. I have never had a problem like this into any of my routers with real Debian installs.

  7. #7
    Junior Member
    Join Date
    Mar 2007
    Posts
    9

    Router

    Yes unfortunately I need to forward some ports (Azureus and others) to this machine.

    But I tried that anyway and I can't activate the interface when I use DHCP...
    The error message: Check that the network settings are correct and the machine connected to it.
    But DHCP worked on the Knoppix LiveDVD 5.1.1 which I used! (was used to install to disk)

    There are about 5 windows machines on DHCP on this network so I don't think there is a problem with the DHCP settings of the router.

    The same thing happens when I use the DNS servers provided by my ISP. They disappear on a reboot or arbitrarily after some hours.

    I've never seen such behaviour on this network and have been using a static IP on WinXP for more than 2 years so I'm pretty certain its something in my new setup or configuration. I have kept my WinXP partition and this doesn't seem to happen. DHCP works as well there.

    Any ideas?

    Do you think that changing the /etc/resolv.conf file permission to non-writeable is ok to try as a workaround?


    Many thanks

  8. #8
    Junior Member
    Join Date
    Mar 2007
    Posts
    9
    Today it decided it would give me 192.168.169.2.......

  9. #9
    Junior Member
    Join Date
    Mar 2007
    Posts
    9
    Well I'm uninstalling, it was fun but I'm not very happy with it.

    Fare well cruel forum

Similar Threads

  1. Top 3 best E-mail servers?
    By Hunkah in forum The Lounge
    Replies: 7
    Last Post: 08-16-2011, 08:57 PM
  2. Cant change locale and get rid of knopix auto-login
    By hal8000 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 01-11-2007, 11:00 PM
  3. proxy servers?
    By A. Jorge Garcia in forum General Support
    Replies: 7
    Last Post: 01-30-2004, 12:30 AM
  4. Apt alternate servers?
    By jeramy in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 12-02-2003, 05:12 PM
  5. auto: auto: no such file or directory
    By maddany in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-16-2003, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Apple Mac Pro 2019 1TB OEM SSD Kit-832GB +128GB - 656-0122/ 656-0121 picture

Apple Mac Pro 2019 1TB OEM SSD Kit-832GB +128GB - 656-0122/ 656-0121

$69.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$60.00



External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac picture

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac

$19.99



Samsung 1TB SSD BM91H 1TB (MZ-VMA1T00) Internal SSD M.2 picture

Samsung 1TB SSD BM91H 1TB (MZ-VMA1T00) Internal SSD M.2

$135.00



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1746.47



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot picture

Netac 2TB 1TB 500GB Internal SSD M.2 NVMe PCIe3.0 Solid State Drive lot

$129.99



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$545.25



Seagate Desktop 1TB/1000GB SATA 3.5

Seagate Desktop 1TB/1000GB SATA 3.5" HDD Hard Drive

$29.99