Understanding Network Addressing 397shows on multiple Name: and Addres dịch - Understanding Network Addressing 397shows on multiple Name: and Addres Việt làm thế nào để nói

Understanding Network Addressing 39

Understanding Network Addressing 397
shows on multiple Name: and Address: lines. This practice is common on extremely
popular sites because the load can be balanced across multiple computers. Note also
that nslookup reports the IP address of the DNS server it uses, on the Server: and
Address: lines. (The latter includes the port number, as described later, in “Network
Ports.”
3. Type host www.google.com. The output of this command is likely to be somewhat
briefer than that of the nslookup command, but it should report the same IP addresses
for the server. Although host doesn’t report the DNS server’s address, it is IPv6-
enabled, so it reports an IPv6 address, as well as the site’s IPv4 addresses.
4. Type dig www.google.com. This output is signifi cantly longer than that of either
nslookup or host. In fact, it closely resembles the format of the confi guration fi les used
to defi ne a domain in a DNS server. In the case of www.google.com, that hostname is
defi ned as a CNAME record that points to www.l.google.com, which in turn has several
A-record entries that point to specifi c IP addresses. (This structure could change by the
time you read this, though, and of course it’s likely to be different if you examine other
hostnames.) You’ll also see several NS records that point to the domain’s name servers,
and you’ll see additional A records that point to the name servers’ IP addresses.
5. Perform nslookup, host, and dig queries on IP addresses, such as one of those returned
by your lookups on www.google.com. (This is known as a reverse lookup.) In each case,
the tool should return a hostname. Note, however, that the hostname might not match the
one you used originally. This is because multiple hostnames can point to the same
IP address, and the owner of that IP address decides which hostname to link to the IP
address for reverse lookup purposes. In some cases, the tool will return an NXDOMAIN
error, which means that the IP address’s owner hasn’t confi gured reverse lookups.
6. Perform similar queries on other computers, such as ones associated with your school,
employer, or ISP. Most hostnames have just one IP address associated with them, and
you may see other differences, too.
Sometimes DNS is overkill. For instance, you might just need to resolve a handful of
hostnames. This may be because you’re confi guring a small private network that’s not
connected to the Internet at large or because you want to set up a few names for local (or
even remote) computers that aren’t in the global DNS database. For such situations, /etc/
hosts may be just what you need. This fi le holds mappings of IP addresses to hostnames,
on a one-line-per-mapping basis. Each mapping includes at least one name, and sometimes
more:
127.0.0.1 localhost
192.168.7.23 apollo.luna.edu apollo
In this example, the name localhost is associated with the 127.0.0.1 address, and the
names apollo.luna.edu and apollo are tied to 192.168.7.23. The fi rst of these linkages is
standard; it should exist in any /etc/hosts fi le. The second linkage is an example that you
c08.indd 397 11/12/12 12:12 PM
398 Chapter 8 ■ Configuring Basic Networking
can modify as you see fi t. The fi rst name is a full hostname, including the domain portion;
subsequent names on the line are aliases—typically the hostname without its full domain
specifi cation.
Once you’ve set up an /etc/hosts fi le, you can refer to computers listed in the fi le by
name, whether or not those names are recognized by the DNS servers the computer uses.
One major drawback to /etc/hosts is that it’s a purely local fi le; setting a mapping in one
computer’s /etc/hosts fi le affects name lookups performed by that computer alone. Thus,
to do good on an entire network, you must modify the /etc/hosts fi les on all of the computers
on the network.
Linux normally performs lookups in /etc/hosts before it uses DNS. You can modify
this behavior by editing the /etc/nsswitch.conf fi le, which confi gures the Name Service
Switch (NSS) service. More specifi cally, you must adjust the hosts line. This line lists the
order of the files and dns options, which stand for /etc/hosts and DNS, respectively:
hosts: files dns
Reverse the order of the files and dns options to have the system consult DNS before it
consults /etc/hosts.
The /etc/nsswitch.conf file supports many more options. For instance,
you can perform name resolution using Windows NetBIOS calls or a Lightweight
Directory Access Protocol (LDAP) server by adding appropriate
options to the hosts line, along with the necessary support software. The
passwd, shadow, and group lines control how Linux authenticates users and
manages groups. You should not attempt to change these configurations
unless you understand the systems involved, but you should be aware of
the importance of /etc/nsswitch.conf generally.
In addition to /etc/hosts, Linux supports a fi le called /etc/networks. It works much
like /etc/hosts, but it applies to network addresses, and it reverses the order of the names
and the IP address on each line:
loopback 127.0.0.0
mynet 192.168.7.0
This example sets up two linkages: the loopback name to the 127.0.0.0/8 network and
mynet for the 192.168.7.0/24 network. It’s seldom necessary to edit this fi le.
Network Ports
Contacting a specifi c computer is important, but one additional type of addressing is left:
The sender must have an address for a specifi c program on the remote system. For instance,
suppose you’re using a Web browser. The Web server computer may be running more
servers than just a Web server—it may also be running an email server or an FTP server,
to name just two of many possibilities. Another number beyond the IP address enables
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Understanding Network Addressing 397shows on multiple Name: and Address: lines. This practice is common on extremelypopular sites because the load can be balanced across multiple computers. Note alsothat nslookup reports the IP address of the DNS server it uses, on the Server: andAddress: lines. (The latter includes the port number, as described later, in “NetworkPorts.”3. Type host www.google.com. The output of this command is likely to be somewhatbriefer than that of the nslookup command, but it should report the same IP addressesfor the server. Although host doesn’t report the DNS server’s address, it is IPv6-enabled, so it reports an IPv6 address, as well as the site’s IPv4 addresses.4. Type dig www.google.com. This output is signifi cantly longer than that of eithernslookup or host. In fact, it closely resembles the format of the confi guration fi les usedto defi ne a domain in a DNS server. In the case of www.google.com, that hostname isdefi ned as a CNAME record that points to www.l.google.com, which in turn has severalA-record entries that point to specifi c IP addresses. (This structure could change by thetime you read this, though, and of course it’s likely to be different if you examine otherhostnames.) You’ll also see several NS records that point to the domain’s name servers,and you’ll see additional A records that point to the name servers’ IP addresses.5. Perform nslookup, host, and dig queries on IP addresses, such as one of those returnedby your lookups on www.google.com. (This is known as a reverse lookup.) In each case,the tool should return a hostname. Note, however, that the hostname might not match theone you used originally. This is because multiple hostnames can point to the sameIP address, and the owner of that IP address decides which hostname to link to the IPaddress for reverse lookup purposes. In some cases, the tool will return an NXDOMAINerror, which means that the IP address’s owner hasn’t confi gured reverse lookups.6. Perform similar queries on other computers, such as ones associated with your school,employer, or ISP. Most hostnames have just one IP address associated with them, andyou may see other differences, too.Sometimes DNS is overkill. For instance, you might just need to resolve a handful ofhostnames. This may be because you’re confi guring a small private network that’s notconnected to the Internet at large or because you want to set up a few names for local (oreven remote) computers that aren’t in the global DNS database. For such situations, /etc/hosts may be just what you need. This fi le holds mappings of IP addresses to hostnames,on a one-line-per-mapping basis. Each mapping includes at least one name, and sometimesmore:127.0.0.1 localhost192.168.7.23 apollo.luna.edu apolloIn this example, the name localhost is associated with the 127.0.0.1 address, and thenames apollo.luna.edu and apollo are tied to 192.168.7.23. The fi rst of these linkages isstandard; it should exist in any /etc/hosts fi le. The second linkage is an example that youc08.indd 397 11/12/12 12:12 PM398 Chapter 8 ■ Configuring Basic Networkingcan modify as you see fi t. The fi rst name is a full hostname, including the domain portion;subsequent names on the line are aliases—typically the hostname without its full domainspecifi cation.Once you’ve set up an /etc/hosts fi le, you can refer to computers listed in the fi le byname, whether or not those names are recognized by the DNS servers the computer uses.One major drawback to /etc/hosts is that it’s a purely local fi le; setting a mapping in onecomputer’s /etc/hosts fi le affects name lookups performed by that computer alone. Thus,to do good on an entire network, you must modify the /etc/hosts fi les on all of the computerson the network.Linux normally performs lookups in /etc/hosts before it uses DNS. You can modifythis behavior by editing the /etc/nsswitch.conf fi le, which confi gures the Name ServiceSwitch (NSS) service. More specifi cally, you must adjust the hosts line. This line lists theorder of the files and dns options, which stand for /etc/hosts and DNS, respectively:hosts: files dnsReverse the order of the files and dns options to have the system consult DNS before itconsults /etc/hosts.The /etc/nsswitch.conf file supports many more options. For instance,you can perform name resolution using Windows NetBIOS calls or a Lightweight
Directory Access Protocol (LDAP) server by adding appropriate
options to the hosts line, along with the necessary support software. The
passwd, shadow, and group lines control how Linux authenticates users and
manages groups. You should not attempt to change these configurations
unless you understand the systems involved, but you should be aware of
the importance of /etc/nsswitch.conf generally.
In addition to /etc/hosts, Linux supports a fi le called /etc/networks. It works much
like /etc/hosts, but it applies to network addresses, and it reverses the order of the names
and the IP address on each line:
loopback 127.0.0.0
mynet 192.168.7.0
This example sets up two linkages: the loopback name to the 127.0.0.0/8 network and
mynet for the 192.168.7.0/24 network. It’s seldom necessary to edit this fi le.
Network Ports
Contacting a specifi c computer is important, but one additional type of addressing is left:
The sender must have an address for a specifi c program on the remote system. For instance,
suppose you’re using a Web browser. The Web server computer may be running more
servers than just a Web server—it may also be running an email server or an FTP server,
to name just two of many possibilities. Another number beyond the IP address enables
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Hiểu Mạng Giải quyết 397
chương trình trên nhiều Name: và Địa chỉ: đường. Điều này thực tế là cực kỳ phổ biến trên
các trang web phổ biến vì tải có thể được cân đối trên nhiều máy tính. Cũng lưu ý
nslookup rằng các báo cáo địa chỉ IP của máy chủ DNS nó sử dụng, trên Server: và
Địa chỉ: đường. (Sau này bao gồm các số cổng, như mô tả sau, trong "Network
Ports."
3. Loại máy chủ www.google.com. Đầu ra của lệnh này có thể sẽ hơi
ngắn hơn so với lệnh nslookup, nhưng nó phải báo cáo các địa chỉ IP cùng
với các máy chủ. Mặc dù chủ nhà không báo địa chỉ của máy chủ DNS, nó là IPv6-
kích hoạt, do đó nó báo cáo một địa chỉ IPv6, cũng như địa chỉ IPv4 của trang web.
4. Loại đào www.google.com. Kết quả này là đáng signifi dài hơn hoặc
nslookup hoặc máy chủ. Trong thực tế, nó gần giống với định dạng của confi guration fi les sử dụng
để DEFI ne một miền trong một máy chủ DNS. Trong trường hợp của www.google.com, mà hostname là
Defi ned như một bản ghi CNAME trỏ đến www.l.google.com, do đó có một số
mục A-record trỏ tới specifi địa chỉ IP c. (Cấu trúc này có thể thay đổi do
thời gian bạn đọc này, mặc dù, và tất nhiên nó có thể khác nếu bạn kiểm tra khác
tên máy). Bạn cũng sẽ thấy một vài bản ghi NS mà trỏ đến máy chủ tên của tên miền,
và bạn sẽ thấy bản ghi A bổ sung mà trỏ đến địa chỉ IP của máy chủ tên '.
5 . Thực hiện nslookup, host, và đào truy vấn trên các địa chỉ IP, chẳng hạn như là một trong những trở
bởi tra cứu của bạn trên www.google.com. (Điều này được biết đến như là một tra cứu ngược lại). Trong mỗi trường hợp,
công cụ này sẽ trả về một hostname. Lưu ý, tuy nhiên, các tên máy có thể không phù hợp với
một trong những bạn sử dụng ban đầu. Điều này là do nhiều hostname có thể trỏ đến cùng một
địa chỉ IP, và các chủ sở hữu của địa chỉ IP sẽ quyết định tên máy để liên kết đến các IP
địa chỉ cho mục đích tra cứu ngược lại. Trong một số trường hợp, công cụ sẽ trả lại một NXDOMAIN
lỗi, có nghĩa là chủ sở hữu các địa chỉ IP đã không confi gured tra ngược.
6. Thực hiện các truy vấn tương tự như trên các máy tính khác, chẳng hạn như những người liên quan đến trường học của bạn,
sử dụng lao động, hoặc ISP. Hầu hết các tên máy chỉ có một địa chỉ IP liên kết với chúng, và
bạn có thể thấy sự khác biệt khác, quá.
Đôi khi DNS là quá mức cần thiết. Ví dụ, bạn có thể chỉ cần để giải quyết một số ít các
tên máy. Điều này có thể là do bạn đang confi guring một mạng riêng nhỏ mà không
kết nối internet vào lớn hoặc bởi vì bạn muốn thiết lập một vài cái tên cho địa phương (hoặc
máy tính thậm chí từ xa) mà không có trong cơ sở dữ liệu DNS toàn cầu. Đối với tình huống như vậy, / etc /
hosts có thể chỉ là những gì bạn cần. Đây fi le giữ ánh xạ các địa chỉ IP cho tên máy chủ,
trên cơ sở một dòng mỗi bản đồ. Mỗi bản đồ bao gồm ít nhất một tên, và đôi khi
nhiều hơn:
127.0.0.1 localhost
192.168.7.23 apollo.luna.edu apollo
Trong ví dụ này, tên localhost được kết hợp với địa chỉ 127.0.0.1, và các
tên apollo.luna.edu và apollo được gắn với 192.168.7.23. Việc đầu tiên fi của các mối liên kết là
tiêu chuẩn; nó phải tồn tại trong bất kỳ / etc / hosts fi le. Mối liên kết thứ hai là một ví dụ mà bạn
c08.indd 397 11/12/12 12:12
398 Chương 8 ■ Cấu hình mạng cơ bản
có thể sửa đổi như bạn thấy fi t. Tên gốc đầu tiên một tên máy đầy đủ, bao gồm cả phần miền;
tên tiếp theo trên dòng là bí danh, thường là tên máy không có đầy đủ phạm vi của nó
cation specifi.
Một khi bạn đã thiết lập một / etc / hosts fi le, bạn có thể tham khảo máy tính được liệt kê trong các fi le
do. tên, có hay không những tên được công nhận bởi các máy chủ DNS của máy tính sử dụng
Nhược điểm lớn vào / etc / hosts là nó là một địa phương thuần túy fi le; thiết lập một bản đồ trong một
máy tính của / etc / hosts fi le ảnh hưởng đến tra cứu tên thực hiện bởi máy tính một mình. Vì vậy,
để làm tốt trên toàn bộ mạng, bạn phải chỉnh sửa / etc / hosts fi les trên tất cả các máy tính
trên mạng.
Linux thường thực hiện tra cứu trong / etc / hosts trước khi nó sử dụng DNS. Bạn có thể thay đổi
hành vi này bằng cách chỉnh sửa /etc/nsswitch.conf fi le, mà confi gures Name Service
dịch vụ Switch (NSS). More specifi biệt, bạn phải điều chỉnh các dòng máy chủ. Dòng này liệt kê các
thứ tự của các tập tin và tùy chọn dns, mà đứng cho / etc / hosts và DNS, tương ứng:
host: các tập tin dns
Đảo ngược thứ tự của các tập tin và tùy chọn dns để có hệ thống tư vấn DNS trước khi
tư vấn / etc / hosts .
Các tập tin /etc/nsswitch.conf hỗ trợ nhiều tùy chọn hơn. Ví dụ,
bạn có thể thực hiện phân giải tên NetBIOS sử dụng Windows cuộc gọi hoặc một Lightweight
Directory Access Protocol (LDAP) máy chủ bằng cách thêm thích hợp
tùy chọn cho dòng máy chủ, cùng với các phần mềm hỗ trợ cần thiết. Các
passwd, shadow, và đường dây nhóm kiểm soát cách Linux xác thực người dùng và
quản lý nhóm. Bạn không nên cố gắng để thay đổi các cấu hình
này, trừ khi bạn hiểu được các hệ thống có liên quan, nhưng bạn cần phải nhận thức
được tầm quan trọng của /etc/nsswitch.conf thường.
Ngoài / etc / hosts, Linux hỗ trợ một fi le có tên là / etc / mạng . Nó hoạt động giống
như / etc / hosts, nhưng nó áp dụng cho các địa chỉ mạng, và nó đảo ngược thứ tự của các tên
và địa chỉ IP trên mỗi dòng:
loopback 127.0.0.0
192.168.7.0 mynet
dụ này thiết lập mối liên kết hai: tên loopback với mạng 127.0.0.0/8 và
mynet cho mạng 192.168.7.0/24. Nó hiếm khi cần thiết để chỉnh sửa này fi le.
Mạng cảng
Liên hệ với một máy tính c specifi là quan trọng, nhưng một loại bổ sung của giải còn lại:
Người gửi phải có một địa chỉ cho một chương trình c specifi trên hệ thống từ xa. Ví dụ,
giả sử bạn đang sử dụng một trình duyệt Web. Các máy tính máy chủ Web có thể chạy nhiều
máy chủ hơn chỉ là một Web server-nó cũng có thể được chạy một máy chủ email hay một máy chủ FTP,
và đây chỉ là hai trong số nhiều khả năng. Một số vượt ra ngoài địa chỉ IP cho phép
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: