"Netsh int ip set dns" উইন্ডো কমান্ডের জন্য কি পরামিতিগুলি প্রয়োজন?


3

এই নিবন্ধটি সিএমডি কমান্ডের জন্য DNS ডিসপ্লে সহ একটি সমস্যা সমাধানের জন্য কল করুন। সমস্ত কমান্ড এই শেষ দুই পর্যন্ত সফল ছিল:

netsh int ip set dns
netsh winsock reset

যখন আমি প্রথম কমান্ডটি চেষ্টা করি, সিএমডি পরামিতি জিজ্ঞাসা করে। আমি সঠিক সিনট্যাক্সের জন্য সিএমডি এর ইঙ্গিতগুলি বুঝতে পারিনি, তাই আমি গুগল হয়ে গেলাম। যে আসে ভাল জিনিস ছিল এই যার মধ্যে দীর্ঘ কমান্ড অন্তর্ভুক্ত রয়েছে:

netsh interface ip set dns name="Local Area Connection" source=static addr=none

netsh interface ip add dns name="Local Area Connection" addr=8.8.4.4 index=1
netsh interface ip add dns name="Local Area Connection" addr=8.8.8.8 index=2

netsh interface ip set dns name="Local Area Connection" source=dhcp

প্যারামিটারগুলি আমার সমস্যার জন্য ডিজাইন করা হয়েছে কিনা সে সম্পর্কে আমার কোন ধারণা নেই তাই আমি তাদের দৌড়ে ভয় করি। মাইক্রোসফ্ট ডকুমেন্টেশন আমার প্রয়োজনীয় কমান্ড উল্লেখ করতে ব্যর্থ হয়েছে (শুধুমাত্র নেটস্কেপ IPsec, নেটস্কেপ আইপি নয়)

আমি প্রথম দুটি কমান্ড সফলভাবে সম্পাদন করতে চাই তবে আমার কোন ধারণা নেই যে কোন প্যারামিটার অন্তর্ভুক্ত করতে হবে।


ওহ হ্যাঁ দুঃখিত কখনও কখনও আমি ভুলে :)
Bar Akiva

উত্তর:


1

"Netsh int ip set dns" উইন্ডো কমান্ডের জন্য কি পরামিতিগুলি প্রয়োজন?

আপনি ব্যবহার করতে পারেন netsh int ipv4 set dns help কমান্ড লাইন সিনট্যাক্স পেতে সাহায্য কমান্ডগুলিতে আপনি এটি চালানোর জন্য প্রযোজ্য আর্গুমেন্ট প্যারামিটারগুলি চালানোর চেষ্টা করছেন এবং ব্যাখ্যা করুন।

আপনার বিশেষ ক্ষেত্রে আপনি পাস করতে পারেন name প্যারামিটার এবং ইন্টারফেসের নামটির জন্য এটির মান যা আপনি DNS চালু করছেন, এবং addr প্যারামিটার এবং DNS সার্ভারের IP ঠিকানাটির জন্য এটির মান এটি DNS এর জন্য ব্যবহার করবে।

C:\Users\User>netsh int ipv4 set dns help

Usage: set dnsservers [name=]<string> [source=]dhcp|static
             [[address=]<IP address>|none]
             [[register=]none|primary|both]
             [[validate=]yes|no]

Parameters:

  Tag            Value
  name         - The name or index of the interface.
  source       - One of the following values:
                 dhcp: Sets DHCP as the source for configuring DNS
                       servers for the specific interface.
                 static: Sets the source for configuring DNS servers
                         to local static configuration.
  address      - One of the following values:
                 <IP address>: An IP address for a DNS server.
                 none: Clears the list of DNS servers.
  register     - One of the following values:
                 none: Disables Dynamic DNS registration.
                 primary: Register under the primary DNS suffix only.
                 both: Register under both the primary DNS suffix, as
                       well as under the connection-specific suffix.
  validate     - Specifies whether validation of the DNS server setting
                 will be performed. The value is yes by default.

Remarks: Sets DNS server configuration to either DHCP or static mode. Only
         when source is 'static', is the 'addr' option also available for
         configuring a static list of DNS server IP addresses for the
         specified interface. If Validate switch is yes, then
         the newly set DNS server is validated.

Examples:

   set dnsservers name="Wired Ethernet Connection" source=dhcp
   set dnsservers "Wired Ethernet Connection" static 10.0.0.1 primary

2

JUICED_IT এর উত্তর অনুসরণ করার জন্য, নেটওয়ার্ক নাম সম্ভবত "ইথারনেট" নয়, "স্থানীয় এলাকা সংযোগ" নয়। নামটি খুঁজে বের করতে আপনি এটি করতে পারেন:

netsh interface show interface

যা "ইন্টারফেস নাম" কলামের অধীনে নামটি দেখাবে (এখানে গাঢ়ভাবে দেখানো হয়েছে):

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated         ইথারনেট 

এখন আপনি প্রাথমিক ডিএনএস (ইনডেক্স = 1) পরিবর্তন করতে পারেন, আপনার ইন্টারফেস স্থিতিশীল (dhcp ব্যবহার করে না) অনুমান করতে পারেন:

netsh interface ipv4 add dnsserver "Ethernet" address=192.168.x.x index=1

netsh winsock reset, কমান্ড রাজ্যের একটি পরিষ্কার স্লেট winsock ক্যাটালগ রিসেট।

c:\>netsh winsock reset /?

  Resets Winsock Catalog to a clean state.
  All Winsock Layered Service Providers which were previously 
  installed must be reinstalled.
  This command does not affect Winsock Name Space Provider entries.
আমাদের সাইট ব্যবহার করে, আপনি স্বীকার করেছেন যে আপনি আমাদের কুকি নীতি এবং গোপনীয়তা নীতিটি পড়েছেন এবং বুঝতে পেরেছেন ।
Licensed under cc by-sa 3.0 with attribution required.