diff options
author | 2017-04-22 07:58:30 +0100 | |
---|---|---|
committer | 2017-04-22 07:58:30 +0100 | |
commit | 4c9351b0a3fa1e1d6d1bc1870a37189c05d7f17f (patch) | |
tree | 6a66a806b7db0005a3529e720092260a957029be /README.md | |
parent | 320cf978689fef82b16d1149eb6effe801104023 (diff) | |
download | coredns-4c9351b0a3fa1e1d6d1bc1870a37189c05d7f17f.tar.gz coredns-4c9351b0a3fa1e1d6d1bc1870a37189c05d7f17f.tar.zst coredns-4c9351b0a3fa1e1d6d1bc1870a37189c05d7f17f.zip |
msg.Service: add HostType() method (#627)
This method parses the Host field in the service. It returns 1 or 3
things 1) it is a host 2) an IPv4 address or an 3) IPv6 address.
This simplifies some code a bit and allows for 1 way of parsing the Host
field.
This *only* parse the Host field, Mail and/or Text values should be
checked separately.
We reuse the dns.TypeXXX values for this as to not invent anything new.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions