Rakesh Jain Profile picture
Jul 16 โ€ข 22 tweets โ€ข 5 min read Twitter logo Read on Twitter
Mastering DNS Commands!

A Thread with examples of Linux commands commonly used in conjunction with DNS and DNS queries ๐Ÿ‘‡ Image
1/10: nslookup:
A versatile command-line tool for DNS queries. It provides information about domain names, IP addresses, and DNS records. #DNS #Linux

Example: nslookup example.com
2/10: dig:
Another powerful DNS query tool. It allows you to retrieve detailed information about DNS records, name servers, and perform advanced queries. #DNS #Linux

Example: dig A example.com
3/10: host:
A simple command for DNS lookups. It provides IP addresses and other DNS information. #DNS #Linux

Example: host example.com
4/10: whois:
Retrieves registration information for a domain name. It shows details about the domain's registrar, contact information, and more. #DNS #Linux

Example: whois example.com
5/10: nsupdate:
A command-line tool for making dynamic DNS updates. It allows you to add, modify, or delete DNS records dynamically. #DNS #Linux

Example: nsupdate -k keyfile.txt
6/10: named-checkzone:
Verifies the syntax and integrity of a DNS zone file. It helps identify errors before reloading the DNS server. #DNS #Linux

Example: named-checkzone /path/to/zonefileexample.com
7/10: rndc:
A management tool for BIND, a popular DNS server. It allows you to control and administer the DNS server from the command line. #DNS #Linux

Example: rndc reload
8/10: dnsmasq:
A lightweight DNS forwarder and DHCP server. It can be used to cache DNS queries and provide DNS services for a local network. #DNS #Linux

Example: dnsmasq --query-cache
9/10: systemd-resolve:
A command-line tool to resolve DNS queries using systemd's resolver. It provides DNS-related information and troubleshooting options. #DNS #Linux

Example: systemd-resolve --status
10/10: tcpdump:
A network packet analyzer that can be used to capture and analyze DNS traffic. It helps in troubleshooting DNS-related issues. #DNS #Linux

Example: tcpdump -i eth0 port 53
Time for some #Bonus again! Image
1/8: dig +trace:
Performs a DNS trace to show the complete path of DNS resolution. Useful for troubleshooting DNS issues and understanding the resolution process. #DNS #Linux #Advanced

Example: dig +trace example.com
2/8: dig +short:
Retrieves only the essential information, such as IP addresses or domain names, without additional details. Useful for scripting or getting concise output. #DNS #Linux #Advanced

Example: dig +short example.com
3/8: host -t:
Specifies a specific DNS record type to query. It allows you to retrieve specific information like MX records, TXT records, or SRV records. #DNS #Linux #Advanced

Example: host -t MX example.com
4/8: nslookup -type:
Similar to host -t, it lets you query for a specific record type using nslookup. Useful for obtaining particular DNS record types. #DNS #Linux #Advanced

Example: nslookup -type=NS example.com
5/8: nsupdate -v:
Enables verbose output for dynamic DNS updates using nsupdate. It provides detailed information about the update process. #DNS #Linux #Advanced

Example: nsupdate -v -k keyfile.txt
6/8: tcpdump -n:
Disables hostname resolution in tcpdump, showing IP addresses instead. Useful for capturing and analyzing DNS traffic without resolving hostnames. #DNS #Linux #Advanced

Example: tcpdump -n -i eth0 port 53
7/8: systemd-resolve --flush-caches:
Flushes the DNS resolver cache in systemd-resolve. Helps in clearing cached DNS entries and forcing fresh lookups. #DNS #Linux #Advanced

Example: systemd-resolve --flush-caches
8/8: rndc reconfig:
Reloads the configuration for BIND server without interrupting the service. Useful after modifying the DNS configuration files. #DNS #Linux #Advanced

Example: rndc reconfig
I hope this thread helps you explore and master DNS commands in Linux! Let me know if you have any further questions. #DNS #LinuxCommands
Retweet the thread if you find it useful. Thanks!

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Jul 18
Mastering Docker Swarm!

A Twitter thread with 20 useful Docker Swarm commands ๐Ÿ‘‡ Image
#DockerSwarm Explained ๐Ÿณ๐Ÿš€ ๐Ÿ‘‰

Docker Swarm is a native clustering and orchestration solution for Docker containers. ๐Ÿ—๏ธ It allows you to manage a group of Docker hosts as a single virtual system, creating a distributed and scalable container environment.
#DockerSwarm Features ๐Ÿ’ก

๐Ÿ”น High Availability: Docker Swarm ensures your applications are resilient and available even if some nodes fail.

๐Ÿ”น Load Balancing: Swarm intelligently distributes incoming traffic across containers to prevent overloading.
Read 28 tweets
Jul 17
Mastering Linux User Management!๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ

A Thread with 25 most useful Linux user management commands with examples ๐Ÿ‘‡ Image
๐Ÿ” 1/25: adduser - Create a new user account

Example: adduser john

Explanation: Creates a new user account named "john" on the system.

#AddUser #LinuxUserManagement
๐Ÿ”ง 2/25: usermod - Modify user account properties

Example: usermod -aG sudo john

Explanation: Adds user "john" to the "sudo" group, granting administrative privileges.

#UserMod #LinuxUserManagement
Read 27 tweets
Jul 16
Mastering DNS Commands!

A Thread with examples of Linux commands commonly used in conjunction with DNS and DNS queries ๐Ÿ‘‡ Image
1/10: nslookup:
A versatile command-line tool for DNS queries. It provides information about domain names, IP addresses, and DNS records. #DNS #Linux

Example: nslookup testdomain[dot]com
2/10: dig:
Another powerful DNS query tool. It allows you to retrieve detailed information about DNS records, name servers, and perform advanced queries. #DNS #Linux

Example: dig A testdomain[dot]com
Read 22 tweets
Jul 14
Mastering Firewalld!

A Thread explaining 20 most useful commands with examples ๐Ÿ‘‡๐Ÿ”ฅ Image
What is Firewalld ?

๐Ÿ”ฅ Firewalld: A dynamic firewall management tool for Linux distros like Fedora, CentOS, and Red Hat Enterprise Linux. It replaces iptables and offers an easier way to manage firewalls. #Firewalld #Linux
๐Ÿ”’ Firewalld introduces the concept of zones, which determine the trust level of network connections. Zones like public, internal, and DMZ allow fine-grained control over access. #NetworkSecurity #Zones
Read 27 tweets
Jul 13
Mastering AWS CLI! ๐Ÿ’ป

Understanding 25 useful AWS CLI commands with examples.

A Thread ๐Ÿ‘‡
1/25 ๐Ÿ’ป #AWSCLI Command: aws configure

Example: aws configure

Explanation: Configures your AWS CLI with access key, secret access key, default region, and output format.
2/25 ๐Ÿ“‚ #AWSCLI Command: aws s3 ls

Example: aws s3 ls

Explanation: Lists all S3 buckets in your AWS account.
Read 34 tweets
Jul 12
Mastering Linux Process Management ๐Ÿง๐Ÿ“‹

A #Twitter Thread with 20 most useful commands with examples ๐Ÿ‘‡
What is Linux Process Management ?

Linux process management refers to the ability to control and monitor processes running on a Linux system.
๐Ÿ“‹ 1/20: ps - List running processes.

Example: ps aux

- Show all processes running on the system.
Read 30 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(