변군이글루
[bind] Wildcard DNS record 본문
Wildcard DNS record
https://en.wikipedia.org/wiki/Wildcard_DNS_record
Set Up WildCard DNS
If you have a dedicated IP address, you can create a wildcard A record by setting the Host Name value to an * (asterisk).
When you do so, if the subdomain queried does not exist, the server will respond with the IP address specified in the Zone File Editor as the wildcard.
For example, if someone were to visit http://wildcard.mytestdomain.com, and the subdomain "wildcard" does not exist anywhere on the account, the visitor is redirected to the IP address you specified for the wildcard.
예)
# cat sangchul.kr.zone
$TTL 60 @ IN SOA ns.sangchul.kr. rname.sangchul.kr. ( 2018052502 ;serial 60 ; refresh 1H ; retry 1W ; expire 3H ) ; minimum
IN NS ns1.sangchul.kr.
IN A 192.168.0.251 ns1 IN A 192.168.0.251
* IN A 127.0.0.1 |
# named-checkzone sangchul.kr sangchul.kr.zone
zone sangchul.kr/IN: loaded serial 2018052502
OK
# dig @127.0.0.1 ns1.sangchul.kr +short
192.168.0.251
# dig @127.0.0.1 aaa.sangchul.kr +short
127.0.0.1
Set Up WildCard DNS
https://fr.godaddy.com/help/configurer-dns-de-caractere-generique-3301?isc=GDOBDEF)&lang=en
'+ 네임서버' 카테고리의 다른 글
[명령어] dig 명령어 (0) | 2020.09.04 |
---|---|
[bind] Wildcard DNS record (0) | 2018.05.25 |
[네임서버] rndc 명령어 (0) | 2017.04.21 |
[네임서버] BIND 관리를 위한 RNDC 설정_v201704 (0) | 2017.04.21 |
[네임서버] BIND logging 설정-2 (0) | 2017.04.06 |
[네임서버] BIND(named)에서 GeoIP 기능 사용하기 (0) | 2017.04.06 |