Latest Entries »

Cara aktivasi Office 2010

Masa percobaan Office 2010 ( Technical Preview ) sudah berakhir tapi bagi kita yang sudah terlanjur jatuh cinta dan menginstallnya di PC maka tidak ada salahnya untuk coba memperbaikinya sehingga office 2010 berjalan baik tanpa harus muncul pesan seperti gambar dibawah ini

Aktifasi-office-2010-300×272

Pesan diatas biasanya akan muncul saat program office 2010 dijalankan. Ada banyak cara untuk menghilangkan pesan tersebut tapi menurut saya diantara sekian banyak cara, ada yang terbaik yaitu seperti berikut:

Pertama-tama Anda harus menghentikan layanan : Office Software Protection

Kemudian jalankan c:\Windows\System32\OSPPRUN.exe

Akan muncul sebuah prompt. lalu Ketikan perintah dibawah ini

>Initialize (enter)
>Open (enter)
>GetInstalledSkuIds (enter)

0. 128a057a-7e95-4063-b296-c54c5f3d3f3a (deze is het ID van Office 2010)

1. 26adec89-edf3-4adc-a3fc-c865f1a9f71f

OK.

> GetInstalledAppIds 128a057a-7e95-4063-b296-c54c5f3d3f3a (enter)

0. 59a52881-a989-479d-af46-f275c6370663

OK.

(Anda akan mendapatkan sesuatu yang tampak seperti ini)

> GetLicensingStatus 59a52881-a989-479d-af46-f275c6370663 128a057a-7e95-4063-b296-c54c5f3d3f3a (enter)

SkuId = 128a057a-7e95-4063-b296-c54c5f3d3f3a

eStatus = SL_LICENSING_STATUS_IN_GRACE_PERIOD

dwGraceTime = 1D 23:37

dwTotalGraceDays = 30 days

hrReason = 4004F00C

qwExpiration = 2010/10/31

OK.

(Sekarang apa yang Anda akan lakukan adalah mengatur AppID dan SkuID untuk Office 2010 untuk mengaktifkan kembali 30 hari sebelum aktivasi. Yang memberikan anda 30 hari lagi untuk menguji. Kebanyakan ID yang sama, jika tidak silahkan salin dari id yang anda miliki )

> Rearm 59a52881-a989-479d-af46-f275c6370663 128a057a-7e95-4063-b296-c54c5f3d3f3a 1 (enter)

OK.
>close (enter)
>Initialize (enter)
>open (enter)

Anda dapat memasukkan perintah di bawah ini untuk memeriksa berapa banyak hari tersisa (Lihat dwGraceTime):

> GetLicensingStatus 59a52881-a989-479d-af46-f275c6370663 128a057a-7e95-4063-b296-c54c5f3d3f3a (enter)

SkuId = 128a057a-7e95-4063-b296-c54c5f3d3f3a

eStatus = SL_LICENSING_STATUS_IN_GRACE_PERIOD

dwGraceTime = 29D 23:37

dwTotalGraceDays = 30 days

hrReason = 4004F00C

qwExpiration = 2010/10/31

>quit (enter)

Sekarang anda sudah dapat menggunakan Office 2010 kembali

Sumber : http://getandshared.wordpress.com

Server PVPGN DOTA

Server PVPGN DOTA
Bila anda seorang pemain game online tentu tidak akan asing lagi dengan istilah yang disebut dengan Battle.net, apalagi bagi anda yang suka bermain DoTA (singkatan dari Defense of The Ancients), yang merupakan sebuah map di game warcraft 3 : The Frozen Throne. Dan kepopuleran DoTA melebihi game asli, warcraft 3.

Lansung saja, pada dasarnya Server Battle.net merupakan sebuah komputer yang dijadikan sebagai jembatan penghubung antara pemain dalam sebuah jaringan atau internet. Pembuatan server Battle.net kali ini, saya menggunakan software PvPGN ( Player vs Player Game Network) pada platform Windows. Sebenarnya, softwarenya juga tersedia dalam paket source yang dapat di-compile di Linux dan di Mac, tapi kali ini saya hanya akan menjelaskan tentang penginstallannya di Windows.

.

PvPGN adalah sebuah BNETD yang bertujuan untuk menyediakan dukungan untuk semua client Blizzard, berlisensi GPL, open source dan free. Jadi bisa didistribusikan dengan bebas tanpa takut masalah legalisasinya… ^_^

