3.4 IP Addressing Services خدمات عنونة
Domain Name Service خدمة
اسم المجال
•
Domain names were created to
convert the numeric IP addresses into a simple, recognizable name.
تم إنشاء أسماء المجالات لتحويل هذا
العنوان الرقمي إلى اسم بسيط يمكن تمييزه.
•
Fully-qualified domain names
(FQDNs), such as http://www.cisco.com, are much easier for people to
remember than 198.133.219.25.
أسماء النطاقات المؤهلة بالكامل (FQDNs)،
مثل http://www.cisco.com،
أسهل بكثير على الناس لتذكرها من 198.133.219.25.
•
The DNS protocol defines an
automated service that matches resource names with the required numeric network
address. It includes the format for queries, responses, and data.
يحدد بروتوكول DNS
خدمة تلقائية تربط أسماء الموارد بعنوان الشبكة الرقمي المطلوب. وهو يتضمن تنسيق
الاستعلامات والاستجابات والبيانات.
DNS Message Format تنسيق رسالة
The DNS server stores different types of resource
records that are used to resolve names. These records contain the name,
address, and type of record.
يقوم خادم DNS
بتخزين أنواع مختلفة من سجلات الموارد المستخدمة في تحليل الأسماء. وتحتوي هذه
السجلات على اسم السجل وعنوانه ونوعه.
Some of these record types are as follows:
·
A - An end device
IPv4 address
·
NS - An authoritative
name server
·
AAAA - An end device IPv6
address (pronounced quad-A)
·
MX - A mail exchange
record
When a client makes a query, the server DNS process
first looks at its own records to resolve the name. If it is unable to resolve
the name by using its stored records, it contacts other servers to resolve the
name.
عندما يُجري العميل استفسارًا، فإن عملية DNS
في الخادم تبحث أولاً في سجلاتها لتحليل الاسم. وفي حالة تعذر تحليل الاسم
باستخدام سجلاتها المخزنة، تتصل بالخوادم الأخرى لكي تحلل الاسم.
After a match is found and returned to the original
requesting server, the server temporarily stores the numbered address in the
event that the same name is requested again.
بعد العثور على مطابقة والرجوع إلى خادم الطلب الأصلي، يخزن الخادم
العنوان المرقم مؤقتًا تحسبًا لطلب الاسم ذاته مرة أخرى.
DNS uses the same message format between servers,
consisting of a question, answer, authority, and additional information for all
types of client queries and server responses, error messages, and transfer of
resource record information.
يستخدم DNS نفس
تنسيق الرسالة بين الخوادم ، والذي يتكون من سؤال ، وإجابة ، وتفويض ، ومعلومات
إضافية لجميع أنواع استعلامات العميل وردود الخادم ، ورسائل الخطأ ، ونقل معلومات
سجل المورد.
DNS message section |
Description |
Question |
The question
for the name server السؤال
الخاص بخادم الاسم |
Answer |
Resource
Records answering the question إجابة
سجلات الموارد على السؤال |
Authority |
Resource
Records pointing toward an authority إشارة
سجلات الموارد نحو إحدى الهيئات |
Additional |
Resource
Records holding additional information احتفاظ
سجلات الموارد بمعلومات إضافية |
DNS Hierarchy تسلسل الهرمي
•
DNS uses a hierarchical system
to create a database to provide name resolution.
يستخدم بروتوكول DNS
نظامًا هرميًا لإنشاء قاعدة بيانات لتوفير تحليل الاسم.
•
Each DNS server maintains a
specific database file and is only responsible for managing name-to-IP mappings
for that small portion of the entire DNS structure.
ويقوم كل خادم من خوادم DNS
بالاحتفاظ بملف قاعدة بيانات محدد ويكون مسؤولاً فقط عن إدارة تعيينات الأسماء إلى
IP الخاصة بها وذلك للجزء الصغير من بنية DNS
الكاملة.
•
When a DNS server receives a
request for a name translation that is not within its DNS zone, the DNS server
forwards the request to another DNS server within the proper zone for
translation.
وعندما يتسلم خادم DNS
طلبًا لترجمة اسم لا يوجد ضمن منطقة DNS،
يقوم خادم DNS بإعادة توجيه الطلب إلى خادم DNS
آخر ضمن المنطقة الملائمة للترجمة.
•
Examples of top-level domains:
• com - a business or industry
• .org - a non-profit organization
• .au – Australia
The nslookup Command
•
Nslookup is a computer
operating system utility that allows a user to manually query the DNS servers
configured on the device to resolve a given host name.
ويوجد بأنظمة تشغيل أجهزة الكمبيوتر أيضًا أداة مساعدة تُسمى nslookup
تتيح للمستخدم الاستعلام عن خوادم الاسم لتحليل اسم المضيف المحدد.
•
This utility can also be used
to troubleshoot name resolution issues and to verify the current status of the
name servers.
كما يمكن استخدام هذه الأداة أيضًا
في استكشاف وحل مشاكل تحليل الاسم والتحقق من الحالة الحالية لخوادم الاسم.
•
When the nslookup command
is issued, the default DNS server configured for your host is displayed.
عند إصدار أمر nslookup، يتم
عرض خادم DNS الافتراضي الذي تم تكوينه لجهازك
المضيف.
•
The name of a host or domain
can be entered at the nslookup prompt.
يمكن إدخال اسم المضيف أو المجال في
موجه أوامر nslookup.
Dynamic Host Configuration Protocol
•
The Dynamic Host Configuration
Protocol (DHCP) for IPv4 service automates the assignment of IPv4 addresses,
subnet masks, gateways, and other IPv4 networking parameters.
•
يقوم
بروتوكول التكوين الديناميكي للمضيف (DHCP)
الخاص بخدمة IPv4
بالتعيين التلقائي لعناوين IPv4
وأقنعة الشبكات الفرعية والعبَّارات ومعلمات شبكة IPv4
الأخرى.
•
DHCP is considered dynamic
addressing compared to static addressing. Static addressing is manually
entering IP address information.
•
يعتبر DHCP
عنونة ديناميكية مقارنة بالعنونة الثابتة. تقوم العنونة الثابتة بإدخال معلومات
عنوان IP يدويًا.
•
When a host connects to the
network, the DHCP server is contacted, and an address is requested. The DHCP
server chooses an address from a configured range of addresses called a pool
and assigns (leases) it to the host.
وعندما يتصل المضيف بالشبكة، يتصل
خادم DHCP ويتم طلب العنوان. يختار خادم DHCP
عنوانًا من مجموعة مكونة من العناوين تُعرف باسم التجمع (pool)
ويتم تعيينها (استئجارها) للمضيف.
•
Many networks use both DHCP
and static addressing. DHCP is used for general purpose hosts, such as end user
devices. Static addressing is used for network devices, such as gateway
routers, switches, servers, and printers.
والعديد من الشبكات تستخدم كلاً من العنونة الديناميكية والثابتة. يُستخدَم بروتوكول DHCP مع الأجهزة المضيفة ذات الأغراض العامة، مثل أجهزة المستخدم النهائي. تُستخدم العنونة الثابتة مع أجهزة الشبكة، مثل البوابات وأجهزة التبديل والخوادم والطابعات.
Note: DHCP for IPv6 (DHCPv6) provides similar services
for IPv6 clients. However, DHCPv6 does not provide a default gateway address.
This can only be obtained dynamically from the Router Advertisement message of
the router.
ملاحظة: يوفّر بروتوكول DHCPv6
(DHCP لـ IPv6)
خدمات مماثلة لعملاء IPv6. ومع
ذلك، لا يوفر DHCPV6
عنوان عبّارة افتراضية. يمكن الحصول على ذلك فقط ديناميكيًا من رسالة إعلان الموجه
(RouterAdvertisement message)
الخاصة بالموجه.
DHCP Operation IP تشغيل بروتوكول التكوين الديناميكي للمضيف
The DHCP Process:
•
When an IPv4, DHCP-configured
device boots up or connects to the network, the client broadcasts a DHCP
discover (DHCPDISCOVER) message to identify any available DHCP servers on the
network.
عند تشغيل جهاز مكون عليه IPv4
وDHCP أو اتصاله بالشبكة، يبث العميل رسالة اكتشاف
DHCP (DHCPDISCOVER)
لتحديد أي خوادم DHCP
متوفرة على الشبكة.
•
A DHCP server replies with a
DHCP offer (DHCPOFFER) message, which offers a lease to the client. (If a
client receives more than one offer due to multiple DHCP servers on the
network, it must choose one.)
يرد خادم DHCP
بإرسال رسالة عرض DHCP (DHCPOFFER)،
والتي توفر عرض تأجير للعميل. (إذا كان العميل يتلقى أكثر من عرض واحد بسبب
خوادم DHCP متعددة على الشبكة، يجب عليه اختيار واحد.)
•
The client sends a DHCP
request (DHCPREQUEST) message that identifies the explicit server and lease
offer that the client is accepting.
وبالتالي، فإنه يجب الاختيار فيما
بينها، وإرسال رسالة طلب DHCP (DHCPREQUEST)
التي تحدد الخادم الصريح وعرض الإيجار الذي يقبله العميل.
•
The server then returns a DHCP
acknowledgment (DHCPACK) message that acknowledges to the client that the lease
has been finalized.
ثم يقوم الملقم بإرجاع رسالة اعتراف DHCP
(DHCPACK) التي تعترف للعميل بأن التأجير قد تم
الانتهاء منه.
•
If the offer is no longer
valid, then the selected server responds with a DHCP negative acknowledgment
(DHCPNAK) message and the process must begin with a new DHCPDISCOVER message.
إذا لم يعد العرض صالحًا ، فإن الخادم المحدد يستجيب برسالة إقرار
سلبي من DHCP (DHCPNAK)
ويجب أن تبدأ العملية برسالة DHCPDISCOVER
جديدة.
Note: DHCPv6 has a set of messages that is similar to those for DHCPv4. The DHCPv6 messages are SOLICIT, ADVERTISE, INFORMATION REQUEST, and REPLY.
ملاحظة: يحتوي DHCPv6 على
مجموعة من الرسائل التي تشبه تلك الخاصة ب DHCPv4.
رسائل DHCPv6 هي SOLICIT
و ADVERTISE وINFORMATION
REQUEST وREPLY