Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
LEXUGE committed Jun 23, 2022
1 parent b4d1c21 commit 4a1b8fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ script:
upstreams.send("secure", query)
```
Or implement your simple xip.io service:
```yaml
script:
route: |
let resp = query;
resp.header.qr = true;
let ip = query.first_question.qname.to_string();
ip.replace(".xip.io", "");
resp.push_answer(create_record(query.first_question.qname, "IN", 3600, create_a(ip)));
resp
```
# Configuration
Configuration file contains different fields:
Expand Down

0 comments on commit 4a1b8fb

Please sign in to comment.