.

.

Daftar client yang support dan versi minimum yang dibutuhkan :

* Battle.Net games:
- Diablo 1 v1.09
- Starcraft v1.08
- BroodWar v1.08
- Warcraft II Battle.Net Edition v2.02
- Diablo 2 v1.10
- Diablo 2 LOD v1.10
- Warcraft III Reign Of Chaos v1.13
- Warcraft III Frozen Throne v1.13

* Westwood Online games:
- Dune 2000 v1.06
- Tiberian Sun v2.03 ST-10
- Red Alert 2 v1.006
- Yuri’s Revenge v1.001

.

.

PvPGN dapat di download di

Sources:

http://pvpgn.imigi.ro/hosted/stable/pvpgn-1.8.4.tar.gz
http://pvpgn.imigi.ro/hosted/stable/pvpgn-1.8.4.tar.bz2

Windows 32 binaries:

http://harpywar.com/files/items/pvpgn/PvPGN-1.8.4-0-Win32-MySQL-5.0.51b-BIN.zip
http://pvpgn.imigi.ro/hosted/stable/PvPGN-1.8.4-0-Win32-MySQL-5.0.51b-BIN.zip
http://pvpgn.imigi.ro/hosted/stable/PvPGN-1.8.4-0-Win32-odbc-BIN.zip
http://pvpgn.imigi.ro/hosted/stable/PvPGN-1.8.4-0-Win32-SQLite-3.6.0-BIN.zip

Needed support files:

http://pvpgn.imigi.ro/hosted/support_files/pvpgn-support-1.2.tar.gz
http://pvpgn.imigi.ro/hosted/support_files/pvpgn-support-1.2.zip

UPDATE Terbaru Cek DISINI : http://pvpgn.imigi.ro
Silahkan gunakan link di sumbernya jika link di atas gagal. Diatas dapat dilihat bahwa tersedia paket Source sampai paket W32, silahkan download PvPGN dan support files-nya.

.

.

Masalah Storage (penyimpanan) :
“storage” adalah penyimpanan data account user (username, password, dan lain2). Ini adalah bagian yang sangat penting dalam PvPGN karena berpengaruh pada kecepatan sevre tergatung dari metode penyimpanan yang digunakan, berikut pertimbangannya,..

Users Storage Mode
Files
> 100 and CDB
> 1000 SQL

Jika anda berrencana untuk mengunakan server battle.Net untuk kurang dari 100 orang silahkan gunakan metode peyimpanan file, untuk lebih dari 100 dan kurang dari 1000 gunakan metode penyimpanan CDB, dan untuk lebih dari 1000 gunakan metode SQL. Saya menggunakan metode CDB, sehingga ketika men-download saya pilih yang PvPGN ocdb.

.

.

Install PvPGN
Penginstallan dengan Installer Windows adalah penginstallan yang termudah jika dibandingkan dengan platform yang lain, dan di dalam penginstallannya dibutuhkan suppport file agar servernya berjalan dengan baik. Berikut ini Ilustrasi Installasi PvPGN,.. ^_^

•Download file PvPGN dan PvPGN-support di http://pvpgn.imigi.ro atau http://pvpgn.berlios.de.
•Extract file PvPGN , dan pindahkan folder hasil extract ke dalam c:\program files
•Extract file PvPGN-support , dan pindahkan semua file di dalamnya ke dalam folder “files” di dalam folder PvPGN yang sudah dipindahkan ke c:\program files
•Untuk menjalankan servernya double click file PvPGNConsole.exe atau jika ingin menjalankan interface GUI Windows double click file PvPGN.exe
•Jika ingin menjalankan Server di Service Windows, double click file install.bat dan restart restart komputer anda.
•-Setelah restart, untuk mengecek apakah servernya sudah jalan maka buka command prompt. Start -> Run -> “cmd”, ketikkan perintah “netstat -a“, lihat apakah port 6112 dalam kondisi Listening.Dan buka task manager. Start -> Run -> “taskmgr” , Lihat apakah programnya sudah jalan.

•Konfigurasi terlebih dahulu gateway. Seperti yang terlihat di gambar, gunakanlah IP komputer anda.

•Jalankan DoTA dengan menggunakan w3l. Jika ada peringatan dari anti virus, di-skip saja.

