Is it normal that my server is requesting 8.8.8.8 dns with 22/udp as source port? How can i get it to use unregistered ports only
Asked
Active
Viewed 274 times
3
-
Could you add to the question the output of: `lsb_release -a` , `cat /etc/resolv.conf` and `resolvectl status` ? – Mircea Vutcovici Apr 07 '21 at 03:11
-
I ll post it as soon as i can thanks – MeMow Apr 10 '21 at 19:34
-
None of these commands work for me. I'm on rhel 7. – MeMow Apr 12 '21 at 22:31
-
I expect `cat /etc/resolv.conf` to work for RHEL7. Could you share the error message? – Mircea Vutcovici Apr 13 '21 at 03:47
-
search xxxx.pp nameserver 8.8.8.8 no problem. Only that command is not recognised – MeMow Apr 13 '21 at 12:19
1 Answers
4
Is it normal that my server is requesting dns with 22/udp as source port?
No.
You would expect DNS queries from a client to use either:
a random ephemeral port (which you can adjust in
/proc/sys/net/ipv4/ip_local_port_range
but is typically 32769-60999)when no port randomization is used: UDP port 53

Bob
- 5,805
- 7
- 25