Commit Graph

9 Commits

Author SHA1 Message Date
Błażej Cegiełka 04772d4f08 Allow ip subdomain part to be prefixed with dash
This is useful so sub-sub-domains can make use of wildcard certificate
e.g. myapp-myenvironment-10-9-8-7.mydomain.com
2020-05-28 12:27:45 +01:00
Rene Moser cea40c90a7 add support for optional cnames 2019-09-16 12:44:39 +02:00
yuki Niikura 48cac19640 Fixed regular expression.
In python 2.7.13-2, if the 134th line of nip.py is as follows
     match = re.findall('^(?:.+\.)?(\d{1,3}([-.])\d{1,3}\2\d{1,3}\2\d{1,3})$', subdomain)
The execution result of dig will be as follows.
$ dig 1.2.3.4.example.com +short @localhost
127.0.0.1
$

As a result of correcting the 134th line as follows,
     match = re.findall('^(?:.+\.)?(\d{1,3}[-.]\d{1,3}[-.]\d{1,3}[-.]\d{1,3})$', subdomain)
The execution result of dig is corrected as follows.
$ dig 1-2-3-4.example.com +short @localhost
1.2.3.4
$
2019-05-20 16:53:19 +00:00
Masato Ikeda 751ccb55fb Resurrect debug code 2018-04-27 18:28:03 +09:00
Masato Ikeda f0640ada29 Improve regex
Match eather `-` or `.` but not both at the same time.
2018-04-27 18:26:08 +09:00
Masato Ikeda 5002b0b464 Support dot-separated addresses 2018-01-23 23:30:02 +09:00
Rene Moser 2370ffbe2d minor code cleanup 2018-01-23 14:18:38 +01:00
Rene Moser b4a05e2d18 fix encoding 2017-01-16 12:02:12 +01:00
Rene Moser b98754a645 use A records eq to 10-0-0-1.example.com 2017-01-15 21:57:25 +01:00