•Kemudian Pilih gateway di dalam game DoTA-nya.

•Setelah itu klik Battle.net, silahkan buat account baru jika anda

Tutorial Lengkap dari situs Resmi PvPGN di sini

http://developer.berlios.de/docman/index.php?group_id=2291

Tambahan : Untuk menjadikan sebuah account sebagai Admin ikuti cara sesuai gambar di bawah,..

Ethernet

Ethernet

The IEEE 802.3 standard defines ethernet at the physical and data link layers of the OSI network model. Most
ethernet systems use the following:
l Carrier-sense multiple-access with collision detection (CSMA/CD) for controlling access to the network
media.
l Use baseband broadcasts
l A method for packing data into data packets called frames
l Transmit at 10Mbps, 100Mbps, and 1Gbps.

Types of Ethernet
l 10Base5 – Uses Thicknet coaxial cable which requires a transceiver with a vampire tap to connect each
computer. There is a drop cable from the transceiver to the Attachment Unit Interface (AIU). The AIU
may be a DIX port on the network card. There is a transceiver for each network card on the network. This
type of ethernet is subject to the 5-4-3 rule meaning there can be 5 network segments with 4 repeaters, and
three of the segments can be connected to computers. It uses bus topology. Maximum segment length is
500 Meters with the maximum overall length at 2500 meters. Minimum length between nodes is 2.5
meters. Maximum nodes per segment is 100.
l 10Base2 – Uses Thinnet coaxial cable. Uses a BNC connector and bus topology requiring a terminator at
each end of the cable. The cable used is RG-58A/U or RG-58C/U with an impedance of 50 ohms. RG-58U
is not acceptable. Uses the 5-4-3 rule meaning there can be 5 network segments with 4 repeaters, and three
of the segments can be connected to computers. The maximum length of one segment is 185 meters.
Barrel connectors can be used to link smaller pieces of cable on each segment, but each barrel connector
reduces signal quality. Minimum length between nodes is 0.5 meters.
l 10BaseT – Uses Unshielded twisted pair (UTP) cable. Uses star topology. Shielded twisted pair (STP) is
not part of the 10BaseT specification. Not subject to the 5-4-3 rule. They can use category 3, 4, or 5 cable,
but perform best with category 5 cable. Category 3 is the minimum. Require only 2 pairs of wire. Cables
in ceilings and walls must be plenum rated. Maximum segment length is 100 meters. Minimum length
between nodes is 2.5 meters. Maximum number of connected segments is 1024. Maximum number of
nodes per segment is 1 (star topology). Uses RJ-45 connectors.
l 10BaseF – Uses Fiber Optic cable. Can have up to 1024 network nodes. Maximum segment length is 2000
meters. Uses specialized connectors for fiber optic. Includes three categories:
m 10BaseFL – Used to link computers in a LAN environment, which is not commonly done due to
high cost.
m 10BaseFP – Used to link computers with passive hubs to get cable distances up to 500 meters.
m 10BaseFB – Used as a backbone between hubs.
l 100BaseT – Also known as fast ethernet. Uses RJ-45 connectors. Topology is star. Uses CSMA/CD media
access. Minimum length between nodes is 2.5 meters. Maximum number of connected segments is 1024.
Maximum number of nodes per segment is 1 (star topology). IEEE802.3 specification.
m 100BaseTX – Requires category 5 two pair cable. Maximum distance is 100 meters.
m 100BaseT4 – Requires category 3 cable with 4 pair. Maximum distance is 100 meters.
m 100BaseFX – Can use fiber optic to transmit up to 2000 meters. Requires two strands of fiber optic
cable.
Ethernet
l 100VG-AnyLAN – Requires category 3 cable with 4 pair. Maximum distance is 100 meters with cat 3 or 4
cable. Can reach 150 meters with cat 5 cable. Can use fiber optic to transmit up to 2000 meters. This
ethernet type supports transmission of Token-Ring network packets in addition to ethernet packets. IEEE
802.12 specification. Uses demand-priority media access control. The topology is star. It uses a series of
interlinked cascading hubs. Uses RJ-45 connectors.
The IEEE naming convention is as follows:
1. The transmission speed in Mbps
2. Baseband (base) or Broadband data transmission
3. The maximum distance a network segment could cover in hundreds of meters.
Comparisons of some ethernet types. distances are in meters.
Ethernet Type Cable Min length between nodes Max Segment length Max overall length
10Base2 Thinnet 0.5 185 925
10Base5 Thicknet 2.5 500 2500
10BaseF Fiber 2000
10BaseT UTP 2.5 100

