Quantcast
Viewing all articles
Browse latest Browse all 3567

System and Network configuration • Trouble configuring DNS with Debian 12 for host names in local domain

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:

127.0.0.1       localhost127.0.1.1       debian# The following lines are desirable for IPv6 capable hosts::1     localhost ip6-localhost ip6-loopbackff02::1 ip6-allnodesff02::2 ip6-allrouters127.0.0.1 debian12.localdomain127.0.2.1 debian.local debian## vagrant-hostmanager-start172.23.230.141  debian.local## vagrant-hostmanager-end
cat /etc/nsswitch.conf

Code:

# /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 systemdgroup:          files systemdshadow:         files systemdgshadow:        files systemdhosts:          files dnsnetworks:       filesprotocols:      db filesservices:       db filesethers:         db filesrpc:            db filesnetgroup:       nis
dig

Code:

; <<>> 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.4b.root-servers.net.     86398   IN      A       170.247.170.2c.root-servers.net.     86398   IN      A       192.33.4.12d.root-servers.net.     86398   IN      A       199.7.91.13e.root-servers.net.     86398   IN      A       192.203.230.10f.root-servers.net.     86398   IN      A       192.5.5.241g.root-servers.net.     86398   IN      A       192.112.36.4h.root-servers.net.     86398   IN      A       198.97.190.53i.root-servers.net.     86398   IN      A       192.36.148.17j.root-servers.net.     86398   IN      A       192.58.128.30k.root-servers.net.     86398   IN      A       193.0.14.129l.root-servers.net.     86398   IN      A       199.7.83.42m.root-servers.net.     86398   IN      A       202.12.27.33a.root-servers.net.     86398   IN      AAAA    2001:503:ba3e::2:30b.root-servers.net.     86398   IN      AAAA    2801:1b8:10::bc.root-servers.net.     86398   IN      AAAA    2001:500:2::cd.root-servers.net.     86398   IN      AAAA    2001:500:2d::de.root-servers.net.     86398   IN      AAAA    2001:500:a8::ef.root-servers.net.     86398   IN      AAAA    2001:500:2f::fg.root-servers.net.     86398   IN      AAAA    2001:500:12::d0dh.root-servers.net.     86398   IN      AAAA    2001:500:1::53i.root-servers.net.     86398   IN      AAAA    2001:7fe::53j.root-servers.net.     86398   IN      AAAA    2001:503:c27::2:30k.root-servers.net.     86398   IN      AAAA    2001:7fd::1l.root-servers.net.     86398   IN      AAAA    2001:500:9f::42m.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:

; <<>> 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:

; <<>> 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:

127.0.0.1       localhost127.0.1.1       debian127.0.0.1       localhost ip6-localhost ip6-loopback127.0.0.1       debian12.localdomain127.0.2.1       debian.local debian172.23.230.141  debian.local
getent ahostsv4 gitlab.myorg.it
No output

dig @8.8.8.8 www.google.com

Code:

; <<>> 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:

142.250.189.196 STREAM www.google.com142.250.189.196 DGRAM142.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".

Statistics: Posted by Chronocide0 — 2025-01-10 20:04 — Replies 2 — Views 78



Viewing all articles
Browse latest Browse all 3567

Trending Articles