سلام و خسته نباشید.
من قصد دارم دامنه test.ir رو بر روی سرور مجازیم ست کنم.
۲ تا نیم سرور به آدرس های زیر به ایرنک دادم.
تنظیمات سرور رو هم بر اساس آموزش How To Configure Bind as an Authoritative-Only DNS Server on Ubuntu 14.04 رفتم جلو اما چون فقط یک سرور داشتم هر ۲ تا نیم سرور هارو یک آی پی تنظیم کردم.کد:ns.tset.ir ns2.test.ir
تنظیماتم Bing9 به این صورته
فایل named.conf.local:
فایل named.conf.options:کد:zone "test.ir" { type master; file "/etc/bind/zones/db.test.ir"; allow-transfer { MY_PUBLIC_IP_ADDRESS; }; };
فایل zone:کد:options { directory "/var/cache/bind"; recursion no; allow-transfer { none; }; forwarders { 8.8.8.8; 8.8.4.4; }; dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; };
فایل / etc / hosts :کد:; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns.test.ir. info.test.ir. ( 5 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; ; Name servers test.ir. IN NS ns.test.ir. test.ir. IN NS ns2.test.ir. ; A records for name servers ns IN A MY_PUBLIC_IP_ADDRESS ns2 IN A MY_PUBLIC_IP_ADDRESS ; Other A records @ IN A MY_PUBLIC_IP_ADDRESS www IN A MY_PUBLIC_IP_ADDRESS
کد:127.0.0.1 localhost MY_LOCAL_IP VPS.site.com VPS MY_PUBLIC_IP_ADDRESS test.ir MY_PUBLIC_IP_ADDRESS subdomain.test.ir # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters





پاسخ با نقل قول