Types of ethernet frames

l Ethernet 802.2 – These frames contain fields similar to the ethernet 802.3 frames with the addition of three
Logical Link Control (LLC) fields. Novell NetWare 4.x networks use it.
l Ethernet 802.3 – It is mainly used in Novell NetWare 2.x and 3.x networks. The frame type was developed
prior to completion of the IEEE 802.3 specification and may not work in all ethernet environments.
l Ethernet II – This frame type combines the 802.3 preamble and SFD fields and include a protocol type
field where the 802.3 frame contained a length field. TCP/IP networks and networks that use multiple
protocols normally use this type of frames.
l Ethernet SNAP – This frame type builds on the 802.2 frame type by adding a type field indicating what
network protocol is being used to send data. This frame type is mainly used in AppleTalk networks.
The packet size of all the above frame types is between 64 and 1,518 bytes.

Ethernet Message Formats

The ethernet data format is defined by RFC 894 and 1042. The addresses specified in the ethernet protocol are 48
bit addresses.
Ethernet
The types of data passed in the type field are as follows:
1. 0800 IP Datagram
2. 0806 ARP request/reply
3. 8035 RARP request/reply
There is a maximum size of each data packet for the ethernet protocol. This size is called the maximum
transmission unit (MTU). What this means is that sometimes packets may be broken up as they are passed
through networks with MTUs of various sizes. SLIP and PPP protocols will normally have a smaller MTU value
than ethernet. This document does not describe serial line interface protocol (SLIP) or point to point protocol
(PPP) encapsulation.
Token Ring

Token Ring

Developed by IBM is standardized to IEEE 802.5. It uses a star topology, but it is wired so the signal will travel
from hub to hub in a logical ring. These networks use a data token passed from computer to computer around the
ring to allow each computer to have network access. The token comes from the nearest active upstream neighbor
(NAUN). When a computer receives a token, if it has no attached data and the computer has data for
transmission, it attaches its data to the token then sends it to its nearest active downstream neighbor (NADN).
Each computer downstream will pass the data on since the token is being used until the data reaches its recipient.
The recipient will set two bits to indicate it received the data and transmit the token and data. When the computer
that sent the data receives the package, it can verify that the data was received correctly. It will remove the data
from the token and pass the token to its NADN.

Characteristics

Maximum cable length is 45 meters when UTP cable is used and 101 meters when STP is used. Topology is starwired
ring. It uses type 1 STP and type 3 UTP. Connectors are RJ-45 or IBM type A. Minimum length between
nodes is 2.5 meters. Maximum number of hubs or segments is 33. Maximum nodes per network is 72 nodes with
UTP and 260 nodes with STP. Speed is 4 or 16 Mps. Data frames may be 4,000 to 17,800 bytes long.

Hubs

A token ring network uses a multistation access unit (MAU) as a hub. It may also be known as a Smart
Multistation Access Unit (SMAU). A MAU normally has ten ports. Two ports are Ring In (RI) and Ring Out
(RO) which allow multiple MAUs to be linked to each other. The other 8 ports are used to connect to computers.
Token Ring

Cables

UTP or STP cabling is used as a media for token ring networks. Token Ring uses an IBM cabling system based
on American Wire Gauge (AWG) standards that specify wire diameters. The larger the AWG number, the small
diameter the cable has.
Token ring networks normally use type 1, type 3 or regular UTP like cable used on ethernet installations. If
electrical interference is a problem, the type 1 cable is a better choice. Cable types:
Type Description
1
Two 22 AWG solid core pair of STP cable with a braided shield. This cable is normally used between
MAUs and computers.
2 Two 22 AWG solid core pair with four 26 AWG solid core of STP cable.
3 Four 22 or 24 AWG UTP cable. This is voice-grade cable and cannot transmit at a rate above 4Mbps.
4 Undefined.
Token Ring
5 Fiber-optic cable. Usually used to link MAUs.
6
Two 26 AWG stranded core pair of STP cable with a braided shield. The stranded-core allows more
flexibility but limits the transmission distance to two-thirds that of type 1.
7 Undefined.
8 Type 6 cable with a flat casing to be used under carpets.
9 Type 6 cable with plenum-rating for safety.

