mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-11 06:35:51 +08:00
7 lines
647 B
Dns
7 lines
647 B
Dns
$TTL 300
|
|
;@ IN CF_WORKER_ROUTE test3.foo.com,test-worker
|
|
;@ 1 IN CLOUDFLAREAPI_SINGLE_REDIRECT name=(003,301,test1.foo.com,https://goo.com/$1) code=(301) when=(http.host eq "test1.foo.com" and http.request.uri.path eq "/") then=(concat("https://goo.com", http.request.uri.path))
|
|
;@ 1 IN CLOUDFLAREAPI_SINGLE_REDIRECT name=(004,302,test2.foo.com,https://goo.com/$1) code=(302) when=(http.host eq "test2.foo.com" and http.request.uri.path eq "/") then=(concat("https://goo.com", http.request.uri.path))
|
|
test1.foo.com.sub IN A 10.2.3.1
|
|
test2.foo.com.sub IN A 10.2.3.2
|
|
test3.foo.com.sub IN A 10.2.3.3
|