Cyberlium

Network › Module 7 › Lesson 1

BeginnerModule 7Lesson 1/5

Why Apps Trust Names

Apps call a name, then connect to the IP they were told — then YOUR resolver view.

15 min+40 XP3 quiz
Module progress1 of 5

Visual · dns_apps_trust_names

DNS trust is “the IP that answered for this name.”. Original Cyberlium.

Opening

The padlock is not looking at the nickname you typed. The app asked a resolver, then connected to an address.

Humans remember names. Programs remember the last answer they were willing to trust. When a client “opens example.com,” it is usually doing two jobs: ask which IP currently answers for that name, then open a socket to that IP. If the answer is wrong, TLS and firewalls still operate on the wrong place. That is why DNS trust is network security, not trivia. Original Cyberlium Topic 11 — not a vendor DNS cert, not a license to hijack anyone else's resolver.

1. Name, then address, then socket

Most apps do not magically know where a service lives. They ask: stub resolver on THIS host, then whatever DNS servers that stub is configured to use. The answer is one or more IPs. The TCP/TLS session is with an IP. Trusting the name without caring who answered is how phishing sites and “helpful” captive portals steal the plot.

Literacy lookup of example.com is allowed here so you can see that YOUR machine already performs this step. It is not a recon sweep. It is not changing anyone else's records.

Command guide

Name, then address, then socket

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install dnsutils

macOS: Built-in

Windows: Use nslookup (built-in)

═══ COMMANDS ═══

Command — copy this

nslookup example.com

2. YOUR stub is the first policy point you actually own

Windows, macOS, and Linux each keep a stub: which servers to ask, whether to cache, whether a hosts file overrides. Cloud VMs sometimes inherit resolver settings you did not notice. Before you argue about “the internet's DNS,” print what THIS host uses.

You still do not reconfigure a campus resolver, a hotel controller, or a roommate's Pi-hole without authorization. ; if it was the home router admin page, STOP — that is not your DNS lab box.

Command guide

YOUR stub is the first policy point you actually own

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install python3

macOS:

Command — copy this

brew install python3

Windows: Download https://python.org/downloads/

═══ COMMANDS ═══

Command — copy this

powershell.exe -NoProfile -Command "Resolve-DnsName example.com | Format-Table Name,Type,IPAddress,NameHost -AutoSize"
python3 - << 'PY'
import socket
print("getaddrinfo example.com ->", socket.getaddrinfo("example.com", 443)[:4])
print("this is YOUR stub talking — do not target other people's nameservers")
PY

3. Wrong IP, pretty name

If the resolver lies, the user still sees the name they typed. Browser UI can help (HSTS, certificate names), but plenty of apps just connect. That is the trust problem Module 7 exists to name.

Next lesson uses a PRACTICE hosts file you own, not a hijack of a public zone, and not “overwrite Windows system hosts as the only path.”

Command guide

Wrong IP, pretty name

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install dnsutils

macOS: Built-in

Windows: Use nslookup (built-in)

═══ COMMANDS ═══

Command — copy this

powershell.exe -NoProfile -Command "Get-DnsClientServerAddress -AddressFamily IPv4 | Select-Object InterfaceAlias,ServerAddresses | Format-List" || (cat /etc/resolv.conf || true)

4. What you ship: a three-step name→IP→socket note

Write how THIS host resolves. Literacy lookup of example.com is enough. / STOP if router. Do not spoof anyone else's DNS. Do not nmap resolvers on the LAN.

5. What you record before the next lesson

Date. Name then IP then socket. YOUR resolver servers noted. DEMO identified/STOP. SAFE NEVER spoof others' DNS, hydra, or /24 nmap. File t11-m07-l01-trust-names.txt.

6. Wrong vs right: stranger networks vs literacy on systems you own

Worked failure — same network word, opposite target. Right never needs a café or campus LAN.

  • Wrong

    Change a neighbor's DNS to 8.8.8.8 “for their safety.” Spoof answers on the LAN. nmap port 53 across 192.168.0.0/24.

  • Right

    Resolve example.com on THIS host. Write the three steps. Leave other resolvers alone. Next: Spoofing as an Idea on YOUR Hosts File.

Mission: watch YOUR host trust a name

1) / STOP if router. 2) nslookup or Resolve-DnsName example.com on THIS host. 3) Write name → IP → socket in cyberlium-lab. Never spoof DNS. Never scan the LAN.

Stuck? Ask Cyberlium AI Mentor

Ask Mentor what a stub resolver is on your OS — not how to hijack the building's DNS.

Knowledge Check

1

APPLY: An app “opens mail.example” and TLS talks to an unexpected IP. What failed first?

Multiple choice

Knowledge Check

2

APPLY: True or False: Looking up example.com on THIS host with nslookup is a Cyberlium literacy command, not a LAN attack.

True or False

Knowledge Check

3

APPLY: curl http://192.168.0.1/ is a TP-Link Router Admin page. DNS homework?

Multiple choice

← Previous

Answer all 3 knowledge checks to continue. (0/3 answered)