未分类题

应用题必须用蓝、黑色钢笔或圆珠笔写在答题纸的相应位置上,否则无效。
在设置域名解析服务器时,已知该文件服务器上文件named.boot的内容,回答【问题1】~【问题4】。
named.boot文件为:
Directory/var/named
Cache named.root
Primary 0.0.127 in-addr.arpa named.local
Primarynet.com.cn net.com.cn.hosts
Primary 58.112.202.in-addr.arpa net.com.cn.rev
Secondary com.cn 202.112.0.33 com.cn.2nd。
Forward 202.112.0.35
【问题1】给出域名解析的两种方案。

A.boot的内容,回答【问题1】~【问题4】。
named.boot文件为:
Directory/var/named
Cache
B.root
Primary
C.0.127
D.arpa
E.local
Primarynet.com.cn
F.com.cn.hosts
Primary
G.112.202.in-addr.arpa
H.com.cn.rev
Secondary
I.cn
J.112.0.33
K.cn.2nd。
Forward
L.112.0.35
【问题1】给出域名解析的两种方案。

【参考答案】


本题主要考查的是对DNS服务器配置命令的掌握
【问题1】本地解析hosts和分布式域名解析系统DNS。
热门 试题

未分类题
试题五(共15分) 阅读以下说明和 C++代码,将应填入 (n) 处的语句或语句成分写在答题纸的对应栏内。 【说明】 某数据文件students.txt的内容为100名学生的学号和成绩,下面的程序将文件中的数据全部读入对象数组,按分数从高到低进行排序后选出排名前 30%的学生。 【C++代码】 #include <iostream> #include <fstream> #include <string> using namespace std; class Student { private: string sNO; 学号 int credit; 分数 public: Student(string a,int b) { sNO = a; credit = b;} Student(){} int getCredit(); void out(); }; (1) ::getCredit() { return credit; } (2) ::out() { cout << 'SNO: ' << sNO << ', Credit=' << credit << endl; } class SortStudent { public: void sort(Student *s, int n); SortStudent(){} }; void SortStudent::sort(Student *s,int n) { for(int i = 0; i < n-1; i++) { for(int j = i+1; j < n; j++) { if(s[i]. (3) < s[j]. (4) ) { Student temp = s[i]; s[i] = s[j]; s[j] = temp; } } } } int main(int argc, char* argv[]) { const int number = 100; 学生总数 ifstream students; students.open('students.txt'); if(!students.is_open()) { throw 0; } Student *testStudent = (5) [number]; int k = 0; string s; while (getline(students,s,' n')) { 每次读取一个学生的学号和成绩 Student student(s.substr(0,s.find(',')), atoi(s.substr(s.find(',')+1).c_str())); testStudent[k++] = student; } students.close(); (6) ; ss.sort(testStudent,k); cout <<'top 30%: '<<endl; for(k = 0; k < number * 0.3; k++) { testStudent[k].out(); } delete []testStudent; return 0; }