Beaconing

The first computer turned on on a token ring will be the active monitor. Every seven seconds it sends a frame to
its nearest active downstream neighbor. The data gives the address of the active monitor and advertised the fact
that the upstream neighbor is the active monitor. That station changes the packets upstream address and sends it
to its nearest active downstream neighbor. When the packet has traveled around the ring, all stations know the
address of their upstream neighbor and the active monitor knows the state of the network. If a computer has not
heard from its upstream neighbor after seven seconds, it will send a packet that announces its own address, and
the NAUN that is not responding. This packet will cause all computers to check their configuration. The ring can
thereby route around the problem area giving some fault tolerance to the network.
ARCnet Network

Domain Name Service

Domain Name Service

Host Names

Domain Name Service (DNS) is the service used to convert human readable names of hosts to IP addresses. Host names are
not case sensitive and can contain alphabetic or numeric letters or the hyphen. Avoid the underscore. A fully qualified domain
name (FQDN) consists of the host name plus domain name as in the following example:
computername.domain.com
The part of the system sending the queries is called the resolver and is the client side of the configuration. The nameserver
answers the queries. Read RFCs 1034 and 1035. These contain the bulk of the DNS information and are superceded by RFCs
1535-1537. Naming is in RFC 1591. The main function of DNS is the mapping of IP addresses to human readable names.
Three main components of DNS
1. resolver
2. name server
3. database of resource records(RRs)

Domain Name System

The Domain Name System (DNS) is basically a large database which resides on various computers and it contains the names
and IP addresses of various hosts on the internet and various domains. The Domain Name System is used to provide
information to the Domain Name Service to use when queries are made. The service is the act of querying the database, and
the system is the data structure and data itself. The Domain Name System is similar to a file system in Unix or DOS starting
with a root. Branches attach to the root to create a huge set of paths. Each branch in the DNS is called a label. Each label can
be 63 characters long, but most are less. Each text word between the dots can be 63 characters in length, with the total domain
name (all the labels) limited to 255 bytes in overall length. The domain name system database is divided into sections called
zones. The name servers in their respective zones are responsible for answering queries for their zones. A zone is a subtree of
DNS and is administered separately. There are multiple name servers for a zone. There is usually one primary nameserver and
one or more secondary name servers. A name server may be authoritative for more than one zone.
DNS names are assigned through the Internet Registries by the Internet Assigned Number Authority (IANA). The domain
name is a name assigned to an internet domain. For example, mycollege.edu represents the domain name of an educational
institution. The names microsoft.com and 3Com.com represent the domain names at those commercial companies. Naming
hosts within the domain is up to individuals administer their domain.
Access to the Domain name database is through a resolver which may be a program or part of an operating system that resides
on users workstations. In Unix the resolver is accessed by using the library functions “gethostbyname” and “gethostbyaddr”.
The resolver will send requests to the name servers to return information requested by the user. The requesting computer tries
to connect to the name server using its IP address rather than the name.

Structure and message format

The drawing below shows a partial DNS hierarchy. At the top is what is called the root and it is the start of all other branches
in the DNS tree. It is designated with a period. Each branch moves down from level to level. When referring to DNS
addresses, they are referred to from the bottom up with the root designator (period) at the far right. Example:
“myhost.mycompany.com.”.
Domain Name Service
DNS is hierarchical in structure. A domain is a subtree of the domain name space. From the root, the assigned top-level
domains in the U.S. are:
l GOV – Government body.
l EDU – Educational body.
l INT – International organization
l NET – Networks
l COM – Commercial entity.
l MIL – U. S. Military.
l ORG – Any other organization not previously listed.
Outside this list are top level domains for various countries.
Each node on the domain name system is separated by a “.”. Example: “mymachine.mycompany.com.”. Note that any name
ending in a “.” is an absolute domain name since it goes back to root.

DNS Message format:

