Thank you for your assistance
What is exactly your Debian 12 version ? You can check with the following command:
Version is 12.1
According to your quote above, I assume that 172.23.224.1 is the address of the DNS server/service for the local domain, and that the local domain is "mshome.net": can you please confirm this ?
Yes 172.23.224.1 is the address of the DNS server/service for the local domain the Debian machine is on and it is called "mshome.net". It is a virtual switch managed by HyperV, and all requests just get proxied to the DNS/domain server that the host machine is on that domain is "myorg.it".
In my case I'm trying to reach our privately hosted gitlab repo at "gitlab.myorg.it". So that is adding some complexity, though I don't think it should be too big a hurdle.
cat /etc/hosts
Code: Select all
127.0.0.1 localhost
127.0.1.1 debian
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 debian12.localdomain
127.0.2.1 debian.local debian
## vagrant-hostmanager-start
172.23.230.141 debian.local
## vagrant-hostmanager-end
cat /etc/nsswitch.conf
Code: Select all
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files systemd
group: files systemd
shadow: files systemd
gshadow: files systemd
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
dig
Code: Select all
; <<>> DiG 9.18.16-1~deb12u1-Debian <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61517
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 27
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 86398 IN NS j.root-servers.net.
. 86398 IN NS k.root-servers.net.
. 86398 IN NS l.root-servers.net.
. 86398 IN NS m.root-servers.net.
. 86398 IN NS a.root-servers.net.
. 86398 IN NS b.root-servers.net.
. 86398 IN NS c.root-servers.net.
. 86398 IN NS d.root-servers.net.
. 86398 IN NS e.root-servers.net.
. 86398 IN NS f.root-servers.net.
. 86398 IN NS g.root-servers.net.
. 86398 IN NS h.root-servers.net.
. 86398 IN NS i.root-servers.net.
;; ADDITIONAL SECTION:
a.root-servers.net. 86398 IN A 198.41.0.4
b.root-servers.net. 86398 IN A 170.247.170.2
c.root-servers.net. 86398 IN A 192.33.4.12
d.root-servers.net. 86398 IN A 199.7.91.13
e.root-servers.net. 86398 IN A 192.203.230.10
f.root-servers.net. 86398 IN A 192.5.5.241
g.root-servers.net. 86398 IN A 192.112.36.4
h.root-servers.net. 86398 IN A 198.97.190.53
i.root-servers.net. 86398 IN A 192.36.148.17
j.root-servers.net. 86398 IN A 192.58.128.30
k.root-servers.net. 86398 IN A 193.0.14.129
l.root-servers.net. 86398 IN A 199.7.83.42
m.root-servers.net. 86398 IN A 202.12.27.33
a.root-servers.net. 86398 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 86398 IN AAAA 2801:1b8:10::b
c.root-servers.net. 86398 IN AAAA 2001:500:2::c
d.root-servers.net. 86398 IN AAAA 2001:500:2d::d
e.root-servers.net. 86398 IN AAAA 2001:500:a8::e
f.root-servers.net. 86398 IN AAAA 2001:500:2f::f
g.root-servers.net. 86398 IN AAAA 2001:500:12::d0d
h.root-servers.net. 86398 IN AAAA 2001:500:1::53
i.root-servers.net. 86398 IN AAAA 2001:7fe::53
j.root-servers.net. 86398 IN AAAA 2001:503:c27::2:30
k.root-servers.net. 86398 IN AAAA 2001:7fd::1
l.root-servers.net. 86398 IN AAAA 2001:500:9f::42
m.root-servers.net. 86398 IN AAAA 2001:dc3::35
;; Query time: 44 msec
;; SERVER: 4.2.2.1#53(4.2.2.1) (UDP)
;; WHEN: Fri Jan 10 18:41:23 UTC 2025
;; MSG SIZE rcvd: 811
dig gitlab.myorg.it
Code: Select all
; <<>> DiG 9.18.16-1~deb12u1-Debian <<>> gitlab.myorg.it
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24277
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;gitlab.myorg.it. IN A
;; AUTHORITY SECTION:
myorg.it. 1346 IN SOA ns61.domaincontrol.com. dns.jomax.net. 2024121102 28800 7200 604800 3600
;; Query time: 216 msec
;; SERVER: 4.2.2.1#53(4.2.2.1) (UDP)
;; WHEN: Fri Jan 10 19:15:20 UTC 2025
;; MSG SIZE rcvd: 117
dig @172.23.224.1 gitlab.myorg.it
Code: Select all
; <<>> DiG 9.18.16-1~deb12u1-Debian <<>> @172.23.224.1 gitlab.myorg.it
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3207
;; flags: qr rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;gitlab.myorg.it. IN A
;; ANSWER SECTION:
gitlab.myorg.it. 0 IN A 192.168.0.33
;; Query time: 0 msec
;; SERVER: 172.23.224.1#53(172.23.224.1) (UDP)
;; WHEN: Fri Jan 10 19:41:10 UTC 2025
;; MSG SIZE rcvd: 68
getent ahostsv4
Code: Select all
127.0.0.1 localhost
127.0.1.1 debian
127.0.0.1 localhost ip6-localhost ip6-loopback
127.0.0.1 debian12.localdomain
127.0.2.1 debian.local debian
172.23.230.141 debian.local
getent ahostsv4 gitlab.myorg.it
No output
dig @8.8.8.8
www.google.com
Code: Select all
; <<>> DiG 9.18.16-1~deb12u1-Debian <<>> @8.8.8.8 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57189
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 218 IN A 172.217.14.196
;; Query time: 28 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Fri Jan 10 19:37:57 UTC 2025
;; MSG SIZE rcvd: 59
getent ahostsv4
www.google.com
Code: Select all
142.250.189.196 STREAM www.google.com
142.250.189.196 DGRAM
142.250.189.196 RAW
I don't know how to interpret a lot of this output, but it looks like from the dig output the DNS is returning the expected result "192.168.0.33".