![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
The format of a DNS Zonefile is defined in RFC 1035 section 5 and RFC 1034 section 3.6.1. To anyone who's using BIND they'll look very familiar.
This is an attempt to use Ruby parse them into an object graph which can be investigated programatically, manipulated, validated or printed into some canonical form.
Add gem dns-zonefile
to your Gemfile
or
gem install dns-zonefile
Okay, you're ready to move onto the examples now.
Using raw data from the parser. Note that "@" isn't translated in this mode. Nor are inherited TTLs interpreted.
zonefile = "/path/to/file.zone"
zone_string = File.read(zonefile)
zone = DNS::Zonefile.parse(zone_string)
puts zone.soa.origin.to_s
puts zone.soa.ns.to_s
puts zone.rr[0].to_s
Using more structure data. @, TTLs, and empty hostname inheritance are all handled in this mode.
zonefile = "/path/to/file.zone"
zone_string = File.read(zonefile)
zone = DNS::Zonefile.load(zone_string)
# or, if no $origin is in the zone file
zone = DNS::Zonefile.load(zone_string, 'example.com.')
puts zone.soa.origin
puts zone.soa.nameserver
puts zone.records[1]
# get all MX records
puts zone.records_of(DNS::Zonefile::MX)
Open the examples in the ./examples
directory to see more examples.
Craig R Webster http://barkingiguana.com/
See the TODO. Read CONTRIBUTING.md for more details on how to contribute to this project.
FAQs
Unknown package
We found that dns-zonefile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.