O'Reilly logo

Python 2.6 Text Processing Beginner's Guide by Jeff McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - reading DNS records

Let's implement a regular expression-based solution that addresses all of these points and displays sorted MX record values.

  1. First, let's create an example zone file. This is also available as example.zone from the Packt.com FTP site.
     $TTL 86400 @ IN SOA ns1.linode.com. domains.siteperceptive.com. ( 2010060806 14400 14400 1209600 86400 ) @ NS ns1.linode.com. @ NS ns2.linode.com. @ NS ns3.linode.com. @ NS ns4.linode.com. @ NS ns5.linode.com. jmcneil.net. IN MX 5 alt2.aspmx.l.google.com. jmcneil.net. IN MX 1 aspmx.l.google.com. IN MX 10 aspmx2.googlemail.com. 900 IN MX 10 aspmx3.googlemail.com. 900 in mx 10 aspmx4.googlemail.com. @ 900 IN MX 10 aspmx5.googlemail.com. @ 900 MX 5 alt1.aspmx.l.google.com. @ A 127.0.0.1 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required