Installing MyDNS And The MyDNSConfig Control Panel On CentOS 5.1 - Pag…
페이지 정보
작성자 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 18,529회 작성일 08-05-29 00:39본문
4 Installing MyDNSNext we download the mydns-mysql rpm package from http://mydns.bboy.net/download/ and install it as follows: wget http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm Open the MyDNS configuration file /etc/mydns.conf, fill in the correct database details, allow zone transfers by setting allow-axfr to yes, enable TCP (allow-tcp = yes), and specify a recursive resolver (i.e., a valid nameserver, e.g. from your ISP; e.g. recursive = 213.191.92.86) so that MyDNS can answer queries for domains that it isn't authoritative for: vi /etc/mydns.conf
Next, create the system startup links for MyDNS and start MyDNS: chkconfig
--levels 235 mydns on Finally, we need to fix the system startup links for MyDNS. MyDNS depends on MySQL, so MyDNS must start after MySQL has started, otherwise it will fail. The default startup links for MyDNS make it start before MySQL which is wrong, so we fix this as follows: cd /etc/rc.d/rc3.d MySQL uses the startup links S64mysql, so renaming the MyDNS startup links from S52mydns to S99mydns makes sure that MyDNS starts after MySQL. The basic installation of MyDNS and MyDNSConfig is now finished. To log in to the MyDNSConfig interface, open a web browser and enter enter the following URL: http://<your_ip_address>/mydnsconfig/ Replace <your_ip_address> with the IP address of your server. The default username and password of MyDNSConfig are: Username:
admin Don't forget to change the password after login under System > Users.
5 Using MyDNSConfigIn this chapter I will demonstrate how to use MyDNSConfig by creating an example zone test.com and an A record www.test.com. First log in:
Click on the Add New Zone button:
The form on the SOA tab is preseeded with default values. Fill in test.com. (please note the final dot!) in the Origin field and make changes to the other fields, if necessary. The Zone Transfers field can be left empty which means that any server can connect to our MyDNS server to initiate a zone transfer; if you fill in an IP address, only that system can connect:
After you've clicked on Save, you will find your new zone listed on the Zones (SOA) page. Click on the test.com. link to go to the zone's properties:
Next, click on the Records tab:
Then click on the Add New Record button to create a record (A/MX/CNAME/...):
To create the A record www.test.com, fill in www in the Name field, select A as the Type, type in www.test.com's IP address in the Data field (e.g. 1.2.3.4), and specify the TTL (in seconds). The Preference/Priority field can be left empty for A records; it's needed for MX records:
After you've clicked on Save, you will find www.test.com in the list of records for the zone test.com:
That's it already - no restarts are required. You can now test if MyDNS can resolve www.test.com: dig @localhost www.test.com If all goes well, the output should look something like this:
[root@server1 ~]# dig @localhost www.test.com
6 Links
|
댓글목록
등록된 댓글이 없습니다.