Documentation ¶
Index ¶
- func GenerateDNSRecord(ip string, ttl int, hostname string) string
- func GenerateIPFromHostname(net iplib.Net6, hostname string) net.IP
- func GenerateRandomIP(net iplib.Net6) net.IP
- func GenerateReverseDNSRecord(ip string, ttl int, hostname string) string
- func Net6wildcard(n iplib.Net6) net.IPMask
- func RandomNumber(min int, max int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDNSRecord ¶
Generate a DNS record ready to be paste on a Bind compatible zone
func GenerateIPFromHostname ¶
Generate an IP address based on the hostname. The algorithm first tries with the complete hostname, if it does not work, it tries by removing vowels and iterate by removing character by character.
func GenerateRandomIP ¶
Generate a random IP address based on the given IP subnet.
func GenerateReverseDNSRecord ¶
Generate a ARPA record ready to be paste on a Bind compatible zone
func Net6wildcard ¶
Function stollen from c-robinson/iplib, method non-exposed by the lib ¯\_(ツ)_/¯
func RandomNumber ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.