Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wenerme/coredns-ipin
CoreDNS plugin resolve the domain to ip in domain name
https://github.com/wenerme/coredns-ipin
coredns-plugin
Last synced: 26 days ago
JSON representation
CoreDNS plugin resolve the domain to ip in domain name
- Host: GitHub
- URL: https://github.com/wenerme/coredns-ipin
- Owner: wenerme
- License: mit
- Created: 2021-05-15T08:20:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T05:08:20.000Z (over 1 year ago)
- Last Synced: 2024-04-10T20:39:19.715Z (8 months ago)
- Topics: coredns-plugin
- Language: Go
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-coredns - ipin - CoreDNS plugin resolve the domain to ip in domain name (External Plguins)
README
---
title: "ipin"
description: "*ipin* returns IP address and port based on you domain name."
weight: 10
tags: [ "plugin" , "ipin" ]
categories: [ "plugin", "external" ]
date: "2017-12-09T02:00:00+08:00"
repo: "https://github.com/wenerme/coredns-ipin"
home: "https://github.com/wenerme/coredns-ipin/blob/master/README.md"
---# ipin
*ipin* returns IP address and port based on you domain name. Your IP address is returned in the answer section,
currently only support ipv4, so A record only.The optional port are included in the additional section as a SRV record.
~~~ txt
._port.qname. 0 IN SRV 0 0 .
~~~## Syntax
~~~ txt
ipin {
// if pattern not match, keep processing
fallback
}
~~~## Examples
Start a server on the default port and load the *ipin* plugin.
~~~ corefile
. {
ipin
}
~~~When queried for "192-168-1-1.example.org A", CoreDNS will respond with:
~~~ txt
;; QUESTION SECTION:
;192-168-1-1.example.org. IN A;; ANSWER SECTION:
192-168-1-1.example.org. 0 IN A 192.168.1.1
~~~When queried for "127-0-0-1-8080.example.org A", CoreDNS will respond with:
~~~ txt
;; QUESTION SECTION:
;127-0-0-1-8080.example.org. IN A;; ANSWER SECTION:
127-0-0-1-8080.example.org. 0 IN A 127.0.0.1;; ADDITIONAL SECTION:
_port.127-0-0-1-8080.example.org. 0 IN SRV 0 0 8080 .
~~~