Bits Name Description
Domain Name Service
0-15 Identification Used to match responses to requests. Set by client and returned by server.
16-31 Flags
Tells if query or response, type of query, if authoritative answer, if truncated,
if recursion desired, and if recursion is available.
32-47 Number of questions
48-63 Number of answer RRs
64-79 Number of authority RRs
80-95 Number of additional RRs
96-?? Questions – variable lengths There can be variable numbers of questions sent.
??-?? Answers – variable lengths Answers are variable numbers of resource records.
??-?? Authority – variable lengths
??-?? Additional Information – variable lengths
Question format includes query name, query type and query class. The query name is the name being looked up. The query
class is normally 1 for internet address. The query types are listed in the table below. They include NS, CNAME, A, etc.
The answers, authority and additional information are in resource record (RR) format which contains the following.
1. Domain name
2. Type – One of the RR codes listed below.
3. Class – Normally indicates internet data which is a 1.
4. Time to live field – The number of seconds the RR is saved by the client.
5. Resource data length specifies the amount of data. The data is dependent on its type such as CNAME, A, NS or others
as shown in the table below. If the type is “A” the data is a 4 byte IP address.
The table below shows resource record types:
Type RR value Description
A 1 Host’s IP address
NS 2 Host’s or domain’s name server(s)
CNAME 5 Host’s canonical name, host identified by an alias domain name
PTR 12 Host’s domain name, host identified by its IP address
HINFO 13 Host information
MX 15 Host’s or domain’s mail exchanger
AXFR 252 Request for zone transfer
ANY 255 Request for all records

Usage and file formats

If a domain name is not found when a query is made, the server may search for the name elsewhere and return the information
to the requesting workstation, or return the address of a name server that the workstation can query to get more information.
There are special servers on the Internet that provide guidance to all name servers. These are known as root name servers.
They do not contain all information about every host on the Internet, but they do provide direction as to where domains are
located (the IP address of the name server for the uppermost domain a server is requesting). The root name server is the
starting point to find any domain on the Internet.
Domain Name Service

Name Server Types

There are three types of name servers:
1. The primary master builds its database from files that were preconfigured on its hosts, called zone or database files.
The name server reads these files and builds a database for the zone it is authoritative for.
2. Secondary masters can provide information to resolvers just like the primary masters, but they get their information
from the primary. Any updates to the database are provided by the primary.
3. Caching name server – It gets all its answers to queries from other name servers and saves (caches) the answers. It is a
non-authoritative server.
The caching only name server generates no zone transfer traffic. A DNS Server that can communicate outside of the private
network to resolve a DNS name query is referred to as forwarder.

DNS Query Types

There are two types of queries issued:
1. Recursive queries received by a server forces that server to find the information requested or post a message back to
the querier that the information cannot be found.
2. Iterative queries allow the server to search for the information and pass back the best information it knows about. This
is the type that is used between servers. Clients used the recursive query.
3. Reverse – The client provides the IP address and asks for the name. In other queries the name is provided, and the IP
address is returned to the client. Reverse lookup entries for a network 192.168.100.0 is “100.168.192.in-addr arpa”.
Generally (but not always), a server-to-server query is iterative and a client-resolver-to-server query is recursive. You should
also note that a server can be queried or it can be the person placing a query. Therefore, a server contains both the server and
client functions. A server can transmit either type of query. If it is handed a recursive query from a remote source, it must
transmit other queries to find the specified name, or send a message back to the originator of the query that the name could not
be found.

DNS Transport protocol
DNS resolvers first attempt to use UDP for transport, then use TCP if UDP fails.

The DNS Database

A database is made up of records and the DNS is a database. Therefore, common resource record types in the DNS database
are:
l A – Host’s IP address. Address record allowing a computer name to be translated into an IP address. Each computer
must have this record for its IP address to be located. These names are not assigned for clients that have dynamically
assigned IP addresses, but are a must for locating servers with static IP addresses.
l PTR – Host’s domain name, host identified by its IP address
l CNAME – Host’s canonical name allows additional names or aliases to be used to locate a computer.
l MX – Host’s or domain’s mail exchanger.
l NS – Host’s or domain’s name server(s).
l SOA – Indicates authority for the domain
Domain Name Service
l TXT – Generic text record
l SRV – Service location record
l RP – Responsible person
l HINFO – Host information record with CPU type and operating system.
When a resolver requests information from the server, the DNS query message indicates one of the preceding types.

DNS Files

l CACHE.DNS – The DNS Cache file. This file is used to resolve internet DNS queries. On Windows systems, it is
located in the WINNTROOTsystem32DNS directory and is used to configure a DNS server to use a DNS server on
the internet to resolve names not in the local domain.

Example Files

