ข้ามไปที่เนื้อหาหลัก

install DNS Server for ubuntu 10.10

It work of the DNS


DNS (Domain Name System)was designed as a distributed database. Working principle. Client / Server by the DNS Server IP Address to store numbers with a Uniform Domain Name Name Resorution called to find out the name of the machine as requested DNS Client.

Step of DNS
1. DNS Client to connect to. itguest.blogspot.com. Will submit a request number of sites IP Address http://itguest.blogspot.com. Resolver process on the domain to their DNS Server(Patumwand.org). If no DNS Server information on this site. It sends a request to the ISP's DNS Server ISP again.

2. Will find the DNS Server IP Address and then number will be sent back to their own DNS Server machine (Patumwan.org).

3. Patumwan.org DNS Server record IP Address will be stored in the Cache Memory and sent back to the machine IP Address DNS Client.




Install DNS Server

Using a Linux Internet server. Or server in the organization. Important thing is to install a DNS Server is used to refer to a Name Server to the client.

Ubuntu is using DNS bind9 we use apt-get to install.

    sudo apt-get install bind9 (Or install all packet by command sudo apt-get install bind9 dnsutils)

After this operation, 2073 kb od additional disk space will be use.
Your press Key Y server download packet bind9 automatic.





After stop service by command.
    sudo /etc/init.d/bind9 stop

Configure name.conf.local

Program bind(Berkeley Internet Nameserver Daemon) has associated 3 files.
1. named.conf /etc/bind/named.conf
2. named.conf.options /etc/bind/named.conf.options
3. named.conf.local /etc/bind/named.conf.local

Caching Nameserver

Caching Nameserver with next to find out if the client for the first server can not see most of us will enter the Nameserver of the ISP that we use is as KSC 203.113.24.199, TOT 203.113.24.199 which this option in the /etc/bind/named.conf.options
// forwarders {
// 0.0.0.0;
// };

Change
forwarders {
203.155.33.1;
203.113.24.199;
};

Primary Master Name Server

The name was changed to change the IP Address and IP Address as the name Can do so by. Copy an existing configuration file, edit out.

1. Copy file by command.
cp /etc/bind/db.local /etc/bind/db.imodclub.com

2. Edit file named.conf.local
zone "imodclub.com" {
type master;
file "/etc/bind/db.imodclub.com";
};

3. Edit file db.imodclub.com
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.imodclub.com. root.imodclub.com. (
    1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL
@ IN MX 10 mail.myintranet.org.
;
@ IN NS ns.myintranet.org.
@ IN A 192.168.2.10
ns IN A 192.168.1.105
www IN A 192.168.1.105
mail IN A 192.168.1.105
ns IN A 192.168.1.105 IP Address for DNS
www IN A 192.168.1.105 IP Address for www
mail IN A 192.168.1.105 IP Address for mail


4. Copy file db.127 to db.192 by command.
sudo cp /etc/bind/db.127 /etc/bind/db.192

5. Edit file named.conf.local add command.
zone "2.168.192.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.192";
};

