Domain Name Service (DNS)

Domain Name Service

DNS Operation

DNS Client Operation

  1. Is it my name?
  2. Check local HOSTS file
    • File that states which particular hostname goes with which particular IP.
    • Can be modified
  3. Check DNS.
  4. NetBIOS
    • Is what a lot of us are using to name our computers before Active directory was ever utilize
    • A local way to resolve another computers just using multicast.
    • You can do this using WINS.

DNS Server Operation

Pasted image 20250115132025.png|425

Recursive, primary, and secondary DNS

Authoritative vs. non-authoritative DNS server

DNS Records

Pasted image 20250520105410.png|425

DNS Query commands (dig & nslookup)

Example using dig command:

[user@localhost ~]$ dig gmail

Output:

; <<>> DiG 9.10.6 <<>> gmail
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34934
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;gmail.                         IN      A

;; AUTHORITY SECTION:
gmail.                  745     IN      SOA     ns-tld1.charlestonroadregistry.com. cloud-dns-hostmaster.google.com. 1 21600 3600 259200 900

;; Query time: 36 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Wed Jun 18 17:41:50 MDT 2025
;; MSG SIZE  rcvd: 132  

Example using nslookup command:

[user@localhost ~]$ nslookup gmail.com

Output:

Server:         192.168.1.1
Address:        192.168.1.1#53

Non-authoritative answer:
Name:   gmail.com
Address: 142.250.72.133