Below is a partial explanation of some records in the database on a Linux based system. The reader should view this
information because it explains some important DNS settings that are common to all DNS servers. An example
/var/named/db.mycompany.com.hosts file is listed below.
mycompany.com. IN SOA mymachine.mycompany.com.
root.mymachine.mycompany.com. (
1999112701 ; Serial number as date and two digit number
YYMMDDXX
10800 ; Refresh in seconds 28800=8H
3600 ; Retry in seconds 7200=2H
604800 ; Expire 3600000=1 week
86400 ) ; Minimum TTL 86400=24Hours
mycompany.com. IN NS mymachine.mycompany.com.
mycompany.com. IN MX 10
mailmachine.mycompany.com.
mymachine.mycompany.com. IN A 10.1.0.100
mailmachine.mycompany.com. IN A 10.1.0.4
george.mycompany.com. IN A 10.1.3.16

A Line by line description is as follows:
1. The entries on this line are:
1. mycompany.com. – Indicates this server is for the domain mycompany.com.
2. IN – Indicates Internet Name.
3. SOA – Indicates this server is the authority for its domain, mycompany.com.
4. mymachine.mycompany.com. – The primary nameserver for this domain.
5. root.mymachine.mycompany.com. – The person to contact for more information.
The lines in the parenthesis, listed below, are for the secondary nameserver(s) which run as slave(s) to this one (since it
is the master).
2. 1999112701 – Serial number – If less than master’s SN, the slave will get a new copy of this file from the master.
3. 10800 – Refresh – The time in seconds between when the slave compares this file’s SN with the master.
4. 3600 – Retry – The time the server should wait before asking again if the master fails to respond to a file update (SOA
request).
5. 604800 – Expire – Time in seconds the slave server can respond even though it cannot get an updated zone file.
6. 86400 – TTL – The time to live (TTL) in seconds that a resolver will use data received from a nameserver before it will
Domain Name Service
ask for the same data again.
7. This line is the nameserver resource record. There may be several of these if there are slave name servers.
mycompany.com. IN NS mymachine.mycompany.com.
Add any slave server entries below this like:
mycompany.com. IN NS ournamesv1.mycompany.com.
mycompany.com. IN NS ournamesv2.mycompany.com.
mycompany.com. IN NS ournamesv3.mycompany.com.
8. This line indicates the mailserver record.
mycompany.com. IN MX 10
mailmachine.mycompany.com.

There can be several mailservers. The numeric value on the line indicates the preference or precedence for the use of
that mail server. A lower number indicates a higher preference. The range of values is from 0 to 65535. To enter more
mailservers, enter a new line for each one similar to the nameserver entries above, but be sure to set the preferences
value correctly, at different values for each mailserver.
9. The rest of the lines are the name to IP mappings for the machines in the organization. Note that the nameserver and
mailserver are listed here with IP addresses along with any other server machines required for your network.

mymachine.mycompany.com. IN A 10.1.0.100
mailmachine.mycompany.com. IN A 10.1.0.4
george.mycompany.com. IN A 10.1.3.16

Domain names written with a dot on the end are absolute names which specify a domain name exactly as it exists in the DNS
hierarchy from the root. Names not ending with a dot may be a subdomain to some other domain.
Aliases are specified in lines like the following:

mymachine.mycompany.com IN CNAME nameserver.mycompany.com.
george.mycompany.com IN CNAME dataserver.mycompany.com.
Linux1.mycompany.com IN CNAME engserver.mycompany.com.
Linux2.mycompany.com IN CNAME mailserver.mycompany.com.

When a client (resolver) sends a request, if the nameserver finds a CNAME record, it replaces the requested name with the
CNAME, then finds the address of the CNAME value, and return this value to the client.
A host that has more than one network card which is set to address two different subnets can have more than one address for a
name.

mymachine.mycompany.com IN A 10.1.0.100
IN A 10.1.1.100

When a client queries the nameserver for the address of a multi homed host, the nameserver will return the address that is
closest to the client address. If the client is on a different network than both the subnet addresses of the multi homed host, the
server will return both addresses.
Domain Name Service
For more information on practical application of DNS, read the DNS section of the Linux User’s Guide.
Virtual Private Networking

Blog pada WordPress.com. | Tema: Motion oleh volcanic.
Ikuti

Get every new post delivered to your Inbox.