6. Edit file db.192
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns.imodclub.com root.imodclub.com. (
    1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL
;
@ IN NS ns.
105 IN PTR ns.imodclub.com.
105 IN PTR www.imodclub.com.
105 IN PTR mail.imodclub.com.

7. restart service by command.
sudo /etc/init.d/bind9 restart

8. Edit file /etc/resolv.conf
Nameserver 192.168.1.105

9. restart service network.
sudo /etc/init.d/networking restart

10. Testing of the server with the command dig.
dig imodclub.com

11. Testing of the server with the command nslookup.
nslookup imodclub.com



Finish

Thank you : google translation

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับอินเทล ซี

รวม Code Debug Card Mainboard

รวม Code Debug Card Mainboard สำหรับช่างซ่อมคอมมือใหม่ที่มีเครื่องมือ Debug Card เป็นตัวช่วยแล้ว บางครั้งอาจจะไม่รู้ว่าค่า Error Code นั้นคืออะไร ผมได้สืบหาข้อมูลและเขียนเพื่อเตือนความจำของตนเองไว้ เพราะไม่ค่อยได้ใช้ตัว Debug Card นี้เช่นกัน นานๆครั้งมาใช้นั้น ค่อนข้างที่จะค้นหาข้อมูลอย่างลำบากเช่นกัน ผมจึงได้รวบรวมข้อมูลมาจากเว็บที่หาข้อมูลได้ ขอขอบคุณเจ้าของข้อมูลด้วยครับ CODE : ความหมาย 00 : ไม่มีสัญญาณให้เช็ค CPU หรือลองหา CPU ตัวใหม่มาเปลี่ยนดูครับ 01 : CPU TEST รอบที่ 1 02 : CPU TEST รอบที่ 2 04 : TEST Memory รีเฟรช ของอุปกรณ์ ต่าง ๆ  05 : Key board controller อาจมีปัญหา 07 : BIOS battery อาจจะหมด 0B : TEST cmos checksum 0D : เช็ค VGA CARD Interface C0 : ทดสอบหน่วยความจำและ slot(ลองฉีด สเปรย์สารพัดพิษดูครับ) 0E : เช็คหน่วยความจำ VGA(ลองหาตัวใหม่มาเปลี่ยนดูครับ)  11 :อาจมีปัญหาที่ DMA controller 41 : ให้ตรวจสอบ FLOPPY Drive 42 : .ให้ตรวจสอบ HARD DISK 43 : ค้นหาและตรวจสอบ serial และ parallel port 45 : ให้เช็ค Mainboard ว่าเข้ากับ CPU ไ

พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด

พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด พอร์ตเชื่อมต่อแบบต่างๆ คือ หัวต่อที่ใช้เชื่อมต่อกับอุปกรณ์ภายนอก เช่น คีย์บอร์ด เมาส์ และเครื่องพิมพ์ สายแลน เป็นต้น ลักษณะของหัวต่อแต่ละแบบจะมีมาตรฐานและแตกต่างกันออกไปอยู่แล้ว จึงไม่ต้องกังวลว่าจะเสียบผิดรูปแบบ เพราะแต่ละหัวต่อจะมีรูปแบบไม่เหมือนกัน พอร์ตเชื่อมต่อต่างๆบนเมนบอร์ด มีดังนี้ 1. หัวต่อคีย์บอร์ดหรือเมาส์แบบ PS2 จะใช้คีย์บอร์ดก็ได้ หรือเมาส์ก็ได้ ปัจจุบันหัวต่อ PS2 ได้เลิกใช้งานไปแล้ว 2. หัวต่อ USB 2.0 ใช้สำหรับเชื่อมต่อ อุปกรณ์ต่างๆที่ใช้สาย USB ต่าง ความเร็วในการโอนถ่ายข้อมูล USB 2.0 นี้มีมากถึง 480 Mbps  3. หัวต่อจอภาพ แบบ Display port ใช้สำหรับเชื่อมต่อจอภาพที่เป็นประเภท Display port ส่งข้อมูลภาพได้สูง เหมาะสำหรับทำ Multi Display หรือการเชื่อมต่อหลายๆจอภาพ 4. หัวต่อจอภาพแบบ HDMI ปัจจุบัน (ปี 2020) เริ่มมีการใช้มากขึ้น เนื่องจากส่งข้อมูลความละเอียดภาพได้มากถึง 4K และอนาคตจะมีการพัฒนาเพิ่มขึ้นอีก 5. หัวต่อจอภาพแบบ DVI เป็นการพัฒนาการส่งออกจอภาพต่อจาก VGA เป็นช่วงเวลานึง ปัจจุบันจะไม่ค่อยมีใช้แล้ว 6. หัวต่อจอภาพแบบ VGA ใช