[solved] unable to reach site with multiple ips

Kernels & Hardware, configuring network, installing services

Re: [solved] unable to reach site with multiple ips

Postby p.H » 2019-04-15 07:32

If you are curious you can search which process is listening on local TCP/UDP port 53.
p.H
 
Posts: 911
Joined: 2017-09-17 07:12

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-15 22:54

p.H wrote:If you are curious you can search which process is listening on local TCP/UDP port 53.

i am

how do i go about this?
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby GarryRicketson » 2019-04-15 23:46

I don't know, but let me see:
On Debian How to search which process is listening on local TCP/UDP port 53
Gee, that was hard: First hit:
https://www.cyberciti.biz/faq/what-process-has-open-linux-port/

Code: Select all
~$ ss -tulpn
Netid State      Recv-Q Send-Q       Local Address:Port                      Peer Address:Port             
udp   UNCONN     0      0                        *:42931                                *:*                 
udp   UNCONN     0      0                        *:68                                   *:*                 
udp   UNCONN     0      0                        *:5353                                 *:*                 
udp   UNCONN     0      0                       :::59680                               :::*                 
udp   UNCONN     0      0                       :::5353                                :::*                 
tcp   LISTEN     0      128                      *:80                                   *:*                 
tcp   LISTEN     0      128                      *:22                                   *:*                 
tcp   LISTEN     0      128                     :::80                                  :::*                 
tcp   LISTEN     0      128                     :::22                                  :::*                 
garry@debian:~$ ss -tulpn | grep :53
udp    UNCONN     0      0         *:5353                  *:*                 
udp    UNCONN     0      0        :::5353                 :::*                 
garry@debian:~$
 

Or with 'netstat'
Code: Select all
garry@debian:~$ netstat -tulpn | grep :53
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           -                   
udp6       0      0 :::5353                 :::*                                -                   
garry@debian:~$ netstat -tulpn | grep :22
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::22                   :::*                    LISTEN      -                   
garry@debian:~$
 
User avatar
GarryRicketson
 
Posts: 5470
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: [solved] unable to reach site with multiple ips

Postby p.H » 2019-04-16 06:57

As indicated in the output, the command must be run with root privileges to show the process.
p.H
 
Posts: 911
Joined: 2017-09-17 07:12

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 16:06

so i got round to installing resolvconf on the laptop. the results there were a bit different
# cat /etc/resolv.conf
Code: Select all
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.1
nameserver 127.0.0.53
search 192.168.1.1


i don't know how and why it is picking up 127.0.0.53
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby Head_on_a_Stick » 2019-04-18 16:29

milomak wrote:i don't know how and why it is picking up 127.0.0.53

That is for systemd's stub resolver.

Is systemd-resolved enabled?
Code: Select all
systemctl is-enabled systemd-resolved
User avatar
Head_on_a_Stick
 
Posts: 9490
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 17:58

it was enabled so i disabled (because on the imac it is disabled)

i then purged resolvconf and installed again

i get
# cat /etc/resolv.conf
Code: Select all
# Generated by NetworkManager
search 192.168.1.1
nameserver 192.168.1.1


i don't know why the laptop doesn't point to 127.0.0.1
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby Head_on_a_Stick » 2019-04-18 18:00

milomak wrote:i don't know why the laptop doesn't point to 127.0.0.1

Because you don't have a local nameserver on the laptop.
User avatar
Head_on_a_Stick
 
Posts: 9490
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 18:15

Head_on_a_Stick wrote:
milomak wrote:i don't know why the laptop doesn't point to 127.0.0.1

Because you don't have a local nameserver on the laptop.

i don't think i set it up on the imac debian install either but it picks up 127.0.0.1

how would i check this?

/etc/dhcp/dhclient.conf are the same
/etc/hosts are the same except that 127.0.1.1 has the name in /etc/hostnames respectively

what else should i be looking for?
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby p.H » 2019-04-18 18:26

Already replied : re-run the ss or netstat commands as root.
p.H
 
Posts: 911
Joined: 2017-09-17 07:12

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 19:30

debian on imac

# netstat -tulpn | grep :53
Code: Select all
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      952/unbound         
tcp6       0      0 ::1:53                  :::*                    LISTEN      952/unbound         
udp        0      0 127.0.0.1:53            0.0.0.0:*                           952/unbound         
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           773/avahi-daemon: r
udp6       0      0 ::1:53                  :::*                                952/unbound         
udp6       0      0 :::5353                 :::*                                773/avahi-daemon: r


# netstat -tulpn | grep :22
Code: Select all
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      894/sshd           
tcp6       0      0 :::22                   :::*                    LISTEN      894/sshd
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 19:32

on the laptop

# netstat -tulpn | grep :53
Code: Select all
tcp        0      0 0.0.0.0:538             0.0.0.0:*               LISTEN      1496/gdomap         
udp        0      0 0.0.0.0:538             0.0.0.0:*                           1496/gdomap         
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           847/avahi-daemon: r
udp6       0      0 :::5353                 :::*                                847/avahi-daemon: r


# netstat -tulpn | grep :22
Code: Select all
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1381/sshd           
tcp6       0      0 :::22                   :::*                    LISTEN      1381/sshd
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 19:33

imac works

laptop doesn't
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

Re: [solved] unable to reach site with multiple ips

Postby Head_on_a_Stick » 2019-04-18 19:52

Your imac is running unbound, which is a local nameserver.

To get unbound running on your laptop (with DNSSEC) use
Code: Select all
# apt install dnssec-trigger
User avatar
Head_on_a_Stick
 
Posts: 9490
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] unable to reach site with multiple ips

Postby milomak » 2019-04-18 20:17

Head_on_a_Stick wrote:Your imac is running unbound, which is a local nameserver.

To get unbound running on your laptop (with DNSSEC) use
Code: Select all
# apt install dnssec-trigger

nope

on laptop
Code: Select all
# dpkg -l | grep dnssec-trigger
#


edit

what is happening

on laptop
# dpkg -l | grep unbound
Code: Select all
ii  libunbound8:amd64                                           1.9.0-2                              amd64        library implementing DNS resolution and validation
ii  unbound                                                     1.9.0-2                              amd64        validating, recursive, caching DNS resolver
ii  unbound-anchor                                              1.9.0-2                              amd64        utility to securely fetch the root DNS trust anchor


above packages on debian laptop
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1942
Joined: 2009-06-09 22:20

PreviousNext

Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable