Addressing & DNS: glossary
116 terms, in plain words, with where each one is taught.
- /31
- A range of two addresses, only used on a link between exactly two routers, where both addresses may be used. Lesson 10.3
- /32 (host route, Hostroute)
- A range of exactly one address. You write a single machine this way in routes and firewall rules, like 10.0.3.53/32. Lesson 10.3
- A record (AAAA, AAAA record)
- A record: name to IPv4 address. AAAA record: name to IPv6 address. Lesson 10.22
- address plan
- A written list of which address range is used for what (each environment, region, office), made before anything is built and kept in a repo. Lesson 10.6
- alignment (aligned)
- A block of addresses must start on a multiple of its own size: a /22 where the third octet is a multiple of 4. A block that starts anywhere else is not a valid network. Lesson 10.6
- ARP
- Address Resolution Protocol: finds the MAC for an IP on the local network. The box shouts "who has 10.64.0.1?" and the owner replies with its MAC. Lesson 10.14
- The server that holds the real data for a zone. Its answers carry the aa flag; everyone else is repeating what they heard. Lesson 10.16
- binary number (base 2, in binary)
- Writing numbers with only the digits 0 and 1. Each position is worth double the one to its right: 1, 2, 4, 8, 16... In one octet the positions are worth 128 64 32 16 8 4 2 1. 168 = 128 + 32 + 8 =
10101000. Lesson 10.1 - bit (bits)
- One binary digit: 0 or 1. Computers store everything as long rows of bits. Lesson 10.1
- bitwise AND (AND)
- Comparing two rows of bits position by position: the result is 1 only where both are 1. An address AND its netmask gives the network address. Lesson 10.1
- block size
- How wide one network is inside the octet where its prefix ends: 256 minus the mask value of that octet. A /20 has mask octet 240, so block 16. Lesson 10.1
- broadcast
- A message sent to every machine on the local network at once. ARP questions are broadcasts. Lesson 10.14
- broadcast address
- The last address of a network: every host bit set to 1. A message sent to it reaches every machine on that network, so it is not given to a machine either. Lesson 10.1
- cache (caching)
- A memory of recent answers, so the same question does not have to be asked again. DNS answers are cached for their TTL. Lesson 10.16
- CIDR (CIDR block, CIDR notation)
- The address/prefix way of writing a range, like 10.0.0.0/16. "A CIDR" or "a CIDR block" means a range written that way. Short for Classless Inter-Domain Routing. Size of a block: 2^(32 - prefix) addresses. Lesson 10.3
- cloud network (VNet)
- A private address range you rent from a cloud provider, like 10.60.0.0/16, and split into subnets. Microsoft calls it a VNet. Cloud subnets lose 5 addresses, not 2: the network, gateway, two for the provider's DNS, and the last. Lesson 10.9
- cluster (clusters)
- A group of machines that work together and share the work, managed as one. Lesson 10.9
- CNAME
- An alias record: "this name is really that other name, look it up instead". It cannot sit next to other records at the same name. Lesson 10.18
- Connection refused
- The far machine was reached and answered with a RST: nothing listens on that port. The network path works. Lesson 10.29
- curl
- Fetches a web page (or any URL) from the command line.
-vshows every step,-shides the progress bar,-o /dev/nullthrows the page away. Lesson 10.11 - delegation
- One zone handing part of the name tree to other servers: the root delegates com, com delegates github.com. dig +trace shows each step. Lesson 10.18
- Destination Host Unreachable
- A ping reply saying a packet could not be delivered. From your own address it means your box sent ARP and nobody on the local network answered. Lesson 10.14
- DGRAM (SOCK_DGRAM, STREAM, SOCK_STREAM)
- Datagram: a socket kind that sends single, separate messages (UDP). STREAM is the other common kind: one continuous connection (TCP). Lesson 10.16
- dig
- Sends one DNS question and prints the whole reply.
@SERVERpicks the server,+shortprints just the answer,+noall +answerjust the answer lines,+tracewalks the chain itself. Lesson 10.18 - domain (domain name)
- A name in DNS, read right to left: api.github.com is api inside github inside com. Lesson 10.16
- duplicate IP
- Two machines configured with the same address. They answer ARP in turn, so connections to that address work, break and work again. Lesson 10.14
- EDNS (EDNS0, OPT PSEUDOSECTION)
- Extension mechanisms for DNS: an extra record in a DNS question that adds options, mainly a bigger reply size than the old 512-byte limit.
digshows it as the OPT PSEUDOSECTION. Lesson 10.18 - flat addressing (flat design)
- Every app on every node gets a real address from the node subnet, reserved up front. Easy to see from outside, but it eats the subnet. Lesson 10.9
- frame (frames)
- The layer 2 envelope around a packet on a local wire. It is addressed to a MAC, not an IP. Lesson 10.14
- fully qualified (FQDN, fully qualified domain name, trailing dot)
- A name written in full, ending at the root, often with a trailing dot: api.github.com. It is never extended with search domains. Lesson 10.18
- getaddrinfo (getaddrinfo())
- The C library function programs call to turn a name into addresses. It follows /etc/nsswitch.conf. Lesson 10.16
- handshake (three-way handshake)
- The three quick messages that open a TCP connection: SYN ("can we talk?"), SYN-ACK ("yes"), ACK ("ok"). Lesson 10.29
- ICMP
- The small protocol for network control messages: ping's "are you there?", and "destination unreachable" replies. Many firewalls drop it. Lesson 10.11
- ip route get
- Asks the kernel which route it would use for one address, and prints the interface, next hop and source address. The decision, not the config. Lesson 10.11
- ipcalc
- A small calculator for IP ranges.
ipcalc 10.0.3.200/26prints the network, broadcast, host range and the bits, with a space where the network part ends.-bleaves out the binary. A second prefix (ipcalc 10.0.0.0/22 24) splits the range into smaller pieces. Lesson 10.1 - jump box (bastion)
- One hardened machine people SSH into first, and from there into the other machines, so only one machine needs to be reachable from outside. Lesson 10.6
- link-local (169.254.0.0/16)
- Addresses in 169.254.x.x that a machine gives itself when nobody hands it one. Seeing one on an interface usually means DHCP got no answer. Lesson 10.1
- LOCALDOMAIN (RES_OPTIONS)
- Environment variables glibc reads: LOCALDOMAIN replaces the search list and RES_OPTIONS adds options, for one command only. Lesson 10.27
- longest prefix match (longest prefix)
- The rule for picking a route: of all routes that contain the address, the most specific one (longest prefix) wins. A /24 beats a /16 beats the default. Lesson 10.11
- MAC address (MAC, lladdr)
- A hardware address built into each network card, like 9e:3d:7a:12:6b:64. Machines on one local network deliver frames to each other by MAC. Lesson 10.14
- metadata service (169.254.169.254, instance metadata)
- A service cloud providers run at 169.254.169.254 inside every rented machine. It tells the machine about itself and can hand out login tokens, so who can reach it matters for security. Lesson 10.1
- MX (MX record)
- Mail server record, with a priority: the LOWER number is tried first. Lesson 10.18
- NAT (network address translation)
- A box in the middle rewrites addresses in packets as they pass. Your Mac does it so the lab VM can reach the internet with the Mac's address. Lesson 10.6
- nc (netcat, nc -zv)
- netcat: opens a TCP connection and says what happened.
-zjust test,-vtell me,-w 3give up after 3 seconds. Outcomes: succeeded (open), timed out (dropped), Connection refused (nothing listening), No route to host (ARP failed or a router said unreachable). - ndots (ndots:5)
- A resolv.conf option: a name with fewer dots than this is tried with every search domain first. ndots:5 makes almost every outside name cost extra queries. Lesson 10.27
- negative caching (negative TTL, negative answer)
- Resolvers also remember "no such name" answers, for the SOA's minimum field. A name looked up before you created it can "not exist" for minutes after. Lesson 10.18
- neighbour table (ip neigh, neighbor table, ARP cache)
- The kernel's cache of IP-to-MAC answers from ARP, shown by
ip neigh, with a state per entry. Lesson 10.14 - netplan apply (netplan try)
- Turns the network config files in /etc/netplan into running state.
netplan trydoes the same but rolls back after 120 seconds unless you confirm. Lesson 10.11 - network address
- The first address of a network: the address with every host bit set to 0. It names the whole network (10.0.3.192/26) and is not given to a machine. Lesson 10.1
- network layer (OSI, OSI model, OSI layer)
- Networking is described as layers, each built on the one below. Layer 3 is IP addresses and routing across networks; layer 2 is delivery on one local wire. The full list is the OSI model, seven layers. In practice people mostly say "layer 2" and "layer 3". Lesson 10.14
- network part (host part, host bits, network bits)
- An IP address has two parts: the first bits say which network the machine is on (like a street), the rest say which machine on it (like a house number). The rest are the host bits. Lesson 10.1
- network route (route entry, kernel route)
- One line in the kernel's routing table: "to reach this range of addresses, leave through this interface, via this next machine". Lesson 10.1
- next hop (via)
- The router a packet is handed to next (
viainip route). No next hop means the destination is on-link. Lesson 10.11 - No route to host
- The connection could not even start: ARP failed on the local network, or a router sent back "host unreachable". Lesson 10.29
- NODATA
- Status NOERROR with an empty answer: the name exists, but has no record of the type you asked for (often AAAA). Lesson 10.18
- NOERROR
- DNS status: the server answered. The answer may still be empty (see NODATA). Lesson 10.18
- NS (NS record)
- Name server record: which servers are authoritative for a zone. Lesson 10.18
- nsswitch.conf (/etc/nsswitch.conf, nsswitch)
- Tells glibc where to look things up and in which order.
hosts: files dns= /etc/hosts first, then DNS. Lesson 10.16 - NXDOMAIN (NXDomain)
- DNS status: the name does not exist, for any record type. Lesson 10.18
- octet (octets)
- A group of 8 bits, so a number from 0 to 255. An IPv4 address is four octets separated by dots. Lesson 10.1
- on-link (scope link)
- The destination is on the same wire as this box, so packets go straight to it with no gateway in between. Lesson 10.11
- on-prem (on-premises)
- Machines and networks in your own buildings or data centre, as opposed to rented from a cloud provider. Lesson 10.6
- overlap (overlapping, overlaps)
- Two ranges overlap when they share at least one address. With CIDR blocks one is then always inside the other. Overlapping networks cannot be joined. Lesson 10.6
- overlay addressing (overlay design)
- Apps get addresses from a separate private range only the cluster uses; the subnet only holds the nodes. Outside, app traffic shows the node's address. Lesson 10.9
- packet (packets)
- A small chunk of data sent across a network, with a source address (who sent it) and a destination address (where it goes) in front. Lesson 10.11
- ping
- Sends ICMP "are you there?" messages to an address and prints each reply and its time.
-c 3= send three and stop. No reply proves little: many hosts drop ping on purpose. Test the port you care about instead. Lesson 10.11 - port 53
- The port DNS servers listen on. Lesson 10.18
- private address (private range, RFC 1918, RFC1918)
- An address from one of three ranges set aside for internal use: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Anyone may use them inside their own network; the internet never carries them. Trap: 172.16.0.0/12 only covers 172.16 to 172.31. 172.32.0.1 is public. Lesson 10.3
- protocol (protocols)
- An agreed format and set of rules two programs use to talk, like a shared language. IP, ICMP, TCP and DNS are protocols. Lesson 10.11
- public address (public IP)
- An address that is unique on the whole internet and can be reached from it. Everything outside the private ranges (and a few special ones) is public. Lesson 10.3
- REACHABLE (STALE, FAILED, INCOMPLETE)
- Neighbour table states: REACHABLE = confirmed just now; STALE = still valid, re-checked on next use (normal); INCOMPLETE = asked, no answer yet; FAILED = nobody answered. Lesson 10.14
- record (records, DNS record)
- One fact in a DNS zone: a name, a type (A, CNAME, MX...), a TTL and the data. Lesson 10.22
- recursive resolver (recursion)
- A resolver that walks the whole chain for you - root, then TLD, then the zone's own servers - and returns the final answer. Lesson 10.16
- referral (referrals)
- A DNS reply that says "I don't know, ask these servers instead". Root and TLD servers answer with referrals. Lesson 10.16
- REFUSED
- DNS status: this server will not answer you, usually because it only holds other zones and does not look things up for others. Lesson 10.18
- renumbering
- Moving a network to a new address range: every machine, firewall rule, route and DNS name that used the old addresses has to change. The only real fix for an overlap. Lesson 10.6
- resolv.conf (/etc/resolv.conf)
- Tells glibc which DNS server to ask (nameserver), plus search domains and options. On Ubuntu it is a symlink to a file systemd-resolved writes. Lesson 10.16
- resolve (name resolution)
- To look up the address for a name. Lesson 10.16
- resolvectl
- systemd-resolved's control command.
statusshows the upstream servers,query NAMEresolves and says cache or network,flush-cachesempties the cache. Lesson 10.16 - resolver (resolvers)
- The software or server that looks names up for you, asking other servers if it has to. Lesson 10.16
- retransmit (retransmits)
- The kernel sending the same packet again because no reply came. Repeated SYNs 1, 2 and 4 seconds apart mean nothing is answering. Lesson 10.29
- reverse lookup (reverse DNS, PTR)
- Looking up the name for an address.
dig -x 8.8.8.8asks for the PTR (pointer) record of 8.8.8.8.in-addr.arpa. Lesson 10.18 - RFC
- One of the numbered documents that define how internet standards work, like RFC 1918 for private addresses. People quote the number as a short name for the rule. Lesson 10.3
- root server (root servers)
- The servers at the top of the DNS tree. They do not know answers, but say which servers handle each top-level domain. Lesson 10.16
- route metric (metric (route))
- A tie-breaker number on a route: when two routes have the same prefix, the lower metric wins. Lesson 10.11
- RST (reset)
- A TCP "no one here" reply: sent when nothing listens on the port. Programs report it as "Connection refused". Lesson 10.29
- RTNETLINK
- How the
ipcommand reports an error from the kernel: "RTNETLINK answers: File exists" and so on. Lesson 10.11 - search domain (search domains, search list)
- Suffixes in resolv.conf the resolver tries appending to short names, so
ssh dbcan mean db.prod.company.com. Lesson 10.16 - segment (LAN)
- One local network where machines hear each other directly, with no router in between - one wire, switch or Wi-Fi. Lesson 10.14
- serial (SOA serial)
- The version number in a zone's SOA record. Bump it on every change, or the backup servers keep serving the old data. Lesson 10.22
- SERVFAIL
- DNS status: the resolver tried and could not get an answer - the zone's servers are down or the chain is broken. Lesson 10.18
- SOA (SOA record, start of authority)
- Start of authority: each zone's own info record - primary server, admin, serial number, timers, and how long "no such name" is cached. Lesson 10.18
- split horizon (split-horizon DNS, split DNS)
- The same name gives different answers depending on who asks: an internal view for company resolvers, a public one (or nothing) for the internet.
- SRV (SRV record)
- Service record: where a service runs - priority, weight, port and target host - under a name like _postgresql._tcp.db.lab. Lesson 10.18
- stub listener (stub, 127.0.0.53)
- The address on the box itself (127.0.0.53) where systemd-resolved waits for DNS questions. resolv.conf points programs at it. Lesson 10.16
- summarisation (summarise, summarize)
- Writing neighbouring aligned blocks as one shorter prefix: 10.8.0.0/24 to 10.8.3.0/24 are exactly 10.8.0.0/22. One route instead of four. Lesson 10.6
- surge (surge node, max surge)
- Extra machines that exist for a while during an upgrade: a fresh one is added before an old one is removed. They need addresses too. Lesson 10.9
- SYN (Flags [S])
- The first message of a TCP handshake: "can we talk?". tcpdump shows it as Flags [S]. Lesson 10.29
- systemd-resolved
- The systemd service that does DNS for the whole Ubuntu box: it caches answers and forwards questions to the upstream servers from DHCP. Lesson 10.16
- TCP
- Transmission Control Protocol: most services use it. The two sides set up a connection with a short handshake, then data is delivered reliably and in order. Lesson 10.29
- tcpdump
- Prints the packets passing an interface (needs sudo).
-ipicks the interface,-nnshows numbers not names,-c Nstops after N packets, and a filter likearporport 53narrows it. Lesson 10.14 - the cloud (cloud provider)
- Renting machines, networks and services from a provider (the big ones are run by Microsoft, Amazon and Google) instead of owning the hardware. Lesson 10.9
- time_namelookup (curl -w)
- A curl timing variable: seconds spent resolving the name.
curl -w '%{time_namelookup}'prints it; a steady 5 s means a dead first nameserver. - TLD (top-level domain)
- Top-level domain: the last part of a name, like com, org or uk. Each has its own servers. Lesson 10.16
- TTL (time to live)
- Time to live: how many seconds a DNS answer may be remembered. Through a cache it counts down; from the source it stays at its full value. Lesson 10.16
- TXT (TXT record)
- Free-text record, used to prove you own a domain and for mail settings. Lesson 10.18
- UDP
- A way to send single messages with no connection set up and no guarantee of delivery. Fast and fine for small questions like DNS. Lesson 10.18
- upstream resolver (upstream DNS server)
- The next server along that a resolver forwards questions to. The lab box's upstream is your Mac, learned from DHCP. Lesson 10.16
- usable hosts (usable addresses)
- How many machines fit in a network: all its addresses minus the network and broadcast addresses, so 2^(32 - prefix) - 2. A /26 has 62. Lesson 10.3
- virtual machine (VM, VMs)
- A computer simulated by software on a bigger physical machine. Your UTM lab box is one; cloud providers rent them by the hour. Lesson 10.9
- VLAN
- Virtual LAN: one physical network split into separate segments. A machine on the wrong VLAN is plugged in but cannot hear its neighbours. Lesson 10.14
- VLSM
- Variable-length subnet masks: carving subnets of different sizes out of one range. Rule of thumb: place the biggest blocks first, each on its own boundary. Lesson 10.6
- VPN
- Virtual private network: an encrypted tunnel over the internet that makes two networks (or your laptop and the office) behave as if they were joined. Lesson 10.6
- wildcard mask
- A netmask with every bit flipped: 1s over the host bits. /26 has wildcard 0.0.0.63. Some routers and firewalls want ranges written this way. Lesson 10.1
- zone (zones)
- The part of the DNS tree one set of servers is responsible for, like lab. or github.com. Lesson 10.16
- zone apex (apex)
- The zone's own name, like example.com itself. It must have SOA and NS records, so it can never be a CNAME. Lesson 10.22