dig ve nslookup ile DNS Tanılaması
DNS kayıtlarını incelemek, çözümleme yollarını izlemek ve yanlış yapılandırmaları belirlemek için dig, nslookup ve host kullanarak Linux'taki ad çözümleme sorunlarını tanılayın.
dig ve nslookup ile DNS Tanılaması, CoddyKit'te ücretsiz bir Linux Networking & TCP/IP for Developers dersidir. Bu, 4 dersinin 4. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Linux Networking & TCP/IP for Developers öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Linux Networking & TCP/IP for Developers kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
Why DNS Diagnostics Matter
Many 'network is down' reports are really DNS failures. The host is reachable by IP, but the name will not resolve.
Linux ships tools to inspect resolution directly:
dig— flexible, scriptable lookupsnslookup— classic interactive toolhost— quick one-line answers
This lesson focuses on reading their output to find the real problem.
A Basic dig Query
Run dig followed by a hostname to fetch its A record.
The key part of the output is the ANSWER SECTION, which lists the resolved addresses and their TTL.
dig example.comReading the dig Answer Section
Each answer line shows: name TTL class type value.
- TTL — seconds the record may be cached
- type — A, AAAA, MX, CNAME, etc.
- value — the resolved data
Use +short to strip everything except the value.
dig +short example.comQuerying Specific Record Types
Append the record type to look up anything besides an A record.
dig example.com MX— mail serversdig example.com AAAA— IPv6dig example.com TXT— text records (SPF, verification)
dig example.com MXChoosing a Specific Resolver
Use @server to bypass your local resolver and ask a specific DNS server. This isolates whether your local cache is the problem.
Below queries Google Public DNS directly.
dig @8.8.8.8 example.comTracing the Resolution Path
dig +trace walks from the root servers down to the authoritative server, printing each delegation step.
This reveals broken delegations or stale glue records that a normal query hides.
dig +trace example.comReverse DNS Lookups
To map an IP back to a name, use -x. This queries the PTR record.
Missing PTR records often cause mail delivery and logging issues.
dig -x 8.8.8.8Using nslookup Interactively
nslookup can run one-shot or interactively. In interactive mode you set type= and switch servers with server.
nslookup -type=MX example.comQuick Answers with host
host gives compact output, ideal for quick checks.
host example.com— A and AAAAhost -t NS example.com— nameservers
host -t NS example.comInterpreting Status Codes
The status field in the dig header is critical:
- NOERROR — resolved fine
- NXDOMAIN — name does not exist
- SERVFAIL — server failed (often DNSSEC or upstream issues)
Checking the Local Resolver Config
Linux resolution settings live in /etc/resolv.conf and /etc/nsswitch.conf.
If dig works but applications fail, suspect nsswitch.conf ordering or a stale resolv.conf.
cat /etc/resolv.confQuick Check
Test your understanding of dig output.
Recap
You now diagnose DNS issues directly:
digfor flexible, scriptable lookups and+trace@serverto isolate resolver problems-xfor reverse lookups- Read status codes (NOERROR/NXDOMAIN/SERVFAIL)
- Check
/etc/resolv.confandnsswitch.conffor local issues
These skills complement packet capture and firewall analysis for end-to-end troubleshooting.
Yapay zeka eğitmeniyle Linux Networking & TCP/IP for Developers öğren — ücretsiz
Tarayıcında gerçek kod yaz ve çalıştır, 7/24 yapay zeka eğitmeninden anında yardım al; web'de ya da uygulamada kaldığın yerden devam et.
- Kurslar
- 12
- Dersler
- 48
Sıkça Sorulan Sorular
“dig ve nslookup ile DNS Tanılaması” dersi ücretsiz mi?
Evet — “dig ve nslookup ile DNS Tanılaması” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Linux Networking & TCP/IP for Developers kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Linux Networking & TCP/IP for Developers kursu toplamda 4 dersten oluşur.
“dig ve nslookup ile DNS Tanılaması” dersinde ne öğreneceğim?
DNS kayıtlarını incelemek, çözümleme yollarını izlemek ve yanlış yapılandırmaları belirlemek için dig, nslookup ve host kullanarak Linux'taki ad çözümleme sorunlarını tanılayın. Linux Networking & TCP/IP for Developers ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Linux Networking & TCP/IP for Developers öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Linux Networking & TCP/IP for Developers, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 4. dersidir.
“dig ve nslookup ile DNS Tanılaması” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Linux Networking & TCP/IP for Developers dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Linux Networking & TCP/IP for Developers dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Wireshark/tcpdump ile Paket Yakalama
- Ağ Performansı Araçları
- Linux Güvenlik Duvarı (Netfilter/iptables)
- dig ve nslookup ile DNS Tanılaması