Skip to content

Register DNSName::chopOff in lua#4920

Merged
rgacogne merged 3 commits intoPowerDNS:masterfrom
plzz:chopoff
Feb 24, 2017
Merged

Register DNSName::chopOff in lua#4920
rgacogne merged 3 commits intoPowerDNS:masterfrom
plzz:chopoff

Conversation

@plzz
Copy link
Contributor

@plzz plzz commented Jan 18, 2017

Short description

Register DNSName::chopOff in lua
> foo = newDNSName("foo.com")
> foo:toString()
foo.com.
> foo:chopOff()
Command returned an object we can't print
> foo:toString()
com.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added regression tests
  • added unit tests
  • checked that this code was merged to master

* `truncate(bits)`: truncate the address to the specified number of bits
* DNSName related:
* `newDNSName(name)`: make a DNSName based on this .-terminated name
* member `chopOff()`: remove left-most label
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please document the return value. I find myself using that a lot when writing Lua for the recursor.

@rgacogne
Copy link
Member

Ping? If you document the return value I'll happily merge this!

@rgacogne rgacogne merged commit 2ba7770 into PowerDNS:master Feb 24, 2017
@plzz plzz deleted the chopoff branch February 25, 2017 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants