Page 1 of 1

Change Primary DNS

Posted: Wed Jun 07, 2023 11:31 am
by smilliken
For some reason, and I don't have a clue why, but my connection to my network has changed. I have an IP Address for both my ISP and the network and it is consistent with my network. The Network manager shows that I have Wi-Fi and very strong signal to boot. But when I try to go any where the browser advise there is no connection to the network. When I check the Network Manger Connection Information, I see the Primary DNS is showing 192.168.1.XX which is different than the rest of the computers on the network, not the proper gateway.

I followed a post https://unix.stackexchange.com/question ... -debian-11 and it did fix things for a while, but it has reverted back to the same as shown above.

Is there a simple way to get the proper gateway back?

Thanks
Scott

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 11:46 am
by CharlesV
Please post your QSI

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 8:08 pm
by smilliken
CharlesV wrote: Wed Jun 07, 2023 11:46 am Please post your QSI

Code: Select all

System:    Kernel: 6.1.0-2mx-rt-amd64 [6.1.7-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-2mx-rt-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower August 28  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: ASUSTeK model: P8Z68-V PRO v: Rev 1.xx serial: <filter> 
           BIOS: American Megatrends v: 3603 date: 11/09/2012 
CPU:       Info: Quad Core model: Intel Core i5-2500 bits: 64 type: MCP arch: Sandy Bridge 
           family: 6 model-id: 2A (42) stepping: 7 microcode: 2F cache: L2: 6 MiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 26484 
           Speed: 1700 MHz min/max: 1600/5900 MHz Core speeds (MHz): 1: 1700 2: 1600 3: 1605 
           4: 1605 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
           Type: mds mitigation: Clear CPU buffers; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Unknown: No mitigations 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: disabled, 
           RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
           vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0102 
           class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2") 
           s-diag: 1055mm (41.5") 
           Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           Monitor-2: HDMI-3 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           OpenGL: renderer: Mesa Intel HD Graphics 2000 (SNB GT1) v: 3.3 Mesa 22.0.5 
           compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASUSTeK 
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 
           Sound Server-1: ALSA v: k6.1.0-2mx-rt-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel 82579V Gigabit Network vendor: ASUSTeK P8P67 Deluxe driver: e1000e 
           v: kernel port: f080 bus-ID: 00:19.0 chip-ID: 8086:1503 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G 802.11bg] 
           vendor: D-Link System WDA-1320 driver: ath5k v: kernel port: e000 bus-ID: 07:01.0 
           chip-ID: 168c:001a class-ID: 0200 
           IF: wlan0 state: up mac: <filter> 
Bluetooth: Device-1: ASUSTek Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 2-1.7:7 
           chip-ID: 0b05:179c class-ID: e001 
           Report: hciconfig ID: hci1 rfk-id: 2 state: up address: <filter> bt-v: 2.0 lmp-v: 3.0 
           sub-v: 9999 hci-v: 3.0 rev: 9999 
           Info: acl-mtu: 1022:8 sco-mtu: 121:3 link-policy: rswitch hold sniff 
           link-mode: slave accept service-classes: rendering, capturing, object transfer, audio 
           Device-2: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb 
           v: 0.8 bus-ID: 5-1:2 chip-ID: 0a12:0001 class-ID: e001 
           Report: ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 1.2 lmp-v: 2.1 sub-v: 149c 
           hci-v: 2.1 rev: 149c 
           Info: acl-mtu: 310:10 sco-mtu: 64:8 link-policy: rswitch hold sniff park 
           link-mode: slave accept service-classes: rendering, capturing, object transfer, audio 
Drives:    Local Storage: total: 1.16 TiB used: 340.41 GiB (28.5%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD6400AAKS-00A7B0 
           size: 596.17 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A 
           serial: <filter> rev: 3B01 scheme: MBR 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD6400AAKS-22A7B0 
           size: 596.17 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A 
           serial: <filter> rev: 3B01 scheme: MBR 
Partition: ID-1: / raw-size: 50.08 GiB size: 48.99 GiB (97.83%) used: 13.76 GiB (28.1%) fs: ext4 
           dev: /dev/sda1 maj-min: 8:1 
           ID-2: /home raw-size: 543.91 GiB size: 534.3 GiB (98.23%) used: 150.47 GiB (28.2%) 
           fs: ext4 dev: /dev/sda3 maj-min: 8:3 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 2.18 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/sda2 maj-min: 8:2 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 28.0 C 
           Fan Speeds (RPM): cpu: 1258 fan-1: 0 fan-3: 1605 fan-4: 1163 fan-5: 1367 
           Power: 12v: N/A 5v: N/A 3.3v: 3.31 vbat: 3.38 
Repos:     Packages: note: see --pkg apt: 2067 lib: 1020 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ bullseye-updates non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mxrepo.com/mx/repo/ bullseye main non-free
           2: deb http://mxrepo.com/mx/testrepo/ bullseye test
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https://deb.opera.com/opera-stable/ stable non-free
           No active apt repos in: /etc/apt/sources.list.d/opera.list 
           Active apt repos in: /etc/apt/sources.list.d/virtualbox.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/virtualbox.gpg] http://download.virtualbox.org/virtualbox/debian/ bullseye contrib
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 279 Uptime: 2d 4h 57m wakeups: 3 Memory: 15.53 GiB used: 1.37 GiB (8.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 8:10 pm
by CharlesV
Properly posted. ( using the code buttons above.)

Code: Select all

System:    Kernel: 6.1.0-2mx-rt-amd64 [6.1.7-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-2mx-rt-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower August 28  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: ASUSTeK model: P8Z68-V PRO v: Rev 1.xx serial: <filter> 
           BIOS: American Megatrends v: 3603 date: 11/09/2012 
CPU:       Info: Quad Core model: Intel Core i5-2500 bits: 64 type: MCP arch: Sandy Bridge 
           family: 6 model-id: 2A (42) stepping: 7 microcode: 2F cache: L2: 6 MiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 26484 
           Speed: 1700 MHz min/max: 1600/5900 MHz Core speeds (MHz): 1: 1700 2: 1600 3: 1605 
           4: 1605 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
           Type: mds mitigation: Clear CPU buffers; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Unknown: No mitigations 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: disabled, 
           RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
           vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0102 
           class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2") 
           s-diag: 1055mm (41.5") 
           Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           Monitor-2: HDMI-3 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           OpenGL: renderer: Mesa Intel HD Graphics 2000 (SNB GT1) v: 3.3 Mesa 22.0.5 
           compat-v: 3.1 direct render: Yes 
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASUSTeK 
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 
           Sound Server-1: ALSA v: k6.1.0-2mx-rt-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel 82579V Gigabit Network vendor: ASUSTeK P8P67 Deluxe driver: e1000e 
           v: kernel port: f080 bus-ID: 00:19.0 chip-ID: 8086:1503 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros AR2413/AR2414 Wireless Network Adapter [AR5005G 802.11bg] 
           vendor: D-Link System WDA-1320 driver: ath5k v: kernel port: e000 bus-ID: 07:01.0 
           chip-ID: 168c:001a class-ID: 0200 
           IF: wlan0 state: up mac: <filter> 
Bluetooth: Device-1: ASUSTek Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 2-1.7:7 
           chip-ID: 0b05:179c class-ID: e001 
           Report: hciconfig ID: hci1 rfk-id: 2 state: up address: <filter> bt-v: 2.0 lmp-v: 3.0 
           sub-v: 9999 hci-v: 3.0 rev: 9999 
           Info: acl-mtu: 1022:8 sco-mtu: 121:3 link-policy: rswitch hold sniff 
           link-mode: slave accept service-classes: rendering, capturing, object transfer, audio 
           Device-2: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb 
           v: 0.8 bus-ID: 5-1:2 chip-ID: 0a12:0001 class-ID: e001 
           Report: ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 1.2 lmp-v: 2.1 sub-v: 149c 
           hci-v: 2.1 rev: 149c 
           Info: acl-mtu: 310:10 sco-mtu: 64:8 link-policy: rswitch hold sniff park 
           link-mode: slave accept service-classes: rendering, capturing, object transfer, audio 
Drives:    Local Storage: total: 1.16 TiB used: 340.41 GiB (28.5%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD6400AAKS-00A7B0 
           size: 596.17 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A 
           serial: <filter> rev: 3B01 scheme: MBR 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD6400AAKS-22A7B0 
           size: 596.17 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A 
           serial: <filter> rev: 3B01 scheme: MBR 
Partition: ID-1: / raw-size: 50.08 GiB size: 48.99 GiB (97.83%) used: 13.76 GiB (28.1%) fs: ext4 
           dev: /dev/sda1 maj-min: 8:1 
           ID-2: /home raw-size: 543.91 GiB size: 534.3 GiB (98.23%) used: 150.47 GiB (28.2%) 
           fs: ext4 dev: /dev/sda3 maj-min: 8:3 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 2.18 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/sda2 maj-min: 8:2 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 28.0 C 
           Fan Speeds (RPM): cpu: 1258 fan-1: 0 fan-3: 1605 fan-4: 1163 fan-5: 1367 
           Power: 12v: N/A 5v: N/A 3.3v: 3.31 vbat: 3.38 
Repos:     Packages: note: see --pkg apt: 2067 lib: 1020 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ bullseye-updates non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mxrepo.com/mx/repo/ bullseye main non-free
           2: deb http://mxrepo.com/mx/testrepo/ bullseye test
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https://deb.opera.com/opera-stable/ stable non-free
           No active apt repos in: /etc/apt/sources.list.d/opera.list 
           Active apt repos in: /etc/apt/sources.list.d/virtualbox.list 
           1: deb [arch=amd64 signed-by=/usr/share/keyrings/virtualbox.gpg] http://download.virtualbox.org/virtualbox/debian/ bullseye contrib
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 279 Uptime: 2d 4h 57m wakeups: 3 Memory: 15.53 GiB used: 1.37 GiB (8.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 8:15 pm
by CharlesV
I am assuming you dont have any kind of proxy or VPN software on board ?


Open Advanced Network Connections

Double click on your current Wi-Fi connection and go to the IPv4 Settings tab.
For a correct DHCP setting the Method should Automatic (DHCP) and all other fields should be empty. (Unless you *want* to define other DNS servers, and then you would put those entries into the Additional DNS Servers field.

Also verify that the proxy tab, Method is st to none.

Save it and either restart networking or reboot.

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 8:49 pm
by smilliken
CharlesV wrote: Wed Jun 07, 2023 8:15 pm I am assuming you dont have any kind of proxy or VPN software on board ?


Open Advanced Network Connections

Double click on your current Wi-Fi connection and go to the IPv4 Settings tab.
For a correct DHCP setting the Method should Automatic (DHCP) and all other fields should be empty. (Unless you *want* to define other DNS servers, and then you would put those entries into the Additional DNS Servers field.

Also verify that the proxy tab, Method is st to none.

Save it and either restart networking or reboot.
No proxy nor VPN being used.

All settings in the Network Connections are set as you stated above.

The file /etc/resolv.conf has a line in it stating it was generated by NetworkManager, states nameserver 192.168.1.XXX which is the IP Address that shows up in the connection information and is not my router.

I changed the IP Address to match my router and the other computers on the network and rebooted.

The file reverted back to the originating IP Address.

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 8:50 pm
by smilliken
CharlesV wrote: Wed Jun 07, 2023 8:15 pm I am assuming you dont have any kind of proxy or VPN software on board ?


Open Advanced Network Connections

Double click on your current Wi-Fi connection and go to the IPv4 Settings tab.
For a correct DHCP setting the Method should Automatic (DHCP) and all other fields should be empty. (Unless you *want* to define other DNS servers, and then you would put those entries into the Additional DNS Servers field.

Also verify that the proxy tab, Method is st to none.

Save it and either restart networking or reboot.
No proxy nor VPN being used.

All settings in the Network Connections are set as you stated above.

The file /etc/resolv.conf has a line in it stating it was generated by NetworkManager, states nameserver 192.168.1.XXX which is the IP Address that shows up in the connection information and is not my router.

I changed the IP Address to match my router and the other computers on the network and rebooted.

The file reverted back to the originating IP Address.

I commented the line out of the file, saved it and reboot, only to find the file changed back to its original and the line was uncommented.

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 9:02 pm
by CharlesV
So, some software is changing that - usually it is your dhcp doing it. if your router is not 192.168.1.x then make sure you have no other dhcp server on your network. Defaulting 192.168.1.1 routers or devices can wreak havoc on a router that is set to 192.168.1.1 and and if yours is.. then you can avoid much grief by moving that .1 to something else!

As a work around, you could set static IP until you find out whats going on. That same Advanced Network Connections, IPv4 tab, change to static and fill in the info from your other machine, but make sure your IP is one that either NOT be handed out by you router or one that is VERY high up in the ip schema. (example: I *always* set my router to hand out dhcp with the last octoids being .101 ~ 250 .. this way I can always 'duck under' 101.. so set a static of .99 if I need to. )

Most network guys have an IP schema they use for "knowing" where things MIGHT be on their network - if your router is set to .1 and starts handing out dhcp at .2 and goes up to .250 like so many... then your going to have to just plug in someplace where it 'normally wont assign addresses" and test it there. Higher IP's are usually better.

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 10:32 pm
by smilliken
CharlesV wrote: Wed Jun 07, 2023 9:02 pm So, some software is changing that - usually it is your dhcp doing it. if your router is not 192.168.1.x then make sure you have no other dhcp server on your network. Defaulting 192.168.1.1 routers or devices can wreak havoc on a router that is set to 192.168.1.1 and and if yours is.. then you can avoid much grief by moving that .1 to something else!

As a work around, you could set static IP until you find out whats going on. That same Advanced Network Connections, IPv4 tab, change to static and fill in the info from your other machine, but make sure your IP is one that either NOT be handed out by you router or one that is VERY high up in the ip schema. (example: I *always* set my router to hand out dhcp with the last octoids being .101 ~ 250 .. this way I can always 'duck under' 101.. so set a static of .99 if I need to. )

Most network guys have an IP schema they use for "knowing" where things MIGHT be on their network - if your router is set to .1 and starts handing out dhcp at .2 and goes up to .250 like so many... then your going to have to just plug in someplace where it 'normally wont assign addresses" and test it there. Higher IP's are usually better.
Only 1 router on the network and the gateway is at the other end of the .1 spectrum. I have made changes to the adapter for the Static IP and added the Gateway which is my router. I've rebooted several times and the Network Connections show the Primary Router as correct, but there is no entry for the Primart DNS and have no access to the internet.

Is there some package that could be uninstalled and then reinstalled that would possible correct this?

Re: Change Primary DNS

Posted: Wed Jun 07, 2023 11:16 pm
by CharlesV
Try adding a DNS - either your router or 1.1.1.1 or some other dns server.

This is the third time I have heard someone tell of this type of thing, I will look around and see if I can find anything more about it.

Re: Change Primary DNS

Posted: Fri Jun 09, 2023 3:43 pm
by smilliken
I played around for bit with this. I wondered if it had to do with my Wi-Fi card, so I tried a Live_USB drive and everything worked as it should. So, I reinstalled the OS and it is working now. I just need to install some packages that were on it before and I'll be back in business.

Thanks foro you help.

Re: Change Primary DNS

Posted: Fri Jun 09, 2023 4:39 pm
by CharlesV
Your welcome and glad you have found a fix. Please mark as solved. (Check mark at the top of the post that was the resolution.)

Re: Change Primary DNS

Posted: Fri Jun 09, 2023 5:11 pm
by gabbawokky
Erm..noob question: Shouldn't everyone change the standard ISP dns server to a 'free' dns server ?
Found myself some time ago this opennic project and use those dns server since.
www.opennic.org

Re: Change Primary DNS

Posted: Fri Jun 09, 2023 5:15 pm
by CharlesV
gabbawokky wrote: Fri Jun 09, 2023 5:11 pm Erm..noob question: Shouldn't everyone change the standard ISP dns server to a 'free' dns server ?
Found myself some time ago this opennic project and use those dns server since.
www.opennic.org
I would agree with this. There are some places that it is difficult to do, however using something like cloudflare (1.1.1.1) or Opendns ( 208.67.222.222 ) and a few others have their benefits.

Also, depending up on your ISP.. some are notorious for raking dns, some sell dns requests, and some have the worst DNS services in history! So, your ride can very widely depending upon which ISP you have.

Re: Change Primary DNS

Posted: Wed Aug 23, 2023 11:19 pm
by smilliken
Ok, so the mystery primary DNS has changed again.
Any other ideas?

Re: Change Primary DNS

Posted: Wed Aug 23, 2023 11:46 pm
by CharlesV
If you re getting your DNS from spectrum, then they can change it at any time.

If you dont want to use their DNS, then you need to set it specifically in your Advanced Network Configuration

Re: Change Primary DNS

Posted: Thu Aug 24, 2023 7:31 pm
by smilliken
CharlesV wrote: Wed Aug 23, 2023 11:46 pm If you re getting your DNS from spectrum, then they can change it at any time.

If you dont want to use their DNS, then you need to set it specifically in your Advanced Network Configuration
No, not spectrum.

This is the Primary DNS which should show the IP address of my router, which it doesn't. This IP should be provide by the router not the ISP. All of my other device show the Primary DNS as my router's IP. And the problem computer is not the only Debian Linux based computers connected to the network. Also, the Mac show the proper IP.

Re: Change Primary DNS

Posted: Thu Aug 24, 2023 8:19 pm
by CharlesV
You can force a primary DNS in the network connections.

Right click on your network icon in the taskbar, then choose the proper network connection and double click it.
Go to the IPV4 settings tab.

In the field Additional DNS Servers, put in the one you want and then click save.

Disconnect your network connection and then reconnect again.

if you then look in the /etc/resolve.conf or /run/NetworkManager/resolv.conf you should see the DNS entry you put in... first in the list.

There are MANY applications that can change the dns, and also secondary dhcp services on the network which can wreak havoc. If your machine is the only one having this issue, then chances are its software on your machine.

And I would suggest that you attempt to track down the incorrect DNS and see where it is going - this may hold a clue as to what software is changing it.

Re: Change Primary DNS

Posted: Thu Aug 24, 2023 9:59 pm
by smilliken
CharlesV wrote: Thu Aug 24, 2023 8:19 pm You can force a primary DNS in the network connections.

Right click on your network icon in the taskbar, then choose the proper network connection and double click it.
Go to the IPV4 settings tab.

In the field Additional DNS Servers, put in the one you want and then click save.

Disconnect your network connection and then reconnect again.

if you then look in the /etc/resolve.conf or /run/NetworkManager/resolv.conf you should see the DNS entry you put in... first in the list.

There are MANY applications that can change the dns, and also secondary dhcp services on the network which can wreak havoc. If your machine is the only one having this issue, then chances are its software on your machine.

And I would suggest that you attempt to track down the incorrect DNS and see where it is going - this may hold a clue as to what software is changing it.
Thanks again CharlesV. I doesn't seem to make much difference adding the Primary DNS IP. As you can see from the images, it is the Default Route that is the problem and it adds the Primary DNS.
20230824_191938.png
20230824_192017.jpg

Re: Change Primary DNS

Posted: Thu Aug 24, 2023 11:21 pm
by CharlesV
And you did DNS for your wireless connection right? and you disconnected it and reconnected it ?

its not JUST DNS... your entire route is wrong if your router is truly .254, then you have something else dictating on your dhcp on your network or machine.

Have you tracked down what that .62 address device is? It could very well be delivering dhcp and your getting caught in it.

You may want to set a static IP for you, complete with router / gateway, DNS and your IP .

Re: Change Primary DNS

Posted: Fri Aug 25, 2023 3:42 pm
by smilliken
CharlesV wrote: Thu Aug 24, 2023 11:21 pm And you did DNS for your wireless connection right? and you disconnected it and reconnected it ?
Yes, even had a reboot a couple of times.
its not JUST DNS... your entire route is wrong if your router is truly .254, then you have something else dictating on your dhcp on your network or machine.
How would I dig around to find out what is dictating on my DHCP?
Have you tracked down what that .62 address device is? It could very well be delivering dhcp and your getting caught in it.
Again, is there some command line commands that I could run to find this out?
You may want to set a static IP for you, complete with router / gateway, DNS and your IP.
My router has this computer set with a static IP which is the one that is shown in the image above.

Re: Change Primary DNS

Posted: Fri Aug 25, 2023 4:56 pm
by CharlesV
My router has this computer set with a static IP which is the one that is shown in the image above.
You cannot rely on a dhcp lease if something is changing out that lease - like what your describing. You will *need* to setup your computer to be the static side - IP, Gateway (Router) and DNS. once you set that on YOUR machine, then it will not request and should be all 100% on your settings.
How would I dig around to find out what is dictating on my DHCP?
And you do NOT have a Wireless AP someplace other than the router ?

The first thing I would do is to first ping the machine that is handing that route / gateway .

Code: Select all

ping 192.168.1.62 

The device should answer that ping.

Then you can run nmap to see what is available on that machine. and then I would run nmap to see *all* machines addressing on your network ;-/

so to see that machine and give you about as much info as we can gather use :

Code: Select all

sudo nmap -O -v 192.168.1.62
Then, if you want to see whats on your network, do this one:

Code: Select all

sudo nmap -O -v -sP 192.168.1.0/24

Then, if you just cannot identify that .62 device. I would personally turn ALL devices off except for your router and your computer and then ping 192.168.1.62 again If it answers... then either you missed a device (most likely) or something is running on your machine or on the router. Next would be to set your machine to static and then turn the router off and try that ping again.

You have to narrow down until you are able to see exactly what the .62 device is.

If you have access into the router, you might be able to find out what MAC address is being assigned .62 ... but I seriously doubt it will be listed in that router - I think it is some old or other device that your router doesnt know about.

Re: Change Primary DNS

Posted: Sat Aug 26, 2023 8:25 am
by davidy
I use quad9 on my Asus router under the WAN's DNS Director to use a 'router global client redirect': IPv4 9.9.9.11 & 149.112.112.11, IPv6 2620:fe::11
The LAN part uses the same ip's for DNS. I have no idea if it's perfect, or even correct, but between my fiber connect and not having to change anything else on any device it works great here. 144Mb/s consistent on a basic connect me plan. BTW fiber blows spectrum all to hell. Quad9 is supposed to neither throttle nor log/block. And that's with a vpn's stock dns settings.

Re: Change Primary DNS  [Solved]

Posted: Sun Aug 27, 2023 11:06 am
by smilliken
CharlesV wrote: Fri Aug 25, 2023 4:56 pm
My router has this computer set with a static IP which is the one that is shown in the image above.
You cannot rely on a dhcp lease if something is changing out that lease - like what your describing. You will *need* to setup your computer to be the static side - IP, Gateway (Router) and DNS. once you set that on YOUR machine, then it will not request and should be all 100% on your settings.
How would I dig around to find out what is dictating on my DHCP?
And you do NOT have a Wireless AP someplace other than the router ?

The first thing I would do is to first ping the machine that is handing that route / gateway .

Code: Select all

ping 192.168.1.62 

The device should answer that ping.

Then you can run nmap to see what is available on that machine. and then I would run nmap to see *all* machines addressing on your network ;-/

so to see that machine and give you about as much info as we can gather use :

Code: Select all

sudo nmap -O -v 192.168.1.62
Then, if you want to see whats on your network, do this one:

Code: Select all

sudo nmap -O -v -sP 192.168.1.0/24

Then, if you just cannot identify that .62 device. I would personally turn ALL devices off except for your router and your computer and then ping 192.168.1.62 again If it answers... then either you missed a device (most likely) or something is running on your machine or on the router. Next would be to set your machine to static and then turn the router off and try that ping again.

You have to narrow down until you are able to see exactly what the .62 device is.

If you have access into the router, you might be able to find out what MAC address is being assigned .62 ... but I seriously doubt it will be listed in that router - I think it is some old or other device that your router doesnt know about.
@CharlesV This worked. I found an old D-Link WiFi extender that had been plugged into an outlet in my garage that had the .62 IP address. Unpllugged, disconnected and reconnected and acccess to the world began again.

Thanks a million for your assistance.

Re: Change Primary DNS

Posted: Sun Aug 27, 2023 11:35 am
by CharlesV
Excellent! Ya, some of those old devices can really haunt you!

Glad you found it and got